UTM icon indicating copy to clipboard operation
UTM copied to clipboard

Windows hibernation no longer working after v4.2.4

Open jjw24 opened this issue 2 years ago • 16 comments

Describe the issue
I was able to use hibernation on Windows 11 Pro with UTM v4.2.4. Subsequent releases it no longer works, every time after the VM is hibernated booting up results in the VM restarting.

I use Windows hibernation as a workaround for not being able to use UTM's Suspend feature due to the use of GPU acceleration.

Configuration

  • UTM Version: v4.3.4
  • macOS Version: Ventura 13.1
  • Mac Chip (Intel, M1, ...): M1

Happy to provide any additional details if required.

jjw24 avatar Aug 03 '23 04:08 jjw24

Did you change the TPM setting?

osy avatar Aug 03 '23 05:08 osy

Hi, I haven't changed the TPM setting. I just did an upgrade from v4.2.4 on the subsequent release versions and started the VM on each to test.

jjw24 avatar Aug 03 '23 05:08 jjw24

To be clear this is Windows ARM64?

osy avatar Aug 03 '23 05:08 osy

Yes it is.

jjw24 avatar Aug 03 '23 05:08 jjw24

By the way, GPU acceleration (the -gl video card) doesn't do much for Windows. If suspend/resume is an important use case, my advice is to stack to the non-gl video card.

osy avatar Aug 03 '23 05:08 osy

Thank you for the tip, I have tried that option before, I am finding without GPU acceleration though the animation is actually very choppy, which makes switching between and using most Windows apps in the VM feel like the experience of using an old computer.

jjw24 avatar Aug 03 '23 09:08 jjw24

Hmm, I just tried hibernation on v4.2.5 and it doesn't work either. Can you confirm this?

osy avatar Aug 03 '23 15:08 osy

Yeah I tried v4.2.5 and v4.3.4, they both don't work. v4.2.4 is the only version that works. Haven't tried the prior releases though.

jjw24 avatar Aug 03 '23 22:08 jjw24

That’s so bizarre. There’s not really any change between 4.2.5 and 4.2.4 except for ANGLE.

osy avatar Aug 03 '23 23:08 osy

It's not working for me on v4.2.4 either :( I can't fix the issue until I can reproduce it. What is the build number of your Windows?

osy avatar Aug 04 '23 00:08 osy

Of course, happy to provide any information to help you repro the issue. Hoping to get this fixed as I am trying to use UTM for my dev environment.

I am running Windows version 10.0.22000.2245.

So I found, hibernation may not work on the first go, but does after the second or third try. Additionally, I found leaving the VM booted up for 5 ~ 10 minutes actually helps to get hibernation working. Once hibernation works, it will work consistently.

jjw24 avatar Aug 04 '23 04:08 jjw24

So I found, hibernation may not work on the first go, but does after the second or third try. Additionally, I found leaving the VM booted up for 5 ~ 10 minutes actually helps to get hibernation working. Once hibernation works, it will work consistently.

And this doesn’t work on 4.3.x?

osy avatar Aug 04 '23 06:08 osy

No unfortunately. Method doesn't work on v4.2.5 either.

Were you able to get hibernation working with this method on v4.2.4?

jjw24 avatar Aug 04 '23 07:08 jjw24

I haven't had time to attempt this yet but can you try v4.3.5? It uses the same QEMU version as v4.2.x

osy avatar Aug 05 '23 00:08 osy

Tried v4.3.5, thank you. Hibernation working as expected. I tested:

  1. Bring the VM out of hibernation in v4.3.5 from v4.2.4, no issues
  2. Hibernate in v4.3.5 a couple of times and no issues
  3. Killed the VM and able to repro the issue I mentioned where if you hibernate again straight after it's booted up then the whole VM restarts. However if waited for 5 minutes roughly, then able to hibernate again and also successful in subsequent tries.

jjw24 avatar Aug 06 '23 07:08 jjw24

Please this on v4.6.0 https://github.com/utmapp/UTM/releases

osy avatar Oct 04 '24 16:10 osy

v4.6 updated QEMU which may have fixed this issue. If you see it again, please open a new issue with new logs.

osy avatar Nov 27 '24 21:11 osy