VirtualBox on Ubuntu 16.04 fails to load VirtualBox Kernel Modules

Discussions related to using VirtualBox on Linux hosts.
khatkarrohit
Posts: 10
Joined: 23. Apr 2016, 21:12

VirtualBox on Ubuntu 16.04 fails to load VirtualBox Kernel Modules

Post 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.
Last edited by khatkarrohit on 23. Apr 2016, 21:41, edited 1 time in total.
hrobache
Posts: 9
Joined: 23. Apr 2016, 21:22

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

Post by hrobache »

After installing Xenial, I encoutered the same issue.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Post by Perryg »

What version of VirtualBox are you using and where did it come from?
hrobache
Posts: 9
Joined: 23. Apr 2016, 21:22

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

Post by hrobache »

I downloaded the one on the download page
virtualbox-5.0_5.0.18-106667~Ubuntu~xenial_amd64.deb
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Post by Perryg »

Post the /var/log/vbox-install.log ( as an attachment )
hrobache
Posts: 9
Joined: 23. Apr 2016, 21:22

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

Post by hrobache »

Here is the log
Attachments
vbox-install.log
(1.26 KiB) Downloaded 967 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Post 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 )
hrobache
Posts: 9
Joined: 23. Apr 2016, 21:22

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

Post 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)
Attachments
dmesg.txt
(75.76 KiB) Downloaded 689 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Post 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.
hrobache
Posts: 9
Joined: 23. Apr 2016, 21:22

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

Post 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
Attachments
dmesg3.txt
(96.59 KiB) Downloaded 594 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Post 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.
hrobache
Posts: 9
Joined: 23. Apr 2016, 21:22

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

Post by hrobache »

I purged virtualbox (through Synaptic in oder to verify any vbox related item left)

I enclose the result of the dpkg
Attachments
dpkg.txt
(1.24 KiB) Downloaded 612 times
khatkarrohit
Posts: 10
Joined: 23. Apr 2016, 21:12

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

Post 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.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Post by Perryg »

Forum gives warning vbox-install file too large so failed to attach.
Compress it and try again.
khatkarrohit
Posts: 10
Joined: 23. Apr 2016, 21:12

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

Post 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.
Attachments
vbox-install.log.tar.bz2
(26.22 KiB) Downloaded 521 times
Post Reply