Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
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.
To install the Failover Clustering feature, type:
*Import-Module FailoverClusters
Type:
Get-Cluster "<Cluster Name>" | Move-ClusterVirtualMachineRole -Name "<VM group name>" -Node "<Destination node name>"
*Check if cluster name has been successfully moved.
*
Where:
- <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.