Page 1 of 1

Ubuntu 15.10 to 16.04 upgrade results in issues with Virtualbox

Posted: 2. Aug 2016, 21:34
by bttb
Hi - after upgrading Ubuntu 15.10 to 16.04 virtualbox start having issues and I couldn't start my VM (also Ubuntu) - I don't know exactly what I did to try to solve it in the beginning but probably made a mess while doing it.

Current status starting Virtualbox - latest verstion after

Code: Select all

sudo apt-get remove virtualbox* --purge 
Then restarted, reinstalled, restarted but the error still wasn't solved.

Error:

Code: Select all

RTR3InitEx failed with rc=-1912 (rc=-1912)

The VirtualBox kernel modules do not match this version of VirtualBox. The installation of VirtualBox was apparently not successful. Executing

'/sbin/vboxconfig'

may correct this. Make sure that you do not mix the OSE version and the PUEL version of VirtualBox.

where: supR3HardenedMainInitRuntime what: 4 VERR_VM_DRIVER_VERSION_MISMATCH (-1912) - The installed support driver doesn't match the version of the user. 
then tried

Code: Select all

sudo /sbin/vboxconfig: 

vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: failed: modprobe vboxnetflt failed. Please use 'dmesg' to find out why.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.

Code: Select all

dmesg | grep vboxdrv

[    3.660373] vboxdrv: Found 4 processor cores
[    3.680011] vboxdrv: TSC mode is Invariant, tentative frequency 2893292463 Hz
[    3.680014] vboxdrv: Successfully loaded version 5.0.24_Ubuntu (interface 0x00240000)
so... it seems like there is still some remaining stuff from 5.0.24_Ubuntu that I installed after the first problems occurred and it isn't removed by sudo apt-get remove virtualbox* --purge

Any suggestion how to solve this?
buntu-2016-08-02-18-04-07.log
(36.09 KiB) Downloaded 14 times
Edit: also included vbox.log file

Re: Ubuntu 15.10 to 16.04 upgrade results in issues with Virtualbox

Posted: 2. Aug 2016, 21:44
by Perryg
Purge the install again and then download the official version from virtualbox.org and use dpkg to install it. If you insist on using the Ubuntu fork you will need to consult them.

Re: Ubuntu 15.10 to 16.04 upgrade results in issues with Virtualbox

Posted: 2. Aug 2016, 21:53
by bttb
I already tried that it should have been 5.1.2 r108956 I didn't use dpkg though but the software centre from Ubuntu.

I forgot to mention the following - the version according to the 'about Virtualbox' info is

VirtualBox Graphical User Interface
Version 5.1.2 r108956
Copyright © 2016 Oracle Corporation and or its affiliates. All rights reserved.

So seems the two versions are mixed up. Will try it again with dpkg after purging and let you know the result. thx

Re: Ubuntu 15.10 to 16.04 upgrade results in issues with Virtualbox

Posted: 2. Aug 2016, 22:07
by bttb
Tried

Code: Select all

sudo apt-get remove virtualbox* --purge
 
and installed 5.1_5.1.2-108956 again and now used

Code: Select all

sudo dpkg -i virtualbox-5.1_5.1.2-108956-Ubuntu-xenial_amd64.deb 

Unfortunately didn't help

during install:

Code: Select all

Selecting previously unselected package virtualbox-5.1.
(Reading database ... 771191 files and directories currently installed.)
Preparing to unpack virtualbox-5.1_5.1.2-108956-Ubuntu-xenial_amd64.deb ...
Unpacking virtualbox-5.1 (5.1.2-108956~Ubuntu~xenial) ...
Setting up virtualbox-5.1 (5.1.2-108956~Ubuntu~xenial) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
vboxdrv.sh: failed: modprobe vboxnetflt failed. Please use 'dmesg' to find out why.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.
Processing triggers for systemd (229-4ubuntu7) ...
Processing triggers for ureadahead (0.100.0-19) ...
ureadahead will be reprofiled on next reboot
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160701-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Seems like I just can't remove the old version...

still

Code: Select all

dmesg | grep vboxdrv
[  297.208927] vboxdrv: Found 4 processor cores
[  297.225157] vboxdrv: TSC mode is Invariant, tentative frequency 2892723953 Hz
[  297.225160] vboxdrv: Successfully loaded version 5.0.24_Ubuntu (interface 0x00240000)

Re: Ubuntu 15.10 to 16.04 upgrade results in issues with Virtualbox

Posted: 2. Aug 2016, 22:17
by Perryg
I have seen this before with an in place upgrade to a different version of the host OS. You have to manually remove the bits and start again. It is tricky and time consuming but unless Ubuntu can advise you how to repair this I don't know how else you can fix this. It also makes a big difference if you had the Ubuntu repo version prior as well. This puts files in different places but you should be able to check. The usual difference is the case of the name. VirtualBox vs. virtualbox kind of thing.

Re: Ubuntu 15.10 to 16.04 upgrade results in issues with Virtualbox

Posted: 2. Aug 2016, 22:25
by bttb
hmm... easiest is probably a fresh Ubuntu install then. I assume the vdi file is the only file needed to get the guest working again after setting it up again?

Re: Ubuntu 15.10 to 16.04 upgrade results in issues with Virtualbox

Posted: 2. Aug 2016, 23:44
by Perryg
Actually if you save the entire folder that has the guest it includes the rest of the guest files IE: settings, snapshots, Etc. Then just use the add feature to put it back in.