VM doesn't restart properly
Describe the issue When my Windows 8.1 VM tries to restart, it hangs instead and lots of the following messages are printed to the console:
UTM[33562:2609718] qemuHasReset, reason = guest-reset
UTM[33562:2609718] Debug JSON recieved <- {
data = {
guest = 1;
reason = "guest-reset";
};
event = RESET;
timestamp = {
microseconds = 330214;
seconds = 1613568369;
};
}
Configuration
- UTM Version: 2.0.21
- OS Version: 14.4
- Device Model: iPad Pro 11" A12X
- Is it jailbroken? No.
- How did you install UTM? Xcode, running tethered.
VM Config
QEMU Arguments export
qemu-system-x86_64
-L /…/UTM.app/qemu
-S
-qmp tcp:127.0.0.1:4444,server,nowait
-spice port=5930,addr=127.0.0.1,disable-ticketing,image-compression=off,playback-compression=off,streaming-video=off
-cpu max
-smp cpus=4,sockets=1,cores=4,threads=1
-machine q35
-accel tcg,thread=multi,tb-size=384,split-wx=on
-vga qxl
-global PIIX4_PM.disable_s3=1
-global ICH9-LPC.disable_s3=1
-boot order=d
-m 1536
-soundhw hda
-name "Windows 8.1 Pro"
-device usb-ehci
-device usb-tablet
-device usb-mouse
-device usb-kbd
-drive "if=none,media=disk,id=drive0,file=/…/Documents/Windows 8.1 Pro.utm/Images/disk-0.qcow2,cache=writethrough"
-drive if=none,media=cdrom,id=drive1
-device e1000e,netdev=net0
-netdev user,id=net0
-uuid A…4
-rtc base=localtime
-device ahci,id=ahci
-device ide-drive,drive=drive0,bus=ahci.0
-device ide-drive,drive=drive1,bus=ahci.1
-vga none
-device virtio-vga
The reason is that I'm building from source using Xcode, which means the version number is slightly more recent.
Yeah, I ran into this sometimes as well. I think it's a QEMU issue. Do you hit this always or just occasionally?
I have only had this happen consistently with this specific VM. 
I can repro this reliably on v2.0.22 on Windows 10 and 8.1 on separate .UTMs. Rebooting just leads to a black screen (consistently, always happens) and I have to shut down the vm and reopen the app.
- iPad Pro 11” 2020 (A12Z)
- iPadOS 14.3RC
- Installed with AltStore
the vm i was testing with:
- Windows Embedded 8.1 Industry Pro
- x86_64, q35, 2gb ram, 4 core force multithread, virtio disk
QEMU arguments
qemu-system-x86_64
-L /[...]/App.app/qemu
-S -qmp tcp:127.0.0.1:4444,server,nowait
-vga none
-spice port=5930,addr=127.0.0.1,disable-ticketing,image-compression=off,playback-compression=off,streaming-video=off
-device qxl-vga
-smp cpus=4,sockets=1,cores=4,threads=1
-machine q35,
-accel tcg,thread=multi,tb-size=512,split-wx=on
-global PIIX4_PM.disable_s3=1
-global ICH9-LPC.disable_s3=1
-boot order=d
-m 2048
-device intel-hda
-device hda-duplex
-name "Windows 8.1"
-device usb-ehci
-device usb-tablet
-device usb-mouse
-device usb-kbd
-drive "if=virtio,media=disk,id=drive0,file=/[..]/Documents/Windows 8.1.utm/Images/disk-0.qcow2,cache=writethrough"
-device virtio-net-pci,netdev=net0
-netdev user,id=net0
-device virtio-serial
-device virtserialport,chardev=vdagent,name=com.redhat.spice.0
-chardev spicevmc,id=vdagent,debug=0,name=vdagent
-uuid 9[...]D
-rtc base=localtime
I believe the issue is related to the BIOS used with the q35 x86_64 machines. Other configurations (i368 pc) and q35 with custom EFI-BIOS reboot fine.