You can create VM-Host affinity rules 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.
Prerequisites
Create the virtual machine and host DRS groups to which the VM-Host affinity rule applies.
Procedure
- Browse to the cluster in the vSphere Web Client navigator.
- Click the Configure tab.
- Under Configuration, click VM/Host Rules.
- Click Add.
- In the Create VM/Host Rule dialog box, type a name for the rule.
- From the Type drop down menu, select Virtual Machines to Hosts.
- Select the virtual machine DRS group and the host DRS group to which the rule applies.
- 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.
- Click OK.