How to configure Microsoft Virtual Server 2005 to cleanly shut down any guest OS
Each guest OS environment runs under the Virtual Server service (vssrvc.exe), which stops when the host OS shuts down. You can configure each guest OS with a default action in the event that the Virtual Server service is closed as follows:
1. Connect to the Virtual Server Web interface
2. Select the Virtual Server name you want to configure and select Edit Configuration.
3. Under Guest OS configuration, click “General properties.”
4. You can now modify the “Action when Virtual Server stops” drop- down list, which the figure at by selecting from the list of options (e.g., to shut down the OS, select the “Shut down guest OS” option). Click OK.
Now when the host server shuts down, the guest OS will be cleanly closed first. If, however, the host OS simply crashes or is powered off, the guest OSs can’t close cleanly. Event ID 1074 will be written in the guest OS System log, notifying the user that the system was powered off by the vmsrvc.exe service.
If you require more control over this functionality, you can shut down the guest OS via the shutdown.exe command-line tool before performing a shutdown of the active host OS, typically as part of a script.






Ricky Noronha said on September 17, 2009
HI,
Yes, that’s supposed to work and does too – but with a singe Virtual Machine (Guest). Anything more than that running and it just kills it – (the virtual machine – guest) while shutting down (the Virtual server on the host systems)….
Don’t know why this happens… but still trying to get to the bottom of it. Even increasing the time-out values, etc. (as MS Suggests in the KB) does not work at all.
Gary Barnes said on January 4, 2012
Its because you can not configure windows to wait for all services to stop before it shuts down the best bet is to have more lines in ur reboot/shutdown script
if this was powershell you could use
(gwmi win32_service -filter ‘name=”virtual server”‘).stop
wait-process “virtual server”
shutdown -r