You can create VM-VM affinity rules to specify whether selected individual virtual machines should run on the same host or be kept on separate hosts.

Note: If you use the vSphere HA Specify Failover Hosts admission control policy and designate multiple failover hosts, VM-VM affinity rules are not supported.

Procedure

  1. Browse to the cluster in the vSphere Web Client navigator.
  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 either Keep Virtual Machines Together or Separate Virtual Machines.
  7. Click Add.
  8. Select at least two virtual machines to which the rule will apply and click OK.
  9. Click OK.