Ubuntu – Virtualbox , Ubuntu 11.10 , linux-kernel 3: cannot start virtual machine

kernelvirtualbox

I've got installed oracle virtualBox v.4.1.2_Ubuntu r38359.
The program VM starts with errors:

WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-ose-dkms package and the appropriate
headers, most likely linux-headers-generic.

You will not be able to start VMs until this problem is fixed.

(VirtualBox:5642): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(VirtualBox:5642): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(VirtualBox:5642): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(VirtualBox:5642): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

As supposed i've done:
1)

sudo apt-get install virtualbox-ose virtualbox-ose-dkms

the answer:

virtualbox-ose is already the newest version.
virtualbox-ose-dkms is already the newest version.

2)

sudo apt-get install linux-headers-`uname -r`

answer:

linux-headers-3.0.0-12-generic-pae is already the newest version.


If i try to launch virtual machine i got 2 windows:
1) The first:

Failed to open a session for the virtual machine winxp.
The virtual machine 'winxp' has terminated unexpectedly during startup with exit code 1.

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Machine
Interface: IMachine {5eaa9319-62fc-4b0a-843c-0cb1940f8a91}

2) The second:

Kernel driver not installed (rc=-1908)
Please install the virtualbox-dkms package and execute 'modprobe vboxdrv' as root.

Tried:

$sudo modprobe vboxdrv
FATAL: Module vboxdrv not found.

;

$ /etc/init.d/virtualbox start
* Starting VirtualBox kernel modules
* No suitable module for running kernel found [fail]

Best Answer

Have you tried to build the kernel module?. It should have been builded during the installation, but it looks like it failed. You can try:

sudo dkms install virtualbox/4.1.2

This should build the module.

Related Question