AD

Please take a moment and help support this site by visiting our AD. Thank you for your support.

Thursday, June 02, 2011

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(WS.10).aspx#BKMK_initiateLM)
 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 use Remote Server Administration Tools for Windows® 7 to run the PowerShell session.
  1. To install the Failover Clustering feature, type:
Add-Module FailoverClusters
  1. Type:
Get-Cluster "<Cluster Name>" | Move-ClusterVirtualMachineRole -Name "<VM group name>" -Node "<Destination node name>"
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.

No comments:

Post a Comment