Problems during VM and host shutdown

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Speedy123
Posts: 1
Joined: 23. Jan 2024, 10:56

Problems during VM and host shutdown

Post by Speedy123 »

I am using Virtualbox 7.0.12_Ubuntur159484 at Ubuntu 22.04 as a host and three virtualbox guests, all Ubuntu 22.04. Very unfrequent it happens that one of the VMs freezes during shutdown. I can see in the log, that the log that the VM has shutdown successfully but the window does not close:
09:16:49.393556 GIM: KVM: Resetting MSRs
09:16:49.401425 vmmR3LogFlusher: Terminating (VERR_OBJECT_DESTROYED)
09:16:49.401543 Changing the VM state from 'DESTROYING' to 'TERMINATED'
09:16:49.407104 Console: Machine state changed to 'PoweredOff'
09:16:49.407268 GUI: Request to close Runtime UI because VM is powered off already.
09:16:49.407274 GUI: Passing request to close Runtime UI from UI session to UI machine.
09:16:49.425025 GUI: UICommon: Handling aboutToQuit request..
Then the other VMs freeze as well and I cannot shutdown them. When I try to shutdown the host system, it runs into problems as well:
Jan 22 19:52:47 host systemd[1]: virtualbox.service: Stopping timed out. Terminating.
Jan 22 19:52:47 host systemd[1]: virtualbox.service: Control process exited, code=killed, status=15/TERM
Jan 22 19:52:47 host systemd[1]: virtualbox.service: Failed with result 'timeout'.
Jan 22 19:52:47 host systemd[1]: virtualbox.service: Unit process 409438 (pidof) remains running after unit stopped.
Is this a known issue? Where can I find more information on the causes of the problem?
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Problems during VM and host shutdown

Post by scottgus1 »

As a rough guess this might happen if the main Virtualbox VboxSVC crashes while shutting down the first VM somehow, and the whole service really needs to stay up for all running VMs.

You're using the Ubuntu fork of Virtualbox. You can ask them how to help troubleshoot the fork, or uninstall/purge the fork and install prerequisites https://www.virtualbox.org/manual/ch02. ... nux-prereq and Official Virtualbox https://www.virtualbox.org/wiki/Linux_Downloads then we might be able to troubleshoot this.
Post Reply