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

  1. Browse to the cluster in the vSphere Client.
  2. Click the Configure tab.
  3. Under Configuration, click VM/Host Rules.
  4. Click Add.
  5. In the Create VM/Host Rule dialog box, type a name for the rule.
  6. From the Type drop down menu, select Virtual Machines to Hosts.
  7. Select the virtual machine group and the host group to which the rule applies.
  8. 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.
  9. Click OK.