Page 1 of 2

Dirt installation of Virtualbox

Posted: 15. Mar 2015, 22:21
by Carlogubi
Good Morning,

I installed Virtualbox from the .deb package downloaded on Virtualbox dot org

The program starts, but when I am trying to open an image I get the following 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
'/etc/init.d/vboxdrv setup'
may correct this. Make sure that you do not mix the OSE version and the PUEL version of VirtualBox.
running sudo /etc/init.d/vboxdrv setup produces the following result:

Code: Select all

sudo /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMS ...done.
Starting VirtualBox kernel modules ...done.
Nevertheless, I still got the same error when trying to open a virtual machine:

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
'/etc/init.d/vboxdrv setup'
may correct this. Make sure that you do not mix the OSE version and the PUEL version of VirtualBox.

Failed to open a session for the virtual machine Windows 7 Pro 64.
The virtual machine 'Windows 7 Pro 64' has terminated unexpectedly during startup with exit code 1 (0x1).

Details

Result Code: 
NS_ERROR_FAILURE (0x80004005)
Component: 
Machine
Interface: 
IMachine {480cf695-2d8d-4256-9c7c-cce4184fa048}
I removed and reinstalled the package several times, but the behavior is always the same.

Thank you in advance for your support

Re: Dirt installation of Virtualbox

Posted: 15. Mar 2015, 23:48
by Perryg
We need to see a few log files.

1) /var/log/vbox-install.log
2) the guests log file ( as an attachment ) if one exists.

Also what is the host exactly?

Re: Dirt installation of Virtualbox

Posted: 16. Mar 2015, 22:04
by Carlogubi
Thank you for your answer

This is my hardware configuration:

OS: Ubuntu 14.10 64-Bit
Virtualization: Enabled on BIOS
Processor: Intel® Core™2 Duo CPU T9550 @ 2.66GHz × 2

Here is /var/log/vbox-install.log

Code: Select all

Uninstalling modules from DKMS
  removing old DKMS module vboxhost version  4.3.24

-------- Uninstall Beginning --------
Module:  vboxhost
Version: 4.3.24
Kernel:  3.16.0-31-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.16.0-31-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.


vboxnetflt.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.16.0-31-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.


vboxnetadp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.16.0-31-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.


vboxpci.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.16.0-31-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.24
completely from the DKMS tree.
------------------------------
Done.
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxhost/4.3.24/source ->
                 /usr/src/vboxhost-4.3.24

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area.....
make KERNELRELEASE=3.16.0-31-generic -C /lib/modules/3.16.0-31-generic/build M=/var/lib/dkms/vboxhost/4.3.24/build....................
cleaning build area....

DKMS: build completed.

vboxdrv:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.16.0-31-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.16.0-31-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.16.0-31-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.16.0-31-generic/updates/dkms/

depmod....

DKMS: install completed.
What is the guests log file, and where could I find it?

Thanks in advance for your support.

Re: Dirt installation of Virtualbox

Posted: 16. Mar 2015, 22:52
by Perryg
Right click on the guest in the main manager and then click show log. Save and post as an attachment

Re: Dirt installation of Virtualbox

Posted: 16. Mar 2015, 23:30
by Carlogubi
Perryg wrote:Right click on the guest in the main manager and then click show log. Save and post as an attachment
Unfortunately the log is empty... i reproduced the crash several times but with right-click and "show log" the result is always the same:
Screenshot
Screenshot
log.jpg (32.86 KiB) Viewed 17531 times

Re: Dirt installation of Virtualbox

Posted: 16. Mar 2015, 23:39
by Perryg
This usually means an early crash of the com server. I would uninstall the running version of VirtualBox and then try the release that came out today.
https://www.virtualbox.org/wiki/Downloads

Re: Dirt installation of Virtualbox

Posted: 18. Mar 2015, 01:25
by Carlogubi
Perryg wrote:This usually means an early crash of the com server. I would uninstall the running version of VirtualBox and then try the release that came out today.
https://www.virtualbox.org/wiki/Downloads
I just installed the new release from

http://download.virtualbox.org/virtualb ... g_i386.deb

Double-clicking on the .deb package after downloading caused it to be installed by the Ubuntu Software Center.

Nevertheless, the error persists. I'd really like to know how to perform a clean uninstall without leaving any trace that could produce conflicts after the reinstallation of the latest package. Any help will be appreciated.
Screenshot1.jpg
Screenshot1.jpg (56.9 KiB) Viewed 17497 times
Screenshot1.jpg
Screenshot1.jpg (56.9 KiB) Viewed 17497 times

Re: Dirt installation of Virtualbox

Posted: 18. Mar 2015, 01:31
by Perryg
Are you sure you have a Linux host? Everything looks like Windows for some reason.

Re: Dirt installation of Virtualbox

Posted: 19. Mar 2015, 00:07
by Carlogubi
Perryg wrote:Are you sure you have a Linux host? Everything looks like Windows for some reason.
If the question is "are you using Virtualbox on a Linux Machine to emulate other operating systems"? The answer is positively YES.
Screenshot3.jpg
Screenshot3.jpg (50.38 KiB) Viewed 17459 times

Re: Dirt installation of Virtualbox

Posted: 19. Mar 2015, 00:20
by Perryg
I would purge the current install of VirtualBox and make sure all traces are gone. Then install again after a reboot to make sure that all traces are gone.

Re: Dirt installation of Virtualbox

Posted: 19. Mar 2015, 00:57
by Carlogubi
Perryg wrote:I would purge the current install of VirtualBox and make sure all traces are gone. Then install again after a reboot to make sure that all traces are gone.
This is what I did for cleaning my system starting from that Virtualbox installaton which produced errors:

STEP 1: remove old kernel modules

Code: Select all

sudo /etc/init.d/vboxdrv setup
[sudo] password for gubi: 
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMS ...done.
Starting VirtualBox kernel modules ...done.
STEP 2: Remove all the virtualbox packages

Code: Select all

gubi@lino:~$ sudo apt-get remove virtualbox*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'virtualbox-3.0' for regex 'virtualbox*'
Note, selecting 'virtualbox-3.1' for regex 'virtualbox*'
Note, selecting 'virtualbox-3.2' for regex 'virtualbox*'
Note, selecting 'virtualbox' for regex 'virtualbox*'
Note, selecting 'unity-scope-virtualbox' for regex 'virtualbox*'
Note, selecting 'virtualbox-2.0' for regex 'virtualbox*'
Note, selecting 'virtualbox-2.1' for regex 'virtualbox*'
Note, selecting 'virtualbox-2.2' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-source' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-dkms' for regex 'virtualbox*'
Note, selecting 'virtualbox-dbg' for regex 'virtualbox*'
Note, selecting 'virtualbox-dkms' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-x11' for regex 'virtualbox*'
Note, selecting 'virtualbox-ose' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-additions-iso' for regex 'virtualbox*'
Note, selecting 'virtualbox-qt' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-additions' for regex 'virtualbox*'
Note, selecting 'virtualbox-4.0' for regex 'virtualbox*'
Note, selecting 'virtualbox-4.1' for regex 'virtualbox*'
Note, selecting 'virtualbox-4.2' for regex 'virtualbox*'
Note, selecting 'virtualbox-source' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-utils' for regex 'virtualbox*'
Package 'virtualbox-2.0' is not installed, so not removed
Package 'virtualbox-2.1' is not installed, so not removed
Package 'virtualbox-2.2' is not installed, so not removed
Package 'virtualbox-3.0' is not installed, so not removed
Package 'virtualbox-4.2' is not installed, so not removed
Package 'virtualbox-3.1' is not installed, so not removed
Package 'virtualbox-3.2' is not installed, so not removed
Package 'virtualbox-4.0' is not installed, so not removed
Package 'virtualbox-4.1' is not installed, so not removed
Package 'virtualbox-guest-additions' is not installed, so not removed
Package 'virtualbox-ose' is not installed, so not removed
Package 'unity-scope-virtualbox' is not installed, so not removed
Package 'virtualbox-guest-additions-iso' is not installed, so not removed
Package 'virtualbox' is not installed, so not removed
Package 'virtualbox-dbg' is not installed, so not removed
Package 'virtualbox-dkms' is not installed, so not removed
Package 'virtualbox-guest-dkms' is not installed, so not removed
Package 'virtualbox-guest-source' is not installed, so not removed
Package 'virtualbox-guest-utils' is not installed, so not removed
Package 'virtualbox-guest-x11' is not installed, so not removed
Package 'virtualbox-qt' is not installed, so not removed
Package 'virtualbox-source' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
(After this step, the icon of virtualbox is still present in system tools program group and in Ubuntu software center)

Step 3: Uninstall VirtualBox from Ubuntu software center. It is listed in the removal log. The version removed is 4.3.26, which corresponds to the latest .deb package that was downloaded and installed trough Ubuntu Software Center.

Step 4: Now the software is no longer reported as installed in Ubuntu software center and it is gone also from the system tools program group.

Step 5: another purge from shell, just to be sure. There are still many "ghost" packages which produce the warning "Package XYZ is not installed, so not removed.

Code: Select all

gubi@lino:~$ sudo apt-get purge virtualbox*
[sudo] password for gubi: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'virtualbox-3.0' for regex 'virtualbox*'
Note, selecting 'virtualbox-3.1' for regex 'virtualbox*'
Note, selecting 'virtualbox-3.2' for regex 'virtualbox*'
Note, selecting 'virtualbox' for regex 'virtualbox*'
Note, selecting 'unity-scope-virtualbox' for regex 'virtualbox*'
Note, selecting 'virtualbox-2.0' for regex 'virtualbox*'
Note, selecting 'virtualbox-2.1' for regex 'virtualbox*'
Note, selecting 'virtualbox-2.2' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-source' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-dkms' for regex 'virtualbox*'
Note, selecting 'virtualbox-dbg' for regex 'virtualbox*'
Note, selecting 'virtualbox-dkms' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-x11' for regex 'virtualbox*'
Note, selecting 'virtualbox-ose' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-additions-iso' for regex 'virtualbox*'
Note, selecting 'virtualbox-qt' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-additions' for regex 'virtualbox*'
Note, selecting 'virtualbox-4.0' for regex 'virtualbox*'
Note, selecting 'virtualbox-4.1' for regex 'virtualbox*'
Note, selecting 'virtualbox-4.2' for regex 'virtualbox*'
Note, selecting 'virtualbox-source' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-utils' for regex 'virtualbox*'
Package 'virtualbox-2.0' is not installed, so not removed
Package 'virtualbox-2.1' is not installed, so not removed
Package 'virtualbox-2.2' is not installed, so not removed
Package 'virtualbox-3.0' is not installed, so not removed
Package 'virtualbox-4.2' is not installed, so not removed
Package 'virtualbox-3.1' is not installed, so not removed
Package 'virtualbox-3.2' is not installed, so not removed
Package 'virtualbox-4.0' is not installed, so not removed
Package 'virtualbox-4.1' is not installed, so not removed
Package 'virtualbox-guest-additions' is not installed, so not removed
Package 'virtualbox-ose' is not installed, so not removed
Package 'unity-scope-virtualbox' is not installed, so not removed
Package 'virtualbox-guest-additions-iso' is not installed, so not removed
Package 'virtualbox' is not installed, so not removed
Package 'virtualbox-dbg' is not installed, so not removed
Package 'virtualbox-dkms' is not installed, so not removed
Package 'virtualbox-guest-dkms' is not installed, so not removed
Package 'virtualbox-guest-source' is not installed, so not removed
Package 'virtualbox-guest-utils' is not installed, so not removed
Package 'virtualbox-guest-x11' is not installed, so not removed
Package 'virtualbox-qt' is not installed, so not removed
Package 'virtualbox-source' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  libcaca0:i386 libcurl3:i386 libdevmapper1.02.1:i386 libidn11:i386
  libpython2.7:i386 libpython2.7-minimal:i386 libpython2.7-stdlib:i386
  libreadline6:i386 librtmp1:i386 libsdl1.2debian:i386 libxmu6:i386
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
gubi@lino:~$ 
Step 6: for a deep clean, I ran the command apt-get autoremove to remove packages which are no longer required.

Code: Select all

gubi@lino:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  libcaca0:i386 libcurl3:i386 libdevmapper1.02.1:i386 libidn11:i386
  libpython2.7:i386 libpython2.7-minimal:i386 libpython2.7-stdlib:i386
  libreadline6:i386 librtmp1:i386 libsdl1.2debian:i386 libxmu6:i386
0 upgraded, 0 newly installed, 11 to remove and 11 not upgraded.
After this operation, 18.7 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 329293 files and directories currently installed.)
Removing libsdl1.2debian:i386 (1.2.15-10ubuntu1) ...
Removing libcaca0:i386 (0.99.beta19-2) ...
Removing libcurl3:i386 (7.37.1-1ubuntu3.2) ...
Removing libdevmapper1.02.1:i386 (2:1.02.77-6ubuntu2) ...
Removing libidn11:i386 (1.28-1ubuntu2) ...
Removing libpython2.7:i386 (2.7.8-10ubuntu1) ...
Removing libpython2.7-stdlib:i386 (2.7.8-10ubuntu1) ...
dpkg-query: no packages found matching pkgname
Removing libpython2.7-minimal:i386 (2.7.8-10ubuntu1) ...
dpkg-query: no packages found matching pkgname
dpkg-query: no packages found matching pkgname
Removing libreadline6:i386 (6.3-8ubuntu1) ...
Removing librtmp1:i386 (2.4+20131018.git79459a2-4) ...
Removing libxmu6:i386 (2:1.1.2-1) ...
Processing triggers for libc-bin (2.19-10ubuntu2.3) ...
gubi@lino:~$
Step 7: Reboot

Step 8:

Install the .deb package available on

http://download.virtualbox.org/virtualb ... g_i386.deb

Which corresponds to my CPU (Intel) and to my version of Ubuntu (14.10)

Step 9: Double-clicking the package will make it open in Ubuntu software center, where I click on "Install". ([By the way, I don't understand why Virtualbox is not available through the standard repositories available on Ubuntu software center and it has to be installed as a separate package)

Step 10: After the first install, Virtualbox is not listed in the "installed" log of Ubuntu Software Center, but it is present in the system tools program group.

Step 11: I click again on the "install" button in Ubuntu Software Center, and finally Virtualbox is listed among the installed applications.

Step 12: I run Virtualbox, and when I try to run a new virtual machine configured from scratch, I still get the same error:
Screenshot6.jpg
Screenshot6.jpg (61.52 KiB) Viewed 17454 times

Re: Dirt installation of Virtualbox

Posted: 1. Jul 2015, 20:44
by Xeln
I am seeing the exact same symptoms when attempting to run VirtualBox on a brand new Fedora 22 installation. Everything from the errors to the logs you're showing are exactly what I'm seeing.

On the one hand, I'm glad it's not just me. On the other hand, I'd love to get some insight as to how to resolve this issue. Very frustrating that there seems to be nothing I can find other than running '/etc/init.d/vboxdrv setup' and there is nothing I can find anywhere about what to do when that doesn't resolve the issue.

If you have found a solution, I'd be interested to know what it was. If not, hopefully this will at least bump this thread up so it gets attention again.

Thanks!

Re: Dirt installation of Virtualbox

Posted: 1. Jul 2015, 20:51
by Perryg
Stop using the Ubuntu software center. Either use dpkg or install gdebi and use that.
Reason; The software center still tries to install their version of VirtualBox and if you aren't careful you will still be at the same place you were to begin with.

Re: Dirt installation of Virtualbox

Posted: 2. Jul 2015, 16:58
by Xeln
I don't think this is specifically an issue of Ubuntu Software Center as I experience the same exact symptoms in Fedora using the .rpm downloaded directly from the Virtual Box web site.

Re: Dirt installation of Virtualbox

Posted: 2. Jul 2015, 17:13
by mpack
Xeln wrote:I don't think this is specifically an issue of Ubuntu Software Center as I experience the same exact symptoms in Fedora using the .rpm downloaded directly from the Virtual Box web site.
The error says you have a mixture of incompatible code modules, so it does sound to me like the Software Center is quite relevant. You should eliminate all traces of VirtualBox from your host and install only the official release from this site.