Welcome to TechNet Blogs Sign in | Join | Help

Robert Larson

Thoughts and information on Virtualization and other topics

News

  • Hyper-V Resource Kit on the Shelves now! br>

    Welcome to my blog.

    I am an Architect with MS Consulting Services specializing in Infrastructure Optimization and Virtualization. I am also the co-author of the new Windows Server 2008 Hyper-V Resource Kit and the Virtual Server 2005 R2 Resource Kit.

    In this blog I will talk about various technology subjects that are my passion and also drive me crazy sometimes.

    The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Inappropriate comments will be deleted at the authors discretion. All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
Virtual machines not being placed in save state at server shutdown

So you have a Virtual Server host that is not properly saving the state of the virtual machines when it reboots during planned or unplanned outages. You checked the settings of the VMs and they are properly configured to Save State when the Virtual Server host shuts down under General Properties.

So why is this happening?

Windows defines a registry value called WaitToKillServiceTimeout that defines the amount of time that the OS will wait for a service to shutdown before killing the service (force it to shutdown).  If you have a virtual machine that takes a long time to shutdown, then you need to increase this value to provide enough time for the VSSRVC.EXE service to save the state of the virtual machines.

To accomplish this, follow these steps

1) Determine the new value (in milliseconds) that is required for the successful save state.

2) Start Regedit.

3) Locate, and then click the following registry subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control

4) Right-click WaitToKillServiceTimeout, click Modify, type 90000 (or the value you determined as the minimum time in milliseconds), and then click OK.

5) Restart the host computer

Now when you shutdown the server, the virtual machines save state should be successful.

Refer to http://support.microsoft.com/kb/888745 for more information.

Posted: Sunday, July 22, 2007 12:01 AM by RobLarso
Anonymous comments are disabled
Page view tracker