Setting the dependency of the virtual machine on the VMDg resource

Perform this task only if your host machine runs Windows 2012R2 Hyper-V operating system.

As the virtual machine configuration and Virtual Hard Disk (VHD) file lie on the VMDg resource, you need to set a dependency of the virtual machine resource on the VMDg resource to make it highly available and live migrate it.

Perform the following steps to set a dependency of the VMDg resource on the virtual machine:

To set the dependency of the VMDg resource on the virtual machine

  1. Right click the VMDg resource from the center pane of the Failover Cluster Manager snap-in. Select Actions > More Actions > Move this resource to another service group or application from the menu.

    VMDg resource is now moved to the selected virtual machine.

  2. From the center pane of console, select and expand the virtual machine resource to display the Virtual Machine Configuration Resource.

    Right-click and select Properties > Dependency tab to make this Virtual Machine Configuration Resource dependent on the Volume Manager Disk Group resource (VMDg).

    Select the VMDg resource that is displayed and click Ok to set the dependency.

    Now, the virtual machine is ready to be live migrated to other cluster node.

    Refer to Microsoft documentation for details regarding live migrating a virtual machine.