[Solved] A critical error has occurred while running the virtual machine

This is for discussing general topics about how to use VirtualBox.
Locked
Mark Phetsahai
Posts: 3
Joined: 9. Jun 2020, 10:55

[Solved] A critical error has occurred while running the virtual machine

Post by Mark Phetsahai »

Hi All,

Please help, I normally use the Virtual box with Windows 10 64 bit(host) and Ubuntu 64 bit (client) but one day I got the error as below and can't open any virtual machine anymore.

a critical error has occurred while running the virtual machine and the machine execution has been stopped.

I tried several ways to fix it but it didn't work.

Here is the log record, sorry I don't see the Vbox.png.
VBox.rar
(32.38 KiB) Downloaded 1185 times
I would like to show you the error screenshot but I can't attach them because I am a new account here.
if you guys need more information to help me, please let me know.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: A critical erro has occurred while running the virtual machine

Post by mpack »

Topic moved to "Windows Hosts".

Your error is "VERR_VMX_INVALID_VMXON_PTR", which is usually caused by something else in the system grabbing and using VT-x/AMD-v. Your VirtualBox version is quite old, I would definitely try upgrading it.

Also, you have a teeny amount of graphics RAM, only 16MB. I assume you must be ignoring the "invalid settings" warning in the VM settings dialog. Not a good idea! You have a decent amount of RAM available on the host, so I'd increase graphics RAM to 64MB or more.

You are also under-specified CPU wise for a modern OS, but with only two cores available there's no good solution to that one. Assigning two cores to the VM may make it run smoother, but also allows the VM to take CPU from the host.
Mark Phetsahai
Posts: 3
Joined: 9. Jun 2020, 10:55

Re: A critical erro has occurred while running the virtual machine

Post by Mark Phetsahai »

Hi mpack,

Thanks for your help

I think so about something else in the system using the VT-x/AMD-v. Basically, it would be some software that I just install after the latest use of the virtual machine but I have no ideas which software and I don't know how to check them.

I currently use the VM version 6.0.12, I think it isn't old but anyway I already upgrade them to be 6.1.10 so it still doesn't work yet.

I also try all of the settings as your suggestion i.e. increased the amount of RAM/ CPU but it doesn't work too. if you have more ideas please let me know, I will try everything as much as I can.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: A critical erro has occurred while running the virtual machine

Post by mpack »

I should perhaps have put it a little stronger: "invalid VMXON" always means that something else is using VT-x/AMD-v.

A list of common "other software" candidates to look for can be found in FAQ: I have a 64bit host, but can't install 64bit guests.
Mark Phetsahai
Posts: 3
Joined: 9. Jun 2020, 10:55

Re: A critical erro has occurred while running the virtual machine

Post by Mark Phetsahai »

Hi mpack,

now, my virtual box is working fine.

I found that the TwinCAT 3 that I just install in a couple week ago might using the VT-x/AMD-v.

Many thanks for your help.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: A critical erro has occurred while running the virtual machine

Post by mpack »

Thanks for reporting back, and for confirming the finding.
skyranger937
Posts: 1
Joined: 27. Oct 2021, 05:26

Re: [Solved] A critical error has occurred while running the virtual machine

Post by skyranger937 »

In my case, it was because I had Docker installed.
I had to uninstall Docker AND disable Hyper-V
Oman Komarudin
Posts: 1
Joined: 27. Jan 2022, 05:47

Re: [Solved] A critical error has occurred while running the virtual machine

Post by Oman Komarudin »

I already tried the above solutions, and still not solving the problem.

I figured that my virtual box is 6.1 (seems up-to-date) but the minor version of my installed is 6.1.27 then I checked the newest version is 6.1.32

I download and installed the newest version by these steps:
1. download the latest virtualbox
2. install the downloaded without removing the installed version
3. it will show the 'RTR3Init failed with rc=-1912 (rc=-1912)' error, don't worry we solve this issue on next steps
4. run sudo apt-get purge virtualbox-dkms
5. run sudo apt-get install dkms
6. sudo /sbin/vboxconfig

Afterthat, my problem is resolved.
Locked