Recompiling Virtualbox Kernel Module

July 7th, 2008

If after installing a new kernel you may get an error message when you try to start Virtualbox saying something like ‘The vboxdrv kernel module was either not loaded…’. If you then read the logs the solution is actually written there.

Re-setup the kernel module by executing ‘/etc/init.d/vboxdrv setup’ as root.

Sure enough this command fixes the problem and rebuilds the kernel module for the currently running kernel.

# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module          [  OK  ]
Recompiling VirtualBox kernel module       [  OK  ]
Starting VirtualBox kernel module          [  OK  ]

3 responses

  1. Luigi comments:

    This is what I get…

    # /etc/init.d/vboxdrv setup
    Stopping VirtualBox kernel module [ OK ]
    Recompiling VirtualBox kernel module [ FAILED ]
    Starting VirtualBox kernel module [ FAILED ]

    Am running Fedora 9 64 on a AMD AM2

  2. linuxFreak comments:

    Hi All, I got the same error . I ‘m running FC9 . I got eh following error msg , Can some one please let me know what is the prob…..I use the following link for installing vbox ,

    http://spoilt.blogsite.org/wordpress/index.php/2008/05/06/how-to-install-virtualbox-on-fedora-8

    Error: sudo /etc/init.d/vboxdrv setup
    Stopping VirtualBox kernel module [ OK ]
    Recompiling VirtualBox kernel module [FAILED]
    (Look at /var/log/vbox-install.log to find out what went wrong)

    Thanks in App.

  3. F0T0N comments:

    In FC9, I uninstall the VirtualBox and then I install it again. I don’t lose any file.

Leave a comment