Yesterday, I crawled the many websites after my VirtualBox is crashed after updating my kernel to 2.6.29.6-213.fc11. But, I found nothing much on the websites, so I decided to fix up this thing my own. Many People know this thing which I am going to explain but, those people who don't know this thing, following information will help :)
VirtualBox is good and open source software to run multiple OS on the host machine. Well, when we install VirtualBox for first time, it don't create any problems, but when we update the kernel it gives following error:
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.
Compilation of the kernel module FAILED! VirtualBox will not start until this
problem is fixed. Please consult /var/log/vbox-install.log to find out why the
kernel module does not compile. Most probably the kernel sources are not found.
Install them and execute
/etc/init.d/vboxdrv setup
as root.
And I look further, I tailed the /var/log/vbox-install.log file, which gave this error :-
[root@localhost~]# tail /var/log/vbox-install.log
** Compiling vboxdrv
Makefile:145: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
</directory>
Some Websites suggest to install kernel-PAE-devel.i686 and then run /etc/init.d/vboxdrv setup and than run VirtualBox as usual, but in my case it doesn't work.
So, here is work around, I cannot guarantee that this will work for you!
Login as root to the terminal. We install the dependencies for VirtualBox 3.0.2 as follows:
# yum groupinstall 'Development Tools'# yum groupinstall 'Development Libraries'# yum install SDL kernel-devel kernel-headersNow, run /etc/init.d/vboxdrv setup from the terminal as root, and you can see a SUCCESS! message in the terminal, recompiling VirtualBox kernel module is done!! yay!!
You can now run VirtualBox. :)