Create VM-Host affinity rules to specify whether the members of a selected virtual machine DRS group can run on the members of a specific host DRS group.


Create virtual machine DRS groups that contain one or more WSFC virtual machines as described in Create a Virtual Machine DRS Group (WSFC).

Create host DRS groups that contain one or more ESXi hosts, as described in Create a Host DRS Group (WSFC).


  1. Browse to the cluster in the vSphere Client.
  2. Click Configure.
  3. Under Configuration, select VM/Host Rules and click Add.
  4. In the Create VM/Host Rule dialog box, type a name for the rule.
  5. From the Type menu, select Virtual Machines to Hosts.
  6. Select the virtual machine DRS group and the host DRS group to which the rule applies.
    For example, select VMGroup_1 and HostGroup_1.
  7. Select Must run on hosts in group.
  8. Click OK.