I have been trying to find the answer to this everywhere but not been able to so perhaps you can help. I have an Ubuntu 16 base system and on that a Windows Server 2016 VM running using KVM and Cloudmin acting as my DC in my house. The issue is that this VM never shuts down during a system reboot etc so I'm always greeted with "unexpected shutdown" when I remote into the Windows 2016 Server. I tried adding more time to "wait" for the guest to shutdown, but that doesn't change anything. Having a remote desktop session with the Windows 2016 Server when rebooting the host shows that it doesn't even try to shut it down. No warning dialog to the logged in user or anything. It just acts like the power was cut. I was thinking about writing some script to run during the shutdown of the Ubuntu host that would end a shutdown signal to the Windows VM using the "net" command. But shouldn't Cloudmin actually take care of gracefully shutting down the machines?
Cloudmin running on Ubuntu doesn't shut down Windows Server 2016 VM