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
- 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 either Keep Virtual Machines Together or Separate Virtual Machines.
- Click Add.
- Select at least two virtual machines to which the rule will apply and click OK.
- Click OK.