VirtualBox on Ubuntu 16.04 fails to load VirtualBox Kernel Modules

Discussions related to using VirtualBox on Linux hosts.

VirtualBox on Ubuntu 16.04 fails to load VirtualBox Kernel Modules

Postby khatkarrohit » 23. Apr 2016, 21:17

I recently upgraded my laptop OS to Ubuntu 16.04 and VirtualBox give the following error.

Code: Select all   Expand viewCollapse view
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   Expand viewCollapse view
$ 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   Expand viewCollapse view
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.
khatkarrohit
 
Posts: 10
Joined: 23. Apr 2016, 21:12

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

Postby hrobache » 23. Apr 2016, 21:27

After installing Xenial, I encoutered the same issue.
hrobache
 
Posts: 9
Joined: 23. Apr 2016, 21:22

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

Postby Perryg » 23. Apr 2016, 22:12

What version of VirtualBox are you using and where did it come from?
Perryg
Site Moderator
 
Posts: 34373
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

Postby hrobache » 23. Apr 2016, 23:32

I downloaded the one on the download page
virtualbox-5.0_5.0.18-106667~Ubuntu~xenial_amd64.deb
hrobache
 
Posts: 9
Joined: 23. Apr 2016, 21:22

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

Postby Perryg » 23. Apr 2016, 23:46

Post the /var/log/vbox-install.log ( as an attachment )
Perryg
Site Moderator
 
Posts: 34373
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

Postby hrobache » 23. Apr 2016, 23:51

Here is the log
Attachments
vbox-install.log
(1.26 KiB) Downloaded 358 times
hrobache
 
Posts: 9
Joined: 23. Apr 2016, 21:22

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

Postby Perryg » 24. Apr 2016, 00:05

Run the following in the hosts terminal and post the results:

Code: Select all   Expand viewCollapse view
sudo rcvboxdrv start


If it still does not work post the /var/log/dmesg file ( as an attachment )
Perryg
Site Moderator
 
Posts: 34373
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

Postby hrobache » 24. Apr 2016, 07:56

It doesn't work

Code: Select all   Expand viewCollapse view
# rcvboxdrv start
Starting VirtualBox kernel modules ...failed!
  (modprobe vboxdrv failed. Please use 'dmesg' to find out why)
Attachments
dmesg.txt
(75.76 KiB) Downloaded 160 times
hrobache
 
Posts: 9
Joined: 23. Apr 2016, 21:22

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

Postby Perryg » 24. Apr 2016, 14:08

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.
Perryg
Site Moderator
 
Posts: 34373
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

Postby hrobache » 24. Apr 2016, 17:13

Code: Select all   Expand viewCollapse view
#  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 97 times
hrobache
 
Posts: 9
Joined: 23. Apr 2016, 21:22

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

Postby Perryg » 24. Apr 2016, 17:19

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.
Perryg
Site Moderator
 
Posts: 34373
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

Postby hrobache » 24. Apr 2016, 18:01

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

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

Postby khatkarrohit » 24. Apr 2016, 18:11

VirtualBox Version and installer file:
Code: Select all   Expand viewCollapse view
virtualbox-5.0_5.0.18-106667~Ubuntu~xenial_amd64.deb


I purges the VirtualBox-5 like this:
Code: Select all   Expand viewCollapse view
sudo apt-get purge virtualbox-5.0


Re-ran installation using GDebi package installer and got the follwing output:
Code: Select all   Expand viewCollapse view
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   Expand viewCollapse view
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   Expand viewCollapse view
sudo apt-get auto-remove virtualbox-5.0


Installation output:
Code: Select all   Expand viewCollapse view
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   Expand viewCollapse view
(Nothing has been logged yet.)


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

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

Postby Perryg » 24. Apr 2016, 18:17

Forum gives warning vbox-install file too large so failed to attach.

Compress it and try again.
Perryg
Site Moderator
 
Posts: 34373
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

Postby khatkarrohit » 24. Apr 2016, 18:26

I also got the following error code while Starting a Virtual machine having Windows 8.

Code: Select all   Expand viewCollapse view
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 86 times
khatkarrohit
 
Posts: 10
Joined: 23. Apr 2016, 21:12

Next

Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 5 guests