Recently, FC 10 (fedora10) was installed on the machine (x86_64). to install the virtual machine, first install VM 6.5. It was found that it was very difficult to install VM 6.5 in 64-Bit mode for three days, give up. Some people say that the 64-bit VM under FC 10 cannot be installed. As a result, I switched to Sun's Virtual Machine Software virtualbox. On the official virtualbox website, I found the rpm version of fedora9/10 corresponding to x86_64. I read a lot of posts on how to install it. After the sub-device is installed, you can open the vbox interface. However, after loading the ISO image, an error occurs when you click Start."No precompiled module for this kernel found"
, Prompting to view/var/log/vbox-install.log.
# Cat/var/log/vbox-install.log
Attempting to install using dkms
Removing old dkms module vboxdrv version 2.2.0
------------------------------
Deleting module version: 2.2.0
Completely from the dkms tree.
------------------------------
Done.
Creating symlink/var/lib/dkms/vboxdrv/2.2.0/source->
/Usr/src/vboxdrv-2.2.0
Dkms: Add completed.
Error! Your kernel source for Kernel 2.6.27.5-117. fc10.x86 _ 64 cannot be found
/Lib/modules/2.6.27.5-117. fc10.x86 _ 64/build or/lib/modules/2.6.27.5-117. fc10.x86 _ 64/source.
You can use the -- kernelsourcedir option to tell dkms where it's located.
Failed to install using dkms, attempting to install
Makefile: 140: *** error: unable to find the sources of your current Linux kernel. Specify kern_dir = <directory> and run make again. Stop.
It indicates that my kernel source file cannot be found.
Your kernel source for Kernel 2.6.27.5-117. fc10.x86 _ 64 cannot be found
/Lib/modules/2.6.27.5-117. fc10.x86 _ 64/build or/lib/modules/2.6.27.5-117. fc10.x86 _ 64/source.
After searching for half a day, I finally found a post to solve my vbox problem.
Http://fedoraforum.org/forum/showthread.php? T = 221501
We found that my kernel and kernel-devel versions are inconsistent.
# Uname-R (or rpm-Q kernel) view the kernel version
# Run the rpm-Q kernel-devel command to view the kernel-devel version.
[Root @ localhost/] # uname-R
2.6.27.5-117. fc10.x86 _ 64
[Root @ localhost/] # rpm-Q Kernel
Kernel-2.6.27.5-117.fc10.x86_64
[Root @ localhost/] # rpm-Q kernel-devel
Kernel-devel-2.6.27.24-170.2.68.fc10.x86_64
I found inconsistency. The kernel version is low, so I updated the kernel.
[Root @ localhost/] # Yum update Kernel
Loaded plugins: aliases, allowdowngrade, changelog, downloadonly, fastestmirror, fedorakmod,
..........
Installing:
Kernel x86_64 2.6.27.24-170.2.68.fc10 updates 20 m
Updating for dependencies:
Kernel-firmware noarch 2.6.27.24-170.2.68.fc10 updates 370 K
............
After the update, reboot restarts the machine.
[Root @ localhost ant] # uname-R
2.6.27.24-170.2.68.fc10.x86 _ 64
[Root @ localhost ant] # rpm-Q kernel-devel
Kernel-2.6.27.5-117.fc10.x86_64
Kernel-2.6.27.24-170.2.68.fc10.x86_64
Kernel-devel-2.6.27.24-170.2.68.fc10.x86_64
Consistency is found.
In this case, you must first uninstall the previously installed vbox.
[Root @ localhost ant] # rpm-Q virtualbox (view virtualbox)
[Root @ localhost ant] # rpm-e virtualbox (uninstall virtualbox)
[Root @ localhost ant] # rpm-IVH VirtualBox-2.2.4_47978_fedora9-10.x86_64.rpm (install virtualbox)
Preparing... ######################################## ### [100%]
1: virtualbox ####################################### #### [100%]
Creating group 'vboxusers'. VM users must be member of that group!
No precompiled module for this kernel found -- trying to build one. Messages
Emitted during module compilation will be logged to/var/log/vbox-install.log.
Success!
[Root @ localhost ant] #
Start virtualbox again, load the image file, and start successfully.
We hope it will be helpful for installing virtual machines in Linux.