Compile the Linux kernel to solve the running problem of vmwareworkstation6.0 in the new kernel.

Source: Internet
Author: User
Compile the Linux kernel to solve the running problem of vmwareworkstation6.0 in the new kernel-Linux general technology-Linux programming and kernel information. For more information, see the following. 1. download the latest Linux Kernel File linux2.6.24.tar.gz.

2. Copy it to the/usr/src directory and decompress it.
# Cp linux2.6.24.tar.gz/usr/src/
# Tar-xvf linux2.6.24.tar.gz
# Cd linux2.6.24

3. Start Compilation
# Make mrproper
# Make xoncifg (select the content to be compiled in graphical mode)
Save the selected items. A. config configuration file is generated.

4. Start to compile the kernel.
# Make bzImage !)
Search for the file/usr/src/linux2.6.24/arch/i386/bzImage.
Change to vmlinuz-2.6.24 in the/boot directory
Copy the/usr/src/linux2.6.24/System. map file to the/boot directory and rename it System. map-2.6.24.
But viewing the/boot/grub/menu. lst file also found that a initrd-2.6.23.1-4.img file needs to be loaded
After searching for half a day, no. imgfile is found in the compiled directory.
You still need to perform a search on the Internet.
# Make modules # Haha, this process is quite long. Let's say it has to run for half an hour!
More than n ko files will be generated after completion.
# Make modules_install # install these ko files
Make install later. As a result, some lines are added to my file and I have deleted them.
Use your own configuration file, as shown below:

# Grub. conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a/boot partition. This means that
# All kernel and initrd paths are relative to/, eg.
# Root (hd0, 6)
# Kernel/boot/vmlinuz-version ro root =/dev/sda7
# Initrd/boot/initrd-version.img
# Boot =/dev/sda
Default = 2
Timeout = 6
Gfxmenu (hd0, 6)/boot/message
Title Rainy (2.6.23.1-4)
Root (hd0, 6)
Splashimage = (hd0, 6)/boot/grub/splash.xpm.gz
# Kernel/boot/vmlinuz-2.6.23.1-4 ro root = LABEL =/vga = 788 splash = silent resume =/dev/sda8
Kernel/boot/vmlinuz-2.6.23.1-4 ro root = LABEL =/vga = 788 splash = silent resume =/dev/sda8
Initrd/boot/initrd-2.6.23.1-4.img
Title MyOS -- with Windows XP
Rootnoverify (hd0, 0)
Chainloader + 1
Title Rainy (Linux-2.6.24)
Root (hd0, 6)
# Splashimage = (hd0, 6)/boot/grub/splash.xpm.gz
# Kernel/boot/vmlinuz-2.6.23.1-4 ro root = LABEL =/vga = 788 splash = silent resume =/dev/sda8
Kernel/boot/vmlinuz-2.6.24 ro root = LABEL =/vga = 788 splash = silent resume =/dev/sda8
Initrd/boot/initrd-2.6.24.img

Haha, reboot. The Ugly 6 screen was finally replaced by two penguins! (I decided to re-compile the kernel only when I couldn't see the boot screen. I couldn't find out how to replace this damn logo icon on the Internet, I tried to change the/boot/grub/splah.xpm.gz file. It is invalid. It is still invalid to change the image file under/etc/bootsplash/themes.

In one breath, delete the splash = silent in menu. lst, and you can finally see the switch screen.

Run the uname-r command.
Shown:
2.6.24
Indicates that the current kernel is a newly compiled Kernel File.
In the US, the fault is that after the restart, one item is red and the vmware error is reported. Unable to provide normal services
By means of I a service-1 service is started, when started to vmware, said to run a vmware-config.pl file for configuration. After logging on to the system, run the program. The system prompts/lib/modules/2.6.24/build/include errors.
There are a lot of people on the Internet, but there are still many people who have the same problems with me.

Download vmware-any-any-update-114.tgz
Vmware-any-any-update-115.tgz
Vmware-any-any-update-116.tgz
Some older versions have been downloaded before, but they always fail. It takes a lot of detours! When we finally tried version 116, we were able to pass the test.
My vmware can run normally again.
After so many twists and turns, the new kernel was successfully used. Everything works.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.