Article
RSS
Virtual Server Shutdown Stalemate

Quoting from MCPMag.com

Chris Wolf writes: Here's how to allow VM save state operations time to complete when a
Virtual Server host is shut down.

Question: I think I found a bug in Microsoft Virtual Server. I'm running Microsoft Virtual Server 2005 R2. For each VM on the server (I have eight), I have the "Action When Server Stops" property set to Save State. For some reason, this doesn't always seem to work when I shut the server down. Now I'm finding myself manually doing this from the Master Status page before shutting down the server. Shouldn't the automatic Save State feature prevent me from having to do this?

Answer: In theory the Save State operation works just fine. Virtual Server does try to save the running state of each active virtual machine when a system shutdown event begins. The real problem here is not Virtual Server but, instead, an impatient operating system.

While Virtual Server is trying to shut down, Windows is saying "Come on! Hurry up! I don't have all day!" Then the OS starts its countdown. If the service has not stopped by the time the OS decides to wait, the service is forcefully terminated.

The termination timeout is configured using the following registry string value:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\WaitToKillServiceTimeout

The number assigned to the value represents the amount of milliseconds that the OS will wait for a service to gracefully shutdown. The default value is 20,000 milliseconds, or 20 seconds. If the time is exceeded, the service is terminated so that the OS can continue the shutdown process. In your case, I recommend that you increase the value to a significantly higher number, such as 300,000. This would allow for a five-minute wait (300,000 milliseconds is equal to 300 seconds). If this is not ample enough time, then you could raise the value to 10 minutes -- 600,000.

For quicker VM shutdowns, also consider changing the "Action when Virtual Server stops" for each VM from "Save State" to "Shut Down Guest OS." However, this requires that the VM additions be installed in each guest OS. For Linux guest VMs, you need to download the Virtual Machine Additions for Linux, which is currently in beta.

I hope this helps.

Comment:
http://mcpmag.com/columns/article.asp?editorialsid=1413#post

Published Wednesday, July 26, 2006 6:52 AM by David Marshall
Share this post: del.ici.ousDel.ici.ous Digg ThisDigg Newsvine ThisNewsvine Reddit ThisReddit Slashdot It!Slashdot TechnoratiTechnorati
Comments
There are no comments for this post.
To post a comment, you must be a registered user. Registration is free and easy! Sign up now!
Calendar
<July 2006>
SuMoTuWeThFrSa
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345