Forum Discussion
Windows Server 2022 Hyper-V guest state not saved on host reboot
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.
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
- MikaelAug 09, 2023Brass ContributorI've found no solution or explanation for this and I still run my GPO startup/shutdown scripts on the device as a drop-in fix for the behavior.
😮