Thursday, December 18, 2014

vMotion fails at 68% with the error: An error occurred restoring the virtual machine state during migration (2012207)

Symptoms

  • Cannot vMotion a virtual machine.
  • vMotion fails at 68%.
  • You see these error:
    • A General System Error
    • Failed to receive migration.An error occurred restoring the virtual machine state during migration.
  • If you navigate to the Virtual Machine folder, you see three vswp files instead of two
  • When using Windows 8, you observe errors in the vmware.log similar to:

    11-01T15:39:00.158Z| vmx| DUMPER: Item 'CtrCountX' [-1, -1] not found.
    11-01T15:39:00.158Z| vmx| VMGenCtrCheckpoint: Failing restore from old Win8 checkpoint

    Cause

    This issue occurs if the state of the virtual machine cannot be determined from the .vmx file.
    Starting with ESXi 5.0, by default, each virtual machine has two vswp files when the virtual machine is powered on. This issue occurs when the machine has three vswp files, instead of two.

    Resolution

    To work around this issue in a View environment:
    1. Log in to the VMware View Administrator page.
    2. Click Inventory > Desktop.
    3. Click the virtual machine for which vMotion failed.
    4. Click the More commands drop down and select Enter Maintenance Mode.
    5. In vCenter Server, right-click the virtual machine and click Power > Power off.
    6. Right-click the datastore and browse to the virtual machine storage location.
    7. Verify that the vswp files are no longer present.
    8. Right-click the virtual machine and click Power > Power On

      Note: Do not use Restart or Reset.

    9. Right-click the datastore and browse to the virtual machine storage location.
    10. Verify that the virtual machine has only two vswp files.
    11. Perform the vMotion again.
    To work around this issue in a non-View environment:
    1. Connect to vCenter Server using the vSphere Client.
    2. Right-click the virtual machine and click Power > Power off.
    3. Right-click the datastore and browse to the virtual machine storage location.
    4. Verify that the vswp files are no longer present.
    5. Right-click the virtual machine and click Power > Power On

      Note: Do not use Restart or Reset.

    6. Right-click the datastore and browse to the virtual machine storage location.
    7. Verify that the virtual machine has only two vswp files.
    8. Perform the vMotion again.
    If the issue persists and you still see three vswp files:
    1. Connect to vCenter Server using the vSphere Client.
    2. Right-click the virtual machine and click Power > Power off.
    3. Right-click the datastore and browse to the virtual machine storage location.
    4. Right-click the vswp file and click Move To.
    5. Expand and select a temporary destination location where you want to save the the files and then click Move. You can also rename the vswp file.
    6. Right-click the virtual machine and click Power > Power On.

      Note: Do not use Restart or Reset.

    7. Right-click the datastore and browse to the virtual machine storage location.
    8. Verify that the virtual machine has only two vswp files.
    9. Perform the vMotion again.

No comments:

Post a Comment