Page 1 of 4

VirtualBox on Ubuntu 16.04 fails to load VirtualBox Kernel Modules

Posted: 23. Apr 2016, 21:17
by khatkarrohit
I recently upgraded my laptop OS to Ubuntu 16.04 and VirtualBox give the following error.

Code: Select all

sudo /sbin/rcvboxdrv setup
[sudo] password for My-PC: 
Stopping VirtualBox kernel modules ...done.
Removing old VirtualBox pci kernel module ...done.
Removing old VirtualBox netadp kernel module ...done.
Removing old VirtualBox netflt kernel module ...done.
Removing old VirtualBox kernel module ...done.
Recompiling VirtualBox kernel modules ...done.
Starting VirtualBox kernel modules ...failed!
  (modprobe vboxdrv failed. Please use 'dmesg' to find out why)
System Details:

Code: Select all

$ uname -a
Linux My-PC 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
GCC version:

Code: Select all

gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2) 
Reinstall does not solves the problem and same happens during installation also.

Re: VirtualBox on Ubuntu 16.04 fails to load VirtualBox Kernel Modules

Posted: 23. Apr 2016, 21:27
by hrobache
After installing Xenial, I encoutered the same issue.

Re: VirtualBox on Ubuntu 16.04 fails to load VirtualBox Kernel Modules

Posted: 23. Apr 2016, 22:12
by Perryg
What version of VirtualBox are you using and where did it come from?

Re: VirtualBox on Ubuntu 16.04 fails to load VirtualBox Kernel Modules

Posted: 23. Apr 2016, 23:32
by hrobache
I downloaded the one on the download page
virtualbox-5.0_5.0.18-106667~Ubuntu~xenial_amd64.deb

Re: VirtualBox on Ubuntu 16.04 fails to load VirtualBox Kernel Modules

Posted: 23. Apr 2016, 23:46
by Perryg
Post the /var/log/vbox-install.log ( as an attachment )

Re: VirtualBox on Ubuntu 16.04 fails to load VirtualBox Kernel Modules

Posted: 23. Apr 2016, 23:51
by hrobache
Here is the log

Re: VirtualBox on Ubuntu 16.04 fails to load VirtualBox Kernel Modules

Posted: 24. Apr 2016, 00:05
by Perryg
Run the following in the hosts terminal and post the results:

Code: Select all

sudo rcvboxdrv start
If it still does not work post the /var/log/dmesg file ( as an attachment )

Re: VirtualBox on Ubuntu 16.04 fails to load VirtualBox Kernel Modules

Posted: 24. Apr 2016, 07:56
by hrobache
It doesn't work

Code: Select all

# rcvboxdrv start
Starting VirtualBox kernel modules ...failed!
  (modprobe vboxdrv failed. Please use 'dmesg' to find out why)

Re: VirtualBox on Ubuntu 16.04 fails to load VirtualBox Kernel Modules

Posted: 24. Apr 2016, 14:08
by Perryg
There is no mention in the dmesg about vbox. So lets go a different way.
  • 1) do the rcvboxdrv start again and when it fails type dmesg and post the content of the terminal window.
    2) next type virtualbox in the terminal and post the results that is stated there.

Re: VirtualBox on Ubuntu 16.04 fails to load VirtualBox Kernel Modules

Posted: 24. Apr 2016, 17:13
by hrobache

Code: Select all

#  rcvboxdrv start
Starting VirtualBox kernel modules ...failed!
  (modprobe vboxdrv failed. Please use 'dmesg' to find out why)
You will find enclosed the dmesg result. Still nothing about vbox

I will try another installation with apt in sudo mode and send the result

Re: VirtualBox on Ubuntu 16.04 fails to load VirtualBox Kernel Modules

Posted: 24. Apr 2016, 17:19
by Perryg
Actually I would prefer that you first purge the existing VirtualBox and then use dpkg or gdebi to install it. ( your guest/s will still be available )

This all points to a failed install and if this was an upgrade to 16.04 it could be the reason.

Re: VirtualBox on Ubuntu 16.04 fails to load VirtualBox Kernel Modules

Posted: 24. Apr 2016, 18:01
by hrobache
I purged virtualbox (through Synaptic in oder to verify any vbox related item left)

I enclose the result of the dpkg

Re: VirtualBox on Ubuntu 16.04 fails to load VirtualBox Kernel Modules

Posted: 24. Apr 2016, 18:11
by khatkarrohit
VirtualBox Version and installer file:

Code: Select all

virtualbox-5.0_5.0.18-106667~Ubuntu~xenial_amd64.deb
I purges the VirtualBox-5 like this:

Code: Select all

sudo apt-get purge virtualbox-5.0
Re-ran installation using GDebi package installer and got the follwing output:

Code: Select all

Selecting previously unselected package virtualbox-5.0.
(Reading database ... 201658 files and directories currently installed.)
Preparing to unpack .../virtualbox-5.0_5.0.18-106667~Ubuntu~xenial_amd64.deb ...
Unpacking virtualbox-5.0 (5.0.18-106667~Ubuntu~xenial) ...
Setting up virtualbox-5.0 (5.0.18-106667~Ubuntu~xenial) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
Stopping VirtualBox kernel modules ...done.
Removing old VirtualBox pci kernel module ...done.
Recompiling VirtualBox kernel modules ...done.
Starting VirtualBox kernel modules ...failed!
  (modprobe vboxdrv failed. Please use 'dmesg' to find out why)
Processing triggers for ureadahead (0.100.0-19) ...
ureadahead will be reprofiled on next reboot
Processing triggers for systemd (229-4ubuntu4) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for shared-mime-info (1.5-2) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
rcvboxdrv start gave follwing output:

Code: Select all

rcvboxdrv start
Starting VirtualBox kernel modules ...failed!
  (modprobe vboxdrv failed. Please use 'dmesg' to find out why)
Again removed VirtualBox using following command:

Code: Select all

sudo apt-get auto-remove virtualbox-5.0 
Installation output:

Code: Select all

Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up libqt4-opengl:amd64 (4:4.8.7+dfsg-5ubuntu2) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Selecting previously unselected package virtualbox-5.0.
(Reading database ... 201646 files and directories currently installed.)
Preparing to unpack .../virtualbox-5.0_5.0.18-106667~Ubuntu~xenial_amd64.deb ...
Unpacking virtualbox-5.0 (5.0.18-106667~Ubuntu~xenial) ...
Setting up virtualbox-5.0 (5.0.18-106667~Ubuntu~xenial) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
Stopping VirtualBox kernel modules ...done.
Removing old VirtualBox pci kernel module ...done.
Recompiling VirtualBox kernel modules ...done.
Starting VirtualBox kernel modules ...failed!
  (modprobe vboxdrv failed. Please use 'dmesg' to find out why)
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu4) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for shared-mime-info (1.5-2) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
dmesg file has just one line:

Code: Select all

(Nothing has been logged yet.)
Forum gives warning vbox-install file too large so failed to attach.

Re: VirtualBox on Ubuntu 16.04 fails to load VirtualBox Kernel Modules

Posted: 24. Apr 2016, 18:17
by Perryg
Forum gives warning vbox-install file too large so failed to attach.
Compress it and try again.

Re: VirtualBox on Ubuntu 16.04 fails to load VirtualBox Kernel Modules

Posted: 24. Apr 2016, 18:26
by khatkarrohit
I also got the following error code while Starting a Virtual machine having Windows 8.

Code: Select all

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

'/sbin/rcvboxdrv 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.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT. 
vbox-install.log.tat.bz2 file attached.