virtualbox fails

Hi
my virtualbox setup has stopped working, when I try to launch Windows 7, with the following message;

[b]Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

‘/etc/init.d/vboxdrv setup’

as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
[/b]

Trying to run vboxdrv fails as it’s not there.

Virtualbox also fails with the same error on my laptop. Any help appreciated.

Please run

sudo /etc/init.d/vboxdrv setup

from within a terminal. It should then rebuild the vboxdrv for your kernel.

Already tried it

there doesn’t seem to be such a file

~$ sudo /etc/init.d/vboxdrv setup
sudo: /etc/init.d/vboxdrv: command not found

zhaba-desktop:/etc/init.d$ ls -al

-rwxr-xr-x 1 root root 1872 ное 10 2014 umountroot
-rwxr-xr-x 1 root root 1361 мар 5 18:36 unattended-upgrades
-rwxr-xr-x 1 root root 3111 ное 10 2014 urandom
-rwxr-xr-x 1 root root 1307 фев 23 10:21 uuidd
-rwxr-xr-x 1 root root 6138 мар 18 08:42 virtualbox
-rwxr-xr-x 1 root root 2146 мар 18 08:42 virtualbox-guest-utils
-rwxr-xr-x 1 root root 1225 мар 18 08:42 virtualbox-guest-x11
-rwxr-xr-x 1 root root 2757 мар 9 12:39 x11-common

Then you are missing the virtualbox-dkms package. Please try installing that to see if this solves the issue.

Reading package lists… Done
Building dependency tree
Reading state information… Done
virtualbox-dkms is already the newest version.
virtualbox-dkms set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgrade

so not this either. virtualbox fails on both my desktop and laptop, nothing much has changed on either, nothing installed except regular updates - particularly on the laptop which I don’t often use.

Thanks

This is indeed strange as a knew kernel update should have triggered a rebuild of the module. Anyways just reinstall then virtualbox-dkms for it to rebuild the kernel module.

sudo apt-get --reinstall install virtualbox-dkms

I uninstalled and then reinstalled it. This is part of the output;

[b]vboxpci.ko:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/3.19.0-16-generic/updates/dkms/

depmod…

DKMS: install completed.
Job for virtualbox.service failed. See “systemctl status virtualbox.service” and “journalctl -xe” for details.
invoke-rc.d: initscript virtualbox, action “restart” failed.
[/b]
the output when vboxdrv is invoked is still;

zhaba-desktop:~$ sudo /etc/init.d/vboxdrv setup
sudo: /etc/init.d/vboxdrv: command not found

Did you check the

Service already like advised?

vboxpci.ko:

  • Uninstallation
    • Deleting from: /lib/modules/3.19.0-16-generic/updates/dkms/
  • Original module
    • No original module was found for this module on this kernel.
    • Use the dkms install command to reinstall any previous module version.

depmod…

DKMS: uninstall completed.


Deleting module version: 4.3.26
completely from the DKMS tree.

Done.
Unpacking virtualbox-dkms (4.3.26-dfsg-2ubuntu2) over (4.3.26-dfsg-2ubuntu2) …
Setting up virtualbox-dkms (4.3.26-dfsg-2ubuntu2) …
Loading new virtualbox-4.3.26 DKMS files…
Building only for 3.19.0-16-generic
Building initial module for 3.19.0-16-generic
Done.

vboxdrv:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/3.19.0-16-generic/updates/dkms/

vboxnetadp.ko:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/3.19.0-16-generic/updates/dkms/

vboxnetflt.ko:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/3.19.0-16-generic/updates/dkms/

vboxpci.ko:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/3.19.0-16-generic/updates/dkms/

depmod…

DKMS: install completed.
Job for virtualbox.service failed. See “systemctl status virtualbox.service” and “journalctl -xe” for details.
invoke-rc.d: initscript virtualbox, action “restart” failed.

Please use quotations to not spam the forum

Ok so no real error message there. Did you tried the dmesg command after trying to start the virtualbox service ?

yes, there is a ton of stuff of course and I don’t know how to filter it. However the only vbox related thing I can see is the last line which says

which I guess is not informative…

I tried to start the service again, ran the vbox status message command and then dmsg. Same result.

Are you sure that you install the virtualbox kernel driver?

I’m guessing that Netrunner 16 will be the host OS.

You need this package installed:
virtualbox-dkms

As well as:
virtualbox

And for the qt interface to vbox:
virtualbox-qt

YES! It was all running perfectly on two machines (Netrunner 16) until I tried to start it yesterday. After I set them up with NR16 and installed my choice of software nothing has been added except updates.

I uninstalled VB yesterday and re-installed. All the packages you mention are there. VB starts, but won’t load a VM.

Something to do with the last kernel update maybe?

Maybe, did you try starting and enabling it manually?

 sudo systemctl start virtualbox.service

If that works then:

 sudo systemctl enable virtualbox.service

This enables it a boot.

vboxdrv is not in ‘/etc/init.d/vboxdrv’ as the system seems to expect.

That means that it didn’t install after it was built, or there was an error while it was being built.
Try reinstalling just virtualbox-dkms.

I did twice already, but what the heck,one more time…

OK, re-installed - again. the final output on the install is

zero difference

That is strange.