Powershell script to Live Migrate Hyper-V Virtual Machines back to it's Preferred Owner in a Hyper-V Cluster.

by Stan Czerno July 21, 2011 13:15 CST
I schedule this script to run at Startup of the Hyper-V Host to check to see if VMs have been Live Migrated to another Host.

If the VM has this Host set as being the Preferred Owner, Live Migrate them back to this Node. [More]

Tags: , ,

Catergories: Windows | HyperV | Powershell

PowerShell script to Live Migrate Hyper-V Virtual Machines to another Node in a Hyper-V Cluster on a planned Host Shutdown

by Stan Czerno July 21, 2011 13:09 CST
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). [More]

Tags: , ,

Catergories: Windows | HyperV | Powershell