Recompiling Virtualbox Kernel Module
July 7th, 2008If 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 ]
July 19th, 2008 at 1:50 pm
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
September 4th, 2008 at 1:41 pm
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.
October 26th, 2008 at 4:06 pm
In FC9, I uninstall the VirtualBox and then I install it again. I don’t lose any file.
December 3rd, 2008 at 12:25 am
sudo /etc/init.d/vboxdrv setup
worked form me. AMD Athlon 5000+ 64 Ubuntu Kernel 2.6.27-9-generic
When I tried previously it said vboxdrv setup could not be found. But it worked today.
Thanks.
January 10th, 2009 at 4:52 pm
“sudo /etc/init.d/vboxdrv setup ”
This doesn’t work in Fedora 10. If fails to recompile the VirtualBox kernal module.
January 20th, 2009 at 4:55 am
I have Fedora 10 64 and this work for me. Thanks.
February 17th, 2009 at 10:12 am
On Ubuntu Hardy – after installing 2.6.24-23-generic, my error message said:
VERR_VM_DRIVER_NOT_INSTALLED (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Re-setup the kernel module by executing
‘/etc/init.d/vboxdrv setup’
as root. Users of Ubuntu or Fedora should install the DKMS package at first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
So I installed the DKMS package and then ran
sudo /etc/init.d/vboxdrv setup
worked fine!
March 4th, 2009 at 4:30 pm
Thanks
sudo /etc/init.d/vboxdrv setup
worked fine!!!!! werry fine!!!
March 9th, 2009 at 4:14 am
Good tip !!! Really help me :-) Thanks.
I use Fedora 10 x64,
I think the other users who had problems does not have the kernel-headers
As root:
# yum -y install kernel-headers
April 25th, 2009 at 8:04 am
I upgraded from Ubuntu 8.04 to 8.10 and Virtualbox wouldn’t start. I’ve tried reinstalling it several times but no joy until I renamed the .VirtualBox folder in my home folder and reinstalled. I kept getting the message that it couldn’t convert the XML from version 1.7 (that’s not verbatim…) and suggesting I run /etc/init.d/vboxdrv setup. Problem is when I do that it says setup is not a valid option! The only valid options are start, stop, restart and status. If I try any of the others I get a message saying “No suitable module for running kernel found.” After I reinstalled after renaming .Virtual box it starts but I get the 1908 error also mentioned in this thread. I have DKMS installed, and it was from the start. I would really like to get back my version of Virtualbox I had running under 8.04 as I had installed and used some Windoze programs, and there is some data in there. Any chance of that happening?…
Thanks,
Ian
May 12th, 2009 at 1:31 pm
Many thanks – that saved me some effort :)
August 6th, 2009 at 9:13 pm
i keep getting this no matter what!
“barclay@barclay-laptop:~$ /etc/init.d/vboxdrv setup
* Stopping VirtualBox kernel module
*(<–this star is red) Cannot unload module vboxnetadp
barclay@barclay-laptop:~$ "
things in () dont appear in kernel just extra info
February 25th, 2010 at 1:02 am
The solution that works for me is this:
#yum install kernel-PAE-devel
#/etc/init.d/vboxdrv setup
Fedora 12.
I hope this can help you.
March 26th, 2010 at 10:47 pm
Thanks a lot davidDAE, installing kernel-PAE-devel worked for me.
June 9th, 2010 at 11:27 pm
Thanks, kernel-PAE-devel worked always on Fedora 13.
Stopping VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [ OK ]
Starting VirtualBox kernel module [ OK ]
June 9th, 2010 at 11:28 pm
Thanks, kernel-PAE-devel worked always on Fedora 13.
August 19th, 2010 at 2:26 am
Valeu… Kernel-PAE-devel funfou!!
September 4th, 2010 at 12:42 am
ran
export KERN_DIR=/usr/src/kernels/2.6.18-194.11.3.el5-i686/
and all is ok
Stopping VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [ OK ]
Starting VirtualBox kernel module [ OK ]
October 20th, 2010 at 9:45 pm
Murray great mark!!
My problem was the path for the KER_DIR i pointed on
KERN_DIR=/usr/src/kernels/2.6.18-194.1—PAE
and it seemed to be fine but…. i crash with other error iin the installation :
Starting VirtualBox kernel module [FAILED]
(modprobe vboxdrv failed. Please use ‘dmesg’ to find out why)
[root@char modules]# yum -y install kernel-devel gcc-c++
and finally it works!! i found more help here :
http://forums.virtualbox.org/viewtopic.php?f=7&t=31441
works on fedora 13
August 1st, 2011 at 4:22 pm
Just an update, as nowadays it is vboxadd and not vboxdrv ;) (in the same dir. i.e. /etc/init.d)
October 31st, 2011 at 2:20 am
I had a time getting VirtualBox to run on both Fedora 14 & 15. Missing the kernel. init.d/vboxdrv setup always failed. Running on an el-cheapo Dell Netbook (32 bit, 10v). I tried everything everywhere, and could not get it to work. I don’t know if someone else has already cited this, but it fixed absolutely everything instantly. I wish I would have thought of it before all of the frustration.
Simply….
sudo yum install kernel-devel-$(uname -r)
October 31st, 2011 at 3:18 pm
I have installed Oracle Enterprise Linux 6.1 and VirtualBox 4.1.4 on it.
I have done everything but the following error wasn’t resolved.
# /etc/init.d/vboxdrv setup
Recompiling VirtualBox kernel module [ FAILED ]
Starting VirtualBox kernel module [ FAILED ]
Please help me in that.