Your basic ITPro blog... What's going on at work, what I'm interested in.

Friday, January 28, 2011

Clustered Hyper-V Environment

I got to work on this project this week. We had three discreet Hyper-V hosts. I moved all of our VMs onto one of the hosts, turning off non-essential VMs and minimizing resource usage as I could to make them all fit. Once the other tow VM host machines were empty, I re-installed the OS (Windows 2008 R2 DCE), created a failover cluster, configured CSVs, etc. and got these machines ready to host HA VMs.

I have been testing failover, live migration, etc. Things are working great! Once I have all of the VMs on the cluster, I will add the third host into the cluster, giving me a great VM hosting environment.

This project has been on my front-burner for quite a while. It is great being in the last stages of it now!

One last note, if you aren’t using SCVMM to manage your Hyper-V virtualization environment… well… you’re doing it wrong!  Smile

Here is my ‘plan’ that I followed for this project.



  1. How To
  2. Pass-through Disk in a cluster
  3. Hyper-V Cluster and VMM08
  4. Error With Live Migration


  1. 1Gb – Cluster Quorum Disk
  2. 3 x big - CSV volumes


  1. Move all VMs onto temporary VM host – VMH00
  2. Change Host Type of VMH04 and VMH05 from non-clustered to clustered
  3. Create 1GB virtual disk to use as quorum disk for cluster
  4. Create Host Group in MDSM (added VH04 and VMH05 to host group)
  5. Disconnected VM storage virtual disk from VMH05 and renamed to ‘CSV01’
  6. Upgrade OS on VMH05 to Win2008R2DCE
    1. Remove Hyper-V role
    2. Add “Desktop Experience” feature to get to disk cleanup tool
      1. Required to free up space to do the OS upgrade
    3. Can’t upgrade OS. Need to do a new install. Can it be done from the R2 disk? YES!
      1. Install OS into new partition – blow out old partition
      2. IP address
      3. Name and domain (VMH01, was VMH05)
      4. Add features – SNMP, Failover Clustering, Desktop Experience, MPIO
      5. Add roles - File Services, Hyper-V
    4. Intel VT 1000 Quad Port NIC Drivers
    5. Install Dell MD software
    6. Configure iSCSI Initiator
  7. Configure Hyper-V networking identical on both VMH machines
  8. Make virtual disks available to both hosts for VM storage
    1. On VMH01
      1. Use iSCSI Initiator to connect to Virt Disks
      2. User Server Manager|Disk Management to configure Virtual disks for access (initialize, partition, format, etc.)
      3. Take disks offline (not sure if needed)
    2. On VMH02
      1. Use iSCSI Initiator to connect to both Virt Disks
      2. ONLY USE Disk Management to rescan for disks
  9. Use Server Manager to install Failover Cluster Feature
    1. On both hosts!
  10. Open Failover Cluster Manager (in Administrative Tools on VMH01)
    1. Validate configuration, using both cluster node names, run all tests
    2. Remediate issues as needed
    3. Create the Cluster
      1. Select “Create a Cluster” from action menu
      2. Add both cluster nodes
      3. Cluster name
      4. Cluster IP address – fixed IP
      5. Select cluster in navigation pane
      6. “Enable Cluster Shared Volumes” in action pane
      7. Read notice and click OK
    4. Select ‘Cluster Shared Volumes’ in the navigation pane
      1. “Add Storage” from action pane
      2. Select the big disks used for VM storage
  11. Open Hyper-V Manager on both Cluster nodes
    1. Select ‘Hyper-V Settings’ in the action pane
    2. Enter new directory locations –
      1. Examples:
        1. C:\ClusterStorage\Volume1\Hyper-V\Virtual Hard Disk (VHDs)
        2. C:\ClusterStorage\Volume1\Hyper-V (VMs)
  12. Add HyperVCluster to VMM08
  13. Configure storage locations in VMM to point to all CSV resources
  14. If not using VMM
    1. Migrate a non-essential VM from VMH00 onto a cluster host, using cluster storage for the VM
    2. Shut down VM
    3. Open Failover Cluster Manager on the VM host that holds the VM
      1. Under Cluster Name, select “Services and Applications” node
      2. “Configure a service or application” in the action pane
        1. Select Virtual Machine – NEXT
        2. Select VM that was imported – NEXT – NEXT – FINISH
      3. Right-click the VM and select START
      4. To live-migrate –
        1. Select the VM
        2. “Live Migrate…” from action pane
        3. Select available cluster node (VMH05)
  15. Test migration, etc. in VMM.
    1. Was getting an error with Live Migration. Had to disable cluster communication on the iSCSI networks. Cluster communication only allowed on the LAN network.
    2. Set VM processor for ‘allow migration to VM host with a different processor’
    3. Make sure “Enable virtual network optimizations’ is NOT checked
  16. Move other VMs from VMH00 into the cluster.
  17. Once VMH00 is empty of VMs, add VMH00 to cluster.

Additional Info

My photo
email: support (AT) mangrumtech (DOT) com
mobile: 480-270-4332