Forum Discussion
Windows Server 2022 Hyper-V guest state not saved on host reboot
Hi again!
By any chance running a guest with FreeBSD or other OS not handling the VSS service?
I found this in the comments, solved my guest shutdown problem. Looks like this single guest mess it up for the whole Hyper-V shutdown procedure...
https://www.altaro.com/hyper-v/extending-hyper-vs-guest-grace-period-host-shutdown/
Check the comment from "Jon W September 2, 2018 at 9:29 am"
Ok i found a way to replicate the issue. If you install anything based on freebsd 11.2 on hyper-v it will log an error “freebsd kernel: hvvss0: Unknown opt from host: 4” when a shutdown or reboot of the host is initiated. It looks like windows attempts to do something with VSS before issuing a shutdown command and it is failing on the freebsd VM causing the whole vss system to fail on Hyper-v causing all the vm’s power to be pulled even Windows VM’s.
A fix for me was to disable VSS guest services and the vm’s all reboot as normal now.
(I think I've solved this once before but totally forgot about it... it was way back in 2018 also...)
Thanks for the info. We do have an Ubuntu 22.04.02 client on this machine. Did you disable Guest Services or the Backup Service on the non-Windows VM to resolve the issue?
Paul
- MikaelOct 14, 2023Brass Contributor
Unchecked the VSS in setting/guest services and the shutdown/save-state of all guest worked as intended when the host is shutdown or restarted.
For linux i haven't seen this problem. Running a couple of debians on several hosts.
But maybe it's worth a try in your case. If not, you got to "save" and "restore" em with a script.