Forum Discussion
Windows Server 2022 Hyper-V guest state not saved on host reboot
Were you able to get this resolved? We have a 2022 Server that is exhibiting this issue as well. We ran Windows Update on the host yesterday and upon reboot, it pulled the plug on all VM's instead of them going to the configured Saved state. Manually putting them in the Saved state via GUI seems to work fine. We were previously on Windows 2012r2 and never did have this issue.
Paul
- MikaelMar 29, 2023Brass Contributor
Hi!
No didn't had the possibility or time to investigate the issue further. As I'm not running Windows Server on "server"-grade hardware, it's a bit older intel-nuc, I didn't pursue. Still a bit curious why it just kills the vm as it does, and how to troubleshoot it. At the time looking at it I couldn't isolate the cause.
The attached powershell scripts above, vm-up-down..., though; works like a charm. It does pretty much the same thing as the built in function does.- Paul ChristelMar 30, 2023Copper ContributorThanks for the info. It's pretty irritating to say the least. I tried setting them to Shutdown instead of Save and it pulled the plug, just the same. Manually Saving or Shutting down seems to work properly for me. But shutting down and/or restarting the host just kills everything.
I'll take a look at the scripts when I get a chance.- RichardEmeraldTGAug 09, 2023Copper Contributor
We have seen this happen on many hosts across different versions 2016, 2019, 2022. In my investigation what I have seen is the host installs updates reboots and when it comes back up it shows the window before you get to login stating that its finishing updates and before getting to the login screen it then says its rebooting again. Meanwhile the VM's have already started up so bam power pulled on all the VM's. We have seen the effects of this in virtual machines not being able to install windows updates, windows files missing or corrupted. SFC scans and DISM have been unable to repair them. So frustrating. Paul Christel