VirtualBox 3.0.2 in Fedora 11 32-bit (FIX)
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-headers
Now, 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. :)

Share with others...

deliciousdiggreddittechnoratifacebooktwittergoogleyahoowikioblinklistsimpyspurl
Comments (11)

Track comments via RSS 2.0 feed. Feel free to post the comment, or trackback from your web site.

  • Joseph Crawford on Jul 29, 2009

    Thanks for the information I had the same issues and it seems that this process fixed my install as well.

    Thanks Again!

  • Stu on Jul 29, 2009

    Are you using the (part-proprietary) Virtualbox direct from Sun? I never have to recompile the kernel module using the open source edition in RPMFusion – kmod packages take care of that. The differences between the Sun binaries and the RPMfusion ones are pretty minimal in terms of features I think – at least nothing I miss (some USB stuff…)

  • admin on Jul 30, 2009

    @Joseph, Welcome dear!
    @Stu, Yeah! I downloaded VirtualBox from Sun, from http://www.virtualbox.org/wiki/Linux_Downloads

  • Lubomir Rintel on Jul 30, 2009

    Stu is completely right. We spent quite som work in RPM Fusion to make VirtualBox-OSE “just work”, all you have to do is “yum install VirtualBox-OSE”. Same applies for the Guest Additions.

    Besides obvious advantages of having the package from yum repository such as getting security fixes automatically, the binaries you can download form Sun are non-free and can not be used commercially unless you pay (that’s not to discourage you from paying, if you need support ;) .

  • Adam Williamson on Jul 31, 2009

    Probably the only one of those commands you actually needed was ‘yum install kernel-devel’. There’s no earthly reason you’d need to install SDL to build VirtualBox’s kernel modules.

  • SteveB on Jul 31, 2009

    kernel-devel was enough for me. I was sure I had it installed, but there you go. Thanks for the tip!

  • Colonna on Aug 11, 2009

    Thank you for your clear and precise text.
    It helped me a lot.

  • admin on Aug 11, 2009

    @Colonna, Welcome dear :)

  • omen on Oct 13, 2009

    hi Could you help me? I have some troubles with usb device it is not recognized for the virtual machine

  • admin on Oct 13, 2009

    Hey Omen,
    What is the problem? Go to Settings, than USB–>Add a USB filter, than it should work for you.

  • hendro on Nov 17, 2009

    thanks thanks thanks. very much.
    for me kernel-devel is not enough.

Leave a Comment