2010年3月9日 星期二

VirtualBox 2.2.4 for fedora code 10 x86_64

this paper say how to install virtualbox for fedora code 10 x86_64fast ~ we can go to this link download virtualbox
http://www.virtualbox.org/wiki/Linux_Downloads
then you will to run the machine,you will got a message that the VirtualBox Kernel had not been setup.

I ran:
Code:
/etc/init.d/vboxdrv setup
It failed, saying that kernel files were not found.
Code:
Stopping VirtualBox kernel module                          [  OK  ]
Recompiling VirtualBox kernel module                       [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
The logfile printed out the following:
Code:
which: no dkms in (/sbin:/usr/sbin:/bin:/usr/bin)
Makefile:127: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
 
so you mast run some commands if you already have the packages installed.

Code:
# yum groupinstall "Development Tools"
# yum groupinstall "Development Libraries"
# yum install unifdef rpm-build
Now to make old config and modules because vboxdrv complains about it
Code:
$ cd ~/usr/src/kernels/2.6.27.25-170.2.72.fc10.x86_64/
$ make oldconfig
$ make prepare
$ make
vboxdrv failed during module compilation, so I decided to build the entire kernel just to make sure. Do not run 'make install' since we don't need it.
Code:
# export KERN_DIR=/usr/src/kernels/2.6.27.25-170.2.72.fc10.x86_64/
# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module                          [  OK  ]
Recompiling VirtualBox kernel module                       [  OK  ]
Starting VirtualBox kernel module                          [  OK  ]