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 a cluster of virtual machines on one physical host, create one virtual machine DRS group that contains all MSCS virtual machines. For example, VMGroup_1 contains MSCS_VM_1 and MSCS_VM_2.

For a cluster of virtual machines across physical hosts, create one virtual machines DRS group for each MSCS virtual machine. For example, VMGroup_1 contains MSCS_VM_1 and VMGroup_2 contains MSCS_VM_2.

1

In the vSphere Client, right-click the cluster in the inventory and select Edit Settings.

2

In the left pane of the cluster Settings dialog box under vSphere DRS, select DRS Groups Manager.

3

In the Virtual Machines DRS Groups section, click Add.

4

In the DRS Group dialog box, type a name for the group (for example, VMGroup_1).

5

In the left pane, select the virtual machine and click >> to add it to the group.

For a cluster of virtual machines on one physical host, add all MSCS virtual machines to one group.

For a cluster of virtual machines across physical hosts, add one MSCS virtual machine per group.

6

Click OK.