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.

Launch the vSphere Client and log in to a vCenter Server system.

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

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 Rules.

3

Click Add.

4

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

Must run on hosts in group. Virtual machines in VM Group 1 must run on hosts in Host Group A.

Should run on hosts in group. Virtual machines in VM Group 1 should, but are not required, to run on hosts in Host Group A.

Must not run on hosts in group. Virtual machines in VM Group 1 must never run on host in Host Group A.

Should not run on hosts in group. Virtual machines in VM Group 1 should not, but might, run on hosts in Host Group A.

8

Click OK.