by Stan Czerno
21. July 2011 18:09
On a planned or gracefull Hyper-V Host Shutdown, Live Migrate VMs to another Node in the Cluster. This Script is designed to work with a Two-Node Cluster.
You need to configure Group Policy or the Local Policy for the host to have a Shutdown Script. You'll find these settings under Computer Settings > Windows Settings > Scripts (Startup/Shutdown).
Using the PowerShell Scripts tab, set PowerShell scripts to run First so that the live migrations are performed before shutdown.
Let me know what you think about the script and if you have a better way of doing this.
http://www.czerno.com/default.asp?inc=/html/windows/hyperv/cluster/HyperV_Live_Migrate_VMs.asp
2f9a0a9e-a8bb-44c6-83f0-98ef206d1865|0|.0
Tags:
Hyper-V