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.
About this task
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 Manage tab.
- Click Settings and click DRS Rules.
- Click Add.
- In the Create DRS 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.