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


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


  1. Browse to the cluster in the vSphere Web Client navigator.
  2. Click the Manage tab.
  3. Click Settings and click DRS Rules.
  4. Click Add.
  5. In the Create DRS 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.