UTM
UTM copied to clipboard
VM goes to black screen, won't boot back to gui
Describe the issue Running Debian XFCE, full screen. After the screen blanker engages, VM comes back up with a black screen. After stopping VM and trying to reboot, the reboot is very slow and does not bring up GUI, but allows booting to console.
Configuration
- UTM Version: 3.1.5 (53)
- OS Version: Monterey
- Intel or Apple Silicon? Macbook Air M1 Crash log None found
Debug log I will include this if I can reproduce the problem
Pasting the plist Upload VM
When force-closing the VM, the hard disk file may have become corrupted. As far as I know this can be seen by ending up with filesystem errors shown when booting in console mode. Can you see such errors?
Is there any reasonable safeguards that could be added to UTM to prevent the corruption of the disk file?
E.g. perhaps UTM could send the ACPI shutdown signal to the guest, so that the guest can shutdown gracefully?
@cpach I like that idea! Is there a QEMU Monitor command for that?
It seems like #3842 is a similar if not the same issue.
I like that idea! Is there a QEMU Monitor command for that?
I think so, but I’m not 100% sure.
In the QEMU documentation there is a reference to something called system_powerdown
.
Maybe that is what we’re looking for?
@cpach indeed, found an example in Canonical Multipass https://github.com/canonical/multipass/blob/9c51de654ea4ff4ca668a3b9852f5e2f89821130/src/platform/backends/qemu/qemu_virtual_machine.cpp
@osy I think we should offer choice of graceful or forced shutdown (using above QMP API) to fix this issue. It remains to be seen if this works for all guest systems.
Closing this as the ACPI shutdown option was added and the corruption issue unfortunately cannot be fixed.