Virtualbox OSE doesn't run in Ubuntu Gutsy Gibbon

Bug #153989 reported by Sebastián Magrí
12
Affects Status Importance Assigned to Milestone
virtualbox-ose-modules (Ubuntu)
Invalid
Medium
Daniel Hahler

Bug Description

Binary package hint: virtualbox-ose

After a distribution upgrade, and after a re installation of virtualbox OSE, when i run a virtual machine it's stopped and gives me the following message:

"Virtual Box Kernel driver not installed. The vboxdrv kernel module was either not loaded or /dev/vboxdrv was not created for some reason. Please install the virtualbox-ose-modules package for your kernel and execute '/etc/init.d/vboxdrv start' as root.

Vbox status code: -1908 (VERR_VM__DRIVER_NOT_INSTALLED).

Result Code: 0x80004005
Component: Console
Interface: IConsole {1dea5c4b-0753-4193-b909-22330f64ec45}"

I've already installed the virtualbox-ose-modules package and executed '/etc/init.d/vboxdrv start' as root... Even i'd reboot my computer but the problem continues...

Revision history for this message
Daniel Hahler (blueyed) wrote :

1. Please try "sudo modprobe vboxdrv" from a terminal/console and report back what it does.
2. Do you have the file /lib/modules/2.6.22-14-generic/misc/vboxdrv.ko?

Changed in virtualbox-ose:
status: New → Incomplete
Revision history for this message
Sebastián Magrí (sebasmagri) wrote : Re: [Bug 153989] Re: Virtualbox OSE doesn't run in Ubuntu Gutsy Gibbon

The result of the first part is:

FATAL: Module vboxdrv not found.

And the second answer is that i do have this file in this location...

2007/10/18, dAniel hAhler <email address hidden>:
>
> 1. Please try "sudo modprobe vboxdrv" from a terminal/console and report
> back what it does.
> 2. Do you have the file /lib/modules/2.6.22-14-generic/misc/vboxdrv.ko?
>
> ** Changed in: virtualbox-ose (Ubuntu)
> Status: New => Incomplete
>
> --
> Virtualbox OSE doesn't run in Ubuntu Gutsy Gibbon
> https://bugs.launchpad.net/bugs/153989
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
    _-`````-, ,- '- .
  .' .- - | | - -. `.
/.' / `. \
:/ : _... ..._ `` :
:: : /._ .`:'_.._\. || :
:: `._ ./ ,` : \ . _.'' .
`:. / | -. \-. \\_ /
  \:._ _/ .' .@) \@) ` `\ ,.'
     _/,--' .- .\,-.`--`.
       ,'/'' (( \ ` )
        /'/' \ `-' (
         '/'' `._,-----'
          ''/' .,---'
           ''/' ;:
             ''/'' ''/
               ''/''/''
                 '/'/'
                  `;
Sebastián Ramírez Magrí
GNU/Linux User...

Revision history for this message
nemixer (nemixer) wrote :

Hi have the some problem with ubuntu 7.10, I try to follow the wiki which suggest :

sudo apt-get install virtualbox-ose virtualbox-ose-source
sudo module-assistant prepare
sudo module-assistant update
sudo module-assistant unpack virtualbox-ose
sudo module-assistant auto-install virtualbox-ose

and the last line give this errror:

emi@def:~$ sudo module-assistant auto-install virtualbox-ose

Updated infos about 1 packages
Getting source for kernel version: 2.6.22-14-386
Kernel headers available in /usr/src/linux
Creating symlink...
Couldn't create the /usr/src/linux symlink!
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Done!
unpack
Extracting the package tarball, /usr/src/virtualbox-ose.tar.bz2, please wait...
"/usr/share/modass/packages/default.sh" build KVERS=2.6.22-14-386 KSRC=/usr/src/linux-headers-2.6.22-14-386 KDREV=2.6.22-14.46 kdist_image
Done with /usr/src/virtualbox-ose-modules-2.6.22-14-386_1.5.0-dfsg2-1ubuntu3+2.6.22-14.46_i386.deb .
dpkg -Ei /usr/src/virtualbox-ose-modules-2.6.22-14-386_1.5.0-dfsg2-1ubuntu3+2.6.22-14.46_i386.deb
Selecting previously deselected package virtualbox-ose-modules-2.6.22-14-386.
dpkg: regarding .../virtualbox-ose-modules-2.6.22-14-386_1.5.0-dfsg2-1ubuntu3+2.6.22-14.46_i386.deb containing virtualbox-ose-modules-2.6.22-14-386:
 virtualbox-ose-modules-2.6.22-14-generic conflicts with virtualbox-ose-modules
  virtualbox-ose-modules-2.6.22-14-386 provides virtualbox-ose-modules and is to be installed.
dpkg: error processing /usr/src/virtualbox-ose-modules-2.6.22-14-386_1.5.0-dfsg2-1ubuntu3+2.6.22-14.46_i386.deb (--install):
 conflicting packages - not installing virtualbox-ose-modules-2.6.22-14-386
Errors were encountered while processing:
 /usr/src/virtualbox-ose-modules-2.6.22-14-386_1.5.0-dfsg2-1ubuntu3+2.6.22-14.46_i386.deb

I: Direct installation failed, trying to post-install the dependencies

apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

after this I checked the result with

emi@def:~$ ls -l /dev/vboxdrv
ls: /dev/vboxdrv: No such file or directory

Revision history for this message
Daniel Hahler (blueyed) wrote :

sebasmagri, are you running the 2.6.22-14-generic kernel? (you can check this using "uname -r")

nemixer, it appears you have a different problem. You should not need to manually build the module. Installing virtualbox-ose and virtualbox-ose-modules-generic (or ..-server) should be enough.

Revision history for this message
Sebastián Magrí (sebasmagri) wrote :

Hi Daniel...

Yes i'm running this kernel version... it's very important for me becouse i
need to use some programs in windows plataform...

Thanks for your help Daniel...

2007/10/19, dAniel hAhler <email address hidden>:
>
> sebasmagri, are you running the 2.6.22-14-generic kernel? (you can check
> this using "uname -r")
>
> nemixer, it appears you have a different problem. You should not need to
> manually build the module. Installing virtualbox-ose and virtualbox-ose-
> modules-generic (or ..-server) should be enough.
>
> --
> Virtualbox OSE doesn't run in Ubuntu Gutsy Gibbon
> https://bugs.launchpad.net/bugs/153989
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
    _-`````-, ,- '- .
  .' .- - | | - -. `.
/.' / `. \
:/ : _... ..._ `` :
:: : /._ .`:'_.._\. || :
:: `._ ./ ,` : \ . _.'' .
`:. / | -. \-. \\_ /
  \:._ _/ .' .@) \@) ` `\ ,.'
     _/,--' .- .\,-.`--`.
       ,'/'' (( \ ` )
        /'/' \ `-' (
         '/'' `._,-----'
          ''/' .,---'
           ''/' ;:
             ''/'' ''/
               ''/''/''
                 '/'/'
                  `;
Sebastián Ramírez Magrí
GNU/Linux User...

Revision history for this message
nemixer (nemixer) wrote :

I first tried installing the packages and I got the same error:

"Virtual Box Kernel driver not installed. The vboxdrv kernel module was either not loaded or /dev/vboxdrv was not created for some reason. Please install the virtualbox-ose-modules package for your kernel and execute '/etc/init.d/vboxdrv start' as root.

I tried to manually load the module with modprobe but it was not found.

Then I found on the ubuntu-wiki that procedure to install Virtualbox on Gutsy and tried that as well..
Here the link:
https://help.ubuntu.com/community/VirtualBox?highlight=%28virtualbox%29

but I didn't help..

Revision history for this message
Daniel Hahler (blueyed) wrote :

Please try the following:
sudo depmod -a
sudo /etc/init.d/vboxdrv start

Revision history for this message
nemixer (nemixer) wrote :

Hi Daniel, here the output, if you meant me..

emi@def:~$ sudo depmod -a
emi@def:~$ 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.
emi@def:~$

Revision history for this message
Daniel Hahler (blueyed) wrote :

And what does "dmesg" tell? (at the end, after you've tried "sudo modprobe vboxdrv")

Revision history for this message
Moritz Naumann (mnaumann) wrote :

Probably nothing. I just had the same issue as nemixer (and the same setup), and there was nothing matching "ox" in dmesg. Reinstalling virtualbox-ose and running "sudo /etc/init.d/vboxdrv start" again helped.

This may be a duplicate of Bug #153819 and Bug #154630

Please seperate nemixers' bug report from the initial creators (sebasmagri), as they seem to be completely different issues.

Revision history for this message
neuroserve (toens-bueker) wrote :

Obviously the modules of linux-ubuntu-modules-2.6.22-14-386 live in /lib/modules/2.6.22-14-386.
Modules of virtualbox-ose-modules-2.6.22-14-generic live in /lib/modules/2.6.22-14-generic.
Copying the module vboxdrv.ko to /lib/modules/2.6.22-14-386 results in FATAL: Error inserting vboxdrv (/lib/modules/2.6.22-14-386/vboxdrv.ko): Invalid module format.

Working around that problem by compiling the module with module-assisstant does not work either, because the
package will not be installed alongside virtualbox-ose-modules-2.6.22-14-generic as described above.

Revision history for this message
Sebastián Magrí (sebasmagri) wrote :

I've been working with the PUEL version and it runs perfect....

2007/11/3, neuroserve <email address hidden>:
>
> Obviously the modules of linux-ubuntu-modules-2.6.22-14-386 live in
> /lib/modules/2.6.22-14-386.
> Modules of virtualbox-ose-modules-2.6.22-14-generic live in
> /lib/modules/2.6.22-14-generic.
> Copying the module vboxdrv.ko to /lib/modules/2.6.22-14-386 results in
> FATAL: Error inserting vboxdrv (/lib/modules/2.6.22-14-386/vboxdrv.ko):
> Invalid module format.
>
> Working around that problem by compiling the module with module-assisstant
> does not work either, because the
> package will not be installed alongside
> virtualbox-ose-modules-2.6.22-14-generic as described above.
>
> --
> Virtualbox OSE doesn't run in Ubuntu Gutsy Gibbon
> https://bugs.launchpad.net/bugs/153989
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
    _-`````-, ,- '- .
  .' .- - | | - -. `.
/.' / `. \
:/ : _... ..._ `` :
:: : /._ .`:'_.._\. || :
:: `._ ./ ,` : \ . _.'' .
`:. / | -. \-. \\_ /
  \:._ _/ .' .@) \@) ` `\ ,.'
     _/,--' .- .\,-.`--`.
       ,'/'' (( \ ` )
        /'/' \ `-' (
         '/'' `._,-----'
          ''/' .,---'
           ''/' ;:
             ''/'' ''/
               ''/''/''
                 '/'/'
                  `;
Sebastián Ramírez Magrí
GNU/Linux User...

Revision history for this message
neuroserve (toens-bueker) wrote :

True - works out of the box.

Revision history for this message
Mattias Bengtsson (moonlite) wrote :

I can confirm this bug.
I also get this when loading the driver:

{{{
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.
}}}

The driver is located in /lib/modules/2.6.22-14-generic/misc/vboxdrv.ko .
When i do
{{{
sudo ln -s /lib/modules/2.6.22-14-generic/misc /lib/modules/2.6.22-14-386/misc
sudo depmod -a
}}}
i get this:
{{{
moonlite@startop /lib/modules/2.6.22-14-386 $ sudo /etc/init.d/vboxdrv start
 * Starting VirtualBox kernel module vboxdrv
FATAL: Error inserting vboxdrv (/lib/modules/2.6.22-14-386/misc/vboxdrv.ko): Invalid module format

 * Modprobe vboxdrv failed. Please use 'dmesg' to find out why.

}}}

Revision history for this message
Sebastián Magrí (sebasmagri) wrote :

I think it could be related to the kernel support for virtualization....

Revision history for this message
Daniel Hahler (blueyed) wrote :

Re-assigning to virtualbox-ose-modules.

Please note, that this can be caused when using the realtime kernel, which has no module built yet (bug 156740), but that's not the case for most of you.

But: I've overlooked that at least nemixer is using the linux-386 kernel! Apparently, there's no module for it, too!

The workaround would be to install linux-generic, which should be the recommended kernel version in most cases probably anyway.

sebasmagri, please post the output of "uname -a" on your system.

Changed in virtualbox-ose:
assignee: nobody → blueyed
importance: Undecided → Medium
Revision history for this message
sgtkwol (sgtkwol) wrote :

I am having the same issue. All the errors and responses to the fixes so far, have been the same. I had virtualbox working perfectly, but in that process it caused issues with nvidia non-free drivers. I reinstalled the drivers using envy, and now I can't start virtualbox. I have a feeling that it is an xorg.conf issue. Attached is my xorg.conf.

Revision history for this message
Craig Gilding (slasherx2) wrote :

Works fine for me but only if I run it as root with gksudo virtualbox in the terminal.

Revision history for this message
ameoba (swm) wrote :
Download full text (3.2 KiB)

Errors during install -
-------------------------
sudo apt-get install virtualbox-ose
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libqt3-mt libxalan110 libxerces27 virtualbox-ose-modules-2.6.22-14-generic
Suggested packages:
  libqt3-mt-psql libqt3-mt-mysql libqt3-mt-odbc xalan
Recommended packages:
  virtualbox-ose-source
The following NEW packages will be installed:
  libqt3-mt libxalan110 libxerces27 virtualbox-ose virtualbox-ose-modules-2.6.22-14-generic
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.9MB of archives.
After unpacking 37.5MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://mirrors.kernel.org gutsy-updates/main libqt3-mt 3:3.3.8really3.3.7-0ubuntu11.1 [3300kB]
Get:2 http://mirrors.kernel.org gutsy/universe libxerces27 2.7.0-3 [1321kB]
Get:3 http://mirrors.kernel.org gutsy/universe libxalan110 1.10-3.1 [1241kB]
Get:4 http://mirrors.kernel.org gutsy/universe virtualbox-ose-modules-2.6.22-14-generic 6 [317kB]
Get:5 http://mirrors.kernel.org gutsy/universe virtualbox-ose 1.5.0-dfsg2-1ubuntu3 [5695kB]
Fetched 11.9MB in 17s (685kB/s)
Selecting previously deselected package libqt3-mt.
(Reading database ... 120028 files and directories currently installed.)
Unpacking libqt3-mt (from .../libqt3-mt_3%3a3.3.8really3.3.7-0ubuntu11.1_i386.deb) ...
Selecting previously deselected package libxerces27.
Unpacking libxerces27 (from .../libxerces27_2.7.0-3_i386.deb) ...
Selecting previously deselected package libxalan110.
Unpacking libxalan110 (from .../libxalan110_1.10-3.1_i386.deb) ...
Selecting previously deselected package virtualbox-ose-modules-2.6.22-14-generic.
Unpacking virtualbox-ose-modules-2.6.22-14-generic (from .../virtualbox-ose-modules-2.6.22-14-generic_6_i386.deb) ...
Selecting previously deselected package virtualbox-ose.
Unpacking virtualbox-ose (from .../virtualbox-ose_1.5.0-dfsg2-1ubuntu3_i386.deb) ...
Setting up libqt3-mt (3:3.3.8really3.3.7-0ubuntu11.1) ...

Setting up libxerces27 (2.7.0-3) ...

Setting up libxalan110 (1.10-3.1) ...

Setting up virtualbox-ose-modules-2.6.22-14-generic (6) ...
 * Starting VirtualBox kernel module vboxdrv chown: `:vboxusers': invalid group

 * Cannot change owner vboxusers for device /dev/vboxdrv.

Setting up virtualbox-ose (1.5.0-dfsg2-1ubuntu3) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
ameoba@ameoba-desktop:~/vmware$ virtualbox
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...

Read more...

Revision history for this message
Daniel Hahler (blueyed) wrote :

ameoba, your problem is bug 153819.

Revision history for this message
Craig Maloney (craig-decafbad) wrote :

Can confirm this is a bug. Tried all of the stuff above, but am still having trouble with the module. A simple "sudo apt-get install virtualbox-ose" doesn't give a working virtualbox because of the kernel module (FATAL: Module vboxdrv not found.)

Revision history for this message
Craig Gilding (slasherx2) wrote : Re: Virtualbox OSEok aint goin yet lol doesn't run in Ubuntu Gutsy Gibbon

Craig - did you try running it with gksudo from the terminal?

Revision history for this message
Craig Maloney (craig-decafbad) wrote :

$ gksudo virtualbox
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.

I can't seem to get the modules to load for anything.

Here's the output from dpkg:

dpkg -l | grep virtual
rc virtualbox 1.5.2-25433_Ubuntu_feisty innotek VirtualBox
ii virtualbox-ose 1.5.0-dfsg2-1ubuntu3 PC virtualization solution
ii virtualbox-ose-modules-2.6.22-14-generic 6 virtualbox-ose modules for linux-image-2.6.2

Revision history for this message
Craig Gilding (slasherx2) wrote :

Try

$ sudo mkdir /dev/vboxdrv
$ gksudo virtualbox

Revision history for this message
Craig Maloney (craig-decafbad) wrote :

Nope. That gives me the same errors.

Revision history for this message
Daniel Hahler (blueyed) wrote :

Wow, there are so many different issues in this bug already.. I'm closing it as invalid.

Please make sure, that you are using the -generic kernel (and not -rt or -386, because there are no modules for these flavours yet).

Then, look at "dmesg | tail" to get the reason why "sudo modprobe vboxdrv" may have failed.

If you still have problems, please report a new bug (if there's not already one with your exact issue).

Please also note, that virtualbox-ose is (still) broken/not working in Ubuntu Hardy. You may want to use the PUEL version from virtualbox.org.

Changed in virtualbox-ose-modules:
status: Incomplete → Invalid
Revision history for this message
Craig Maloney (craig-decafbad) wrote :

I'm not sure why this is being closed as invalid. It seems to me there's a single thread here, which is that the Virtualbox modules aren't loading at all for some users (myself included). There's no dmesg trail to post, as nothing is getting logged.

Revision history for this message
Craig Maloney (craig-decafbad) wrote :

Confirming this bug. I'm using the virtualbox-ose-modules-2.6.22-14-generic module, and am using the generic kernel, not the rt kernel.

Changed in virtualbox-ose-modules:
status: Invalid → Confirmed
Revision history for this message
Craig Maloney (craig-decafbad) wrote :

craig@lister:~$ 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.

dmesg has nothing in the output to explain why this is happening.

craig@lister:~$ uname -a
Linux lister 2.6.22-14-386 #1 Tue Dec 18 07:34:24 UTC 2007 i686 GNU/Linux
craig@lister:~$ dpkg -l | grep virtualbox
rc virtualbox 1.5.2-25433_Ubuntu_feisty innotek VirtualBox
ii virtualbox-ose 1.5.0-dfsg2-1ubuntu3 PC virtualization solution
ii virtualbox-ose-modules-2.6.22-14-generic 6 virtualbox-ose modules for linux-image-2.6.2

Revision history for this message
Daniel Hahler (blueyed) wrote :

Craig, there's no module for the -386 kernel (yet). See bug 156740.
Also, this appears not to be the same bug as reported by sebasmagri initially.

I'm marking it as duplicate of bug 156740.

Changed in virtualbox-ose-modules:
status: Confirmed → Invalid
Revision history for this message
Daniel Hahler (blueyed) wrote :

Craig, I've said it before (above): you probably want to install the linux-generic kernel instead of the linux-386 one.

Revision history for this message
Craig Maloney (craig-decafbad) wrote :

tried the generic kernel. After running:

sudo depnod -a

It seems to be working now. I'm wondering if the trouble started because I migrated from Feisty to Gutsy.

Thanks!

Revision history for this message
msanguino (manuel-sanguino) wrote :

Someone knows about the virtualbox-ose-modules-2.6.22-3-686 from 2.6.22+1.5.2-dfsg2-9 what happen when I try update my System in this packet have problem because my Virtual Box stop working and I do again what we said this forum to return to work.

I think something wrong for the module version

Becasuse downgrading virtualbox-ose-modules-2.6.22-3-686 from 2.6.22+1.5.2-dfsg2-9 to 1.5.4-dfsg-4+2.6.22-6. and work.

My system Linux version 2.6.22-3-686 (Debian 2.6.22-6) Lenny

#sudo module-assistant auto-install virtualbox-ose

Updated infos about 1 packages
Getting source for kernel version: 2.6.22-3-686
Kernel headers available in /lib/modules/2.6.22-3-686/build
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
The following packages were automatically installed and are no longer required:
  libpci2 qjackctl libgomp1 libdirectfb-0.9-25 jackd libpisync0
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Done!
unpack
Extracting the package tarball, /usr/src/virtualbox-ose.tar.bz2, please wait...
"/usr/share/modass/overrides/virtualbox-ose-source" build KVERS=2.6.22-3-686 KSRC=/lib/modules/2.6.22-3-686/build KDREV=2.6.22-6 kdist_image
Done with /usr/src/virtualbox-ose-modules-2.6.22-3-686_1.5.4-dfsg-4+2.6.22-6_i386.deb .
dpkg -Ei /usr/src/virtualbox-ose-modules-2.6.22-3-686_1.5.4-dfsg-4+2.6.22-6_i386.deb
dpkg - warning: downgrading virtualbox-ose-modules-2.6.22-3-686 from 2.6.22+1.5.2-dfsg2-9 to 1.5.4-dfsg-4+2.6.22-6.
(Reading database ... 141479 files and directories currently installed.)
Preparing to replace virtualbox-ose-modules-2.6.22-3-686 2.6.22+1.5.2-dfsg2-9 (using .../virtualbox-ose-modules-2.6.22-3-686_1.5.4-dfsg-4+2.6.22-6_i386.deb) ...
Unpacking replacement virtualbox-ose-modules-2.6.22-3-686 ...
Setting up virtualbox-ose-modules-2.6.22-3-686 (1.5.4-dfsg-4+2.6.22-6) ...

thxs

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.