Hyper-V: How to Initiate a Live Migration Using Windows PowerShell

Hyper-V: How to Initiate a Live Migration Using Windows PowerShell

You can initiate Live Migration using Windows PowerShell scripts for failover clustering. This is one of the steps documented in Hyper-V: Using Live Migration with Cluster Shared Volumes in Windows Server 2008 R2 (http://technet.microsoft.com/en-us/library/dd446679%28WS.10%29.aspx#BKMK_initiateLM%29

 To initiate a live migration using Windows PowerShell

  1. Open Windows PowerShell. Click Start, point to All Programs, click Windows PowerShell 2.0, and then click Windows PowerShell 2.0.

    The Failover Clustering feature must be installed on the computer on which you are starting the Windows PowerShell session. Or, you can also use Remote Server Administration Tools for Windows® 7 to run the PowerShell session.

  2. To install the Failover Clustering feature, type: 

    Import-Module FailoverClusters

  3. Type:

    Get-Cluster "<Cluster Name>" | Move-ClusterVirtualMachineRole -Name "<VM group name>" -Node "<Destination node name>"
  4. Check if cluster name has been successfully moved.


  • <Cluster Name> is the name of the cluster that the virtual machine is included in.
  • <VM group name> is the virtual machine resource group.
  • <Destination node name> is the name of the destination node to which you would like to move the virtual machine using live migration.

See Also

Other Languages