Storage Migration of a running Virtual Machine fails with error 2927 in System Center Virtual Machine Manager 2008

Symptoms

When attempting to migrate the storage of a virtual machine from one volume to another volume by using the Migrate Storage option in System Center Virtual Machine Manager 2008 R2 SP1 (VMM), the storage migration jobs fails at 14% creating the check point with the error below:

Error (2927)

A Hardware Management error has occurred trying to contact server <Host server>.
(Unknown error (0x80338048))
Recommended Action
Check that WinRM is installed and running on server <Host server>. For more information use the command "winrm helpmsg hresult".

Cause

This can occur if the WinRM setting “MaxEnvelopeSizekb” is mismatched between the System Center Virtual Machine Manager server and the host. By default, the WinRM value is MaxEnvelopeSizekb=150. After installing the VMM agent the MaxEnvelopeSizekb value will change from 150 to 800.

You can verify the values by running the following command on the System Center Virtual Machine Manager server and the Host:

winrm get winrm/config

Resolution

1. Open an elevated command prompt on System Center Virtual Machine Manager server and on the Host server (i.e. run a CMD prompt using administrator credentials).

2. Run winrm get winrm/config on each.

3. Verify that the Winrm Setting “MaxEnvelopeSizekb” value on the System Center Virtual Machine Manager server and on the Host server is 800.

4. If the value is different, set each to a value to 800 with the command below:

 winrm set winrm/config @{MaxEnvelopeSizekb="800"}

5. Refresh the Host from the System Center Virtual Machine Manager console

6. Perform the storage migration of the Virtual Machine. At this point it should succeed as expected.

More Information

Trace Details:

35549,17:21:39.916 02-02-2012,0x0D20,0x0FDC,19,Task.cs,246,0x00000000,"Task failed error HostAgentWSManError (2927); HR: 0x80338048 with exception Microsoft.Carmine.WSManWrappers.WSManProviderException: A Hardware Management error has occurred trying to contact server Host1.domain.com.

36236 Check that WinRM is installed and running on server Host1.domain.com. For more information use the command ""winrm helpmsg hresult"". ---> System.Runtime.InteropServices.COMException (0x80338048): The response that the WS-Management service computed exceeds the maximum envelope size in the request.

36237 at Microsoft.Carmine.WSManWrappers.MyIWSManSession.Invoke(String actionUri; Object resourceUri; String parameters; Int32 flags)

36238 at Microsoft.Carmine.WSManWrappers.WsmanAPIWrapper.Invoke(String actionUri; String url; Hashtable parameters; Type returnType; Boolean isCarmineMethod) 36239 --- End of inner exception stack trace

-----

For more information see Installation and Configuration for Windows Remote Management : http://msdn.microsoft.com/en-us/library/windows/desktop/aa384372(v=vs.85).aspx
Properties

Article ID: 2682635 - Last Review: Mar 5, 2012 - Revision: 1

Microsoft System Center Virtual Machine Manager 2008 R2 Service Pack 1

Feedback