Before you can create a VM-Host affinity rule, you must create the host DRS group and the virtual machine DRS group that the rule applies to.

For both, a cluster of virtual machines on one physical host(CIB) and a cluster of virtual machines across physical hosts(CAB), create one virtual machine DRS group that contains all WSFC virtual machines. For example, VMGroup_1 contains WSFC_VM_1, WSFC_VM_2 … WSFC_VM_5.

Procedure

  1. Browse to the cluster in the vSphere Client.
  2. Click Configure.
  3. Under Configuration, select VM/Host Groups and click Add.
  4. In the Create VM/Host Group dialog box, type a name for the group.
  5. Select VM Group from the Type drop down box and click Add.
  6. Click the check box next to a virtual machine to add it. Continue this process until all desired virtual machines have been added.
    • For a cluster of virtual machines on one physical host, add all WSFC virtual machines to one group.
    • For a cluster of virtual machines across physical hosts, add all WSFC virtual machines to one group.
  7. Click OK.