View Full Version : Virtual box after gutsy -- Problems with module
mohnkern
October 23rd, 2007, 10:06 AM
I've recently upgrade to Gutsy, and I'm having problem with virtualbox.
When I attempt to run the application (virtualbox) I get the following error:
WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-ose-modules package for your kernel.
You will not be able to start VMs until this problem is fixed.
When I type sudo apt-get install virtualbox-ose-modules I get
Package virtualbox-ose-modules is a virtual package provided by:
virtualbox-ose-modules-2.6.22-14-server 6
virtualbox-ose-modules-2.6.22-14-generic 6
So I type
sudo apt-get install virtualbox-ose-modules-2.6.22-14-server
and sudo apt-get install virtualbox-ose-modules-2.6.22-14-generic
At the end of the install I get:
* Modprobe vboxdrv failed. Please use 'dmesg' to find out why.
but dmesg | grep vbox or dmesg | grep virtual gives me nothing.
It looks like there's a module that's not installing, but apt-get isn't installing it properly.
Any ideas?
mjwood0
October 23rd, 2007, 12:13 PM
One thought is that you installed both the server and the workstation version of the file.
While I really don't see why this would be a problem I'm just not sure what exactly is different between the kernels.
In the end, Virtualbox needs the correct kernel module for the kernel you're running.
Can you do the following and post the results:
uname -r
mohnkern
October 23rd, 2007, 12:49 PM
WHen I did the Gutsy upgrade, it did install the most recent kernel
2.6.22-14-386
mjwood0
October 23rd, 2007, 02:49 PM
Correct. Therefore, the new kernel modules were necessary.
I'm guessing you should uninstall both ose packages and just re-install the generic one. The server one is for the server kernel, not the generic kernel.
I'm going to be attempting this exact thing tonight so if it works for me, I'll post my info. Otherwise, I'm sure you'll see questions!
mohnkern
October 23rd, 2007, 02:58 PM
Let me know what you find out. I'll try the same thing as well.
mohnkern
October 23rd, 2007, 03:01 PM
Now this is interesting:
$ sudo apt-get remove virtualbox-ose-modules-2.6.22-14-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package virtualbox-ose-modules-2.6.22-14-server is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$
$ sudo apt-get install virtualbox-ose-modules-2.6.22-14-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
virtualbox-ose-modules-2.6.22-14-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Looks like I'm running what I'm supposed to be running.
Correct. Therefore, the new kernel modules were necessary.
I'm guessing you should uninstall both ose packages and just re-install the generic one. The server one is for the server kernel, not the generic kernel.
I'm going to be attempting this exact thing tonight so if it works for me, I'll post my info. Otherwise, I'm sure you'll see questions!
mohnkern
October 23rd, 2007, 03:05 PM
Just to make sure I did an apt-get purge of virtualbox-ose and virtualbox-ose-modules-2.6.22-14-server and virtualbox-ose-modules-2.6.22-14-generic
Then I did a apt-get install virtualbox-ose virtualbox-ose-modules-2.6.22-14-generic
In the middle I get the following error:
Setting up virtualbox-ose-modules-2.6.22-14-generic (6) ...
* Starting VirtualBox kernel module vboxdrv FATAL: Module vboxdrv not found.
* Modprobe vboxdrv failed. Please use 'dmesg' to find out why.
Setting up virtualbox-ose (1.5.0-dfsg2-1ubuntu3) ...
That's not amusing.
Now this is interesting:
$ sudo apt-get remove virtualbox-ose-modules-2.6.22-14-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package virtualbox-ose-modules-2.6.22-14-server is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$
$ sudo apt-get install virtualbox-ose-modules-2.6.22-14-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
virtualbox-ose-modules-2.6.22-14-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Looks like I'm running what I'm supposed to be running.
j0sh78
October 23rd, 2007, 03:56 PM
in terminal type:
sudo /etc/init.d/vboxdrv setup
enjoy ;-)
mohnkern
October 23rd, 2007, 04:31 PM
Well
$ sudo /etc/init.d/vboxdrv setup
[sudo] password for mohnkern:
* Usage: /etc/init.d/vboxdrv {start|stop|restart|status}
$
and
$ sudo /etc/init.d/vboxdrv status
* VirtualBox kernel module is not loaded.
$ sudo /etc/init.d/vboxdrv start
* Starting VirtualBox kernel module vboxdrv FATAL: Module vboxdrv not found.
* Modprobe vboxdrv failed. Please use 'dmesg' to find out why.
$
in terminal type:
sudo /etc/init.d/vboxdrv setup
enjoy ;-)
j0sh78
October 23rd, 2007, 05:44 PM
have you installed virtualbox-ose-modules-2.6.22-14-generic?
i not and launching
$ sudo /etc/init.d/vboxdrv setup
i solved my problem (the same)...
DarkDancer
October 23rd, 2007, 05:49 PM
I had that problem, I uninstalled it, then went to the actual virtualbox website, downloded the deb and installed it from that....
mohnkern
October 23rd, 2007, 06:44 PM
I believe so:
sudo apt-get install virtualbox-ose-modules-2.6.22-14-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
virtualbox-ose-modules-2.6.22-14-generic is already the newest version.
virtualbox-ose-modules-2.6.22-14-generic set to manual installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I'm not quite sure what the "set to manual installed" means, but it's telling me it's installed.
have you installed virtualbox-ose-modules-2.6.22-14-generic?
i not and launching
$ sudo /etc/init.d/vboxdrv setup
i solved my problem (the same)...
mohnkern
October 23rd, 2007, 07:22 PM
I tried that as well, with the same results Didn't work). Very strange.
I had that problem, I uninstalled it, then went to the actual virtualbox website, downloded the deb and installed it from that....
Jose Catre-Vandis
October 23rd, 2007, 07:38 PM
Looks like a similar problem i had when installing virtualbox onto a command line server. The default server installation has a whole pile of packages not found on the desktop install, and these were needed in order to getVbox to build it's driver (vboxdrv) properly, including linux sources.
Have a look at my howto on what I did, and it may help?
http://ubuntuforums.org/showthread.php?t=555996
remember that you have a desktop install so you may need to change some items to reflect this.
mohnkern
October 23rd, 2007, 09:19 PM
100 points for this howto/faq. Three seconds in (literally) and I had the problem solved. Simply de installed everything, added the virtualbox deb, and ran the install, and was up and running. I'm creating a "virgin" Gutsy install on a vm in virtualbox now. (I want to compare my upgrade vs. a virgin install)
Thanks so much!
Looks like a similar problem i had when installing virtualbox onto a command line server. The default server installation has a whole pile of packages not found on the desktop install, and these were needed in order to getVbox to build it's driver (vboxdrv) properly, including linux sources.
Have a look at my howto on what I did, and it may help?
http://ubuntuforums.org/showthread.php?t=555996
remember that you have a desktop install so you may need to change some items to reflect this.
Jose Catre-Vandis
October 24th, 2007, 05:56 AM
100 points for this howto/faq. Three seconds in (literally) and I had the problem solved. Simply de installed everything, added the virtualbox deb, and ran the install, and was up and running. I'm creating a "virgin" Gutsy install on a vm in virtualbox now. (I want to compare my upgrade vs. a virgin install)
Thanks so much!
:) :) :)
Bigdeath
October 30th, 2007, 11:48 PM
What commands did you run?
GERGE
December 11th, 2007, 05:41 PM
Using the closed-source versiyon solved the problem for me. Look here: http://www.virtualbox.org/wiki/Downloads
hotdoog
December 12th, 2007, 12:23 AM
I had the same error when I was installing the deb (from the repo for dapper on the innotek)
I also came across http://www.virtualbox.org/ticket/794 and tried the thing at the end. I had to
locate vboxdrv.ko
(may need to locate -u first)
then I did
insmod /path/to/exact-same-kernel.../vboxdrv.ko
which seems to have worked so far. I'll post any further problems I have with that.
Bigdeath
December 12th, 2007, 11:56 PM
for some reason i get the gray screen when I try to change my cd rom settings. Which I obviously need for my xp disk.
Bigdeath
December 12th, 2007, 11:59 PM
nvm works now
dfm21
March 29th, 2009, 10:54 AM
locate vboxdrv.ko
(may need to locate -u first)
[...]
insmod /path/to/exact-same-kernel.../vboxdrv.ko
worked for me too. thanks, hotdoog!
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.