utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
26.43k stars 1.32k forks source link

VM doesn't restart properly #2317

Open conath opened 3 years ago

conath commented 3 years ago

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

VM Config

QEMU Arguments export ```text 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 ```
conath commented 3 years ago

The reason is that I'm building from source using Xcode, which means the version number is slightly more recent.

osy commented 3 years ago

Yeah, I ran into this sometimes as well. I think it's a QEMU issue. Do you hit this always or just occasionally?

conath commented 3 years ago

I have only had this happen consistently with this specific VM. 

ThatStella7922 commented 3 years ago

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.

the vm i was testing with:

conath commented 3 years ago

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.