How can i determine the destination host to Live Migrate VMs in a Multinode Hyper-V Cluster with Powershell RRS feed

  • Question

  • Background: I have to automate the installation of monthly security updates on our Hyper-V Clusternodes. I want to use a Powershell script to move all VMs from one Hyper-V Host to the others.

    To move all the VMs from one Clusternode to any other node, i found the Move-ClusterVirtualMachineRole cmdlet. But the name of a destination host is a required parameter. How can i determine which Clusternode has enough resources to run further VMs?

    Here is a nice script for migrating all VMs, but it does not help me to find a destination host:


    • Edited by Stefan_SMS Tuesday, August 3, 2010 2:04 PM Title update
    • Moved by IamMred Friday, October 29, 2010 8:33 PM wrong forum (From:The Official Scripting Guys Forum!)
    Tuesday, August 3, 2010 2:03 PM