Steps to Migrate Virtual Machines with Shared VDHX from One Cluster to Another


Imagine the following situation: You have two Windows Server 2012 R2 Hyper-V clusters – Cluster1 and Cluster2. Every cluster has two or more nodes. On Cluster1 you have two virtual machines VM1 and VM2. The virtual machines are in guest cluster and are using one or more Shared VHDX files. As you probably know virtual machines with shared vhdx files cannot be migrated with shared nothing live migration. Than how to move VM1 and VM2 from Cluster1 to Cluster 2? Here is a solution for you:

  1. Logon to VM2. Start Failover Cluster Console. Pause VM2 as node in the cluster and drain all roles.
  2. Shut down VM2.
  3. Logon to VM1. Shut down VM1.
  4. Remove cluster resources for VM1 and VM2 from Cluster1.
  5. Open Hyper-V console on the node of Cluster 1 where VM1 and VM2 are.
  6. From the VM settings of VM2 remove all shared VHDX disks. Apply.
  7. From the VM settings of VM1 remove the checkbox for shared VHDX on all drives where is checked. Apply
  8. From Hyper-V console move VM1 to one of the nodes of Cluster2.
  9. From Hyper-V console move VM2 to one of the nodes of Cluster2.
  10. Now VM1 and VM2 are on Cluster2.
  11. Open the Hyper-V console on the node of Cluster2 where VM2 is.
  12. Open VM settings for VM2. Attach all shared vhdx files as disks that you’ve removed in step 6 in the same order as before. Check the checkbox for shared VHDX on all of them. Apply
  13. Open VM settings for VM 1. Check the checkbox for shared VHDX for all disk that you’ve removed in step 7. Apply.
  14. Add VM1 and VM2 as cluster resources in Cluster2.
  15. Start VM1. Check if VM1 is healthy and all resources/roles are up in the Failover Cluster Console.
  16. Start VM2. Resume VM2 as node of the guest cluster. Migrate all roles and resources to make sure everything is ok.

These are all the steps you need. I hope they will help you.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.