You can create VM-Host affinity rules in the Cluster Settings dialog box to specify whether or not the members of a selected virtual machine DRS group can run on the members of a specific host DRS group.

Create the (virtual machine and host) DRS groups to which the VM-Host affinity rule applies.

1

Right-click the cluster in the inventory and select Edit Settings.

2

In the left pane of the Cluster Settings dialog box under VMware DRS, select Rules.

3

Click Add.

4

In the Virtual Machine 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.

7

Select a specification for the rule; that is whether it is a requirement ("must") or preference ("should") and whether it is affinity ("run on") or anti-affinity ("not run on").

8

Click OK.

9

Click OK to save the rule.