You can create VM-Host affinity rules to specify whether or not the members of a selected virtual machine group can run on the members of a specific host group.
Prerequisites
Create the virtual machine and host groups to which the VM-Host affinity rule applies.
Procedure
- Browse to the cluster in the vSphere Client.
- 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 group and the host 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.