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 MSCS virtual machines as described in Create a Virtual Machine DRS Group (MSCS).

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

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.

For example, select VMGroup_1 and HostGroup_1.

7

Select Must run on hosts in group.

8

Click OK.