Upgraded to latest Ubuntu, now no VM's work.

Discussions related to using VirtualBox on Linux hosts.

Upgraded to latest Ubuntu, now no VM's work.

Postby schoelta » 25. Oct 2021, 04:00

I just upgraded to the latest Ubuntu version, and not my VM's don't work. I get the following error:

A critical error has occurred while running the virtual machine and the machine execution has been stopped.
schoelta
 
Posts: 2
Joined: 25. Oct 2021, 03:57

Re: Upgraded to latest Ubuntu, now no VM's work.

Postby scottgus1 » 25. Oct 2021, 14:42

schoelta wrote:just upgraded to the latest Ubuntu version

If you are running Ubuntu's built-in fork of Virtualbox, you'll have to ask them. If you are running official Virtualbox from https://www.virtualbox.org/wiki/Linux_Downloads, then you probably will have to re-run the prerequisites https://www.virtualbox.org/manual/ch02. ... nux-prereq then install Virtualbox again.
scottgus1
Site Moderator
 
Posts: 13839
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Upgraded to latest Ubuntu, now no VM's work.

Postby VirtualIan » 25. Oct 2021, 16:23

Also happening here, with the virtualbox-6.1_6.1.28-147628~Ubuntu~eoan_amd64.deb from Oracle.

The typical error message is

Code: Select all   Expand viewCollapse view
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
sucessful. Executing

'/sbin/vboxconfig'

may correct this. Make sure that you are not mixing builds of
VirtualBox from different sources.

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


Running vboxconfig doesn't help:

Code: Select all   Expand viewCollapse view
$sudo /sbin/vboxconfig
[sudo] password for user:
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.


Same error.

Reinstalling doesn't help (note it already was the latest version):

Code: Select all   Expand viewCollapse view
sudo dpkg -i ~/virtualbox-6.1_6.1.28-147628~Ubuntu~eoan_amd64.deb
(Reading database ... 518668 files and directories currently installed.)
Preparing to unpack .../virtualbox-6.1_6.1.28-147628~Ubuntu~eoan_amd64.deb ...
Unpacking virtualbox-6.1 (6.1.28-147628~Ubuntu~eoan) over (6.1.28-147628~Ubuntu~eoan) ...
Setting up virtualbox-6.1 (6.1.28-147628~Ubuntu~eoan) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for mailcap (3.69ubuntu1) ...
Processing triggers for bamfdaemon (0.5.5+21.10.20210710-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.26-1ubuntu2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for shared-mime-info (2.1-1) ...


Same error.
VirtualIan
 
Posts: 8
Joined: 17. Apr 2021, 00:53

Re: Upgraded to latest Ubuntu, now no VM's work.

Postby scottgus1 » 25. Oct 2021, 16:27

I vaguely remember that this error could come from having a mix of Ubuntu fork Virtualbox files and official Virtualbox files on the host, possibly from not uninstalling the Ubuntu-preinstalled fork first before installing the official.

Purge your host of Virtualbox installations, run the prerequisites, then the official Virtualbox again.
scottgus1
Site Moderator
 
Posts: 13839
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Upgraded to latest Ubuntu, now no VM's work.

Postby VirtualIan » 25. Oct 2021, 16:30

Ah, interestingly if I do..

Code: Select all   Expand viewCollapse view
dpkg -l virtualbox*


.. it tells me I have..

Code: Select all   Expand viewCollapse view
ii  virtualbox-6.1                 6.1.28-147628~Ubuntu~eoan     amd64        Oracle VM VirtualBox
ii  virtualbox-dkms                6.1.26-dfsg-4                 amd64        x86 virtualization solution - kernel module sources for dkms


.. installed.

Hmm, why would virtualbox-dkms be a different minor version to virtualbox-6.1??

Presumably this is what it's whinging about.
VirtualIan
 
Posts: 8
Joined: 17. Apr 2021, 00:53

Re: Upgraded to latest Ubuntu, now no VM's work.

Postby scottgus1 » 25. Oct 2021, 16:32

FWIW official Virtualbox does not use dkms, but the forks do, so it could be the problem.
scottgus1
Site Moderator
 
Posts: 13839
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Upgraded to latest Ubuntu, now no VM's work.

Postby VirtualIan » 25. Oct 2021, 16:35

Yes, removing those two and installing virtualbox (again again) has worked.

Hooray, I can now look at some ancient files that need a Windows 2000 program to read :)

Oh, and yes, virtualbox-dkms is now not showing as installed.

As part of the process, the Ubuntu upgrader comments out repositories, like download.virtualbox.org, that are listed in /etc/apt/sources.list.d/ and then does the update, so my guess is that it got installed then.
VirtualIan
 
Posts: 8
Joined: 17. Apr 2021, 00:53

Re: Upgraded to latest Ubuntu, now no VM's work.

Postby scottgus1 » 25. Oct 2021, 16:41

Great, that's good news!
scottgus1
Site Moderator
 
Posts: 13839
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Upgraded to latest Ubuntu, now no VM's work.

Postby VirtualIan » 25. Oct 2021, 17:51

Thank you!
VirtualIan
 
Posts: 8
Joined: 17. Apr 2021, 00:53

Re: Upgraded to latest Ubuntu, now no VM's work.

Postby schoelta » 28. Oct 2021, 01:43

Thanks for the help. Uninstalling everything, and reinstalling it worked.
schoelta
 
Posts: 2
Joined: 25. Oct 2021, 03:57


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 17 guests