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

Before you begin

Launch the vSphere Client and log in to a vCenter Server system.

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

  1. In the vSphere Client, right-click the cluster in the inventory and select Edit Settings.
  2. In the left pane of the Cluster Settings dialog box under vSphere DRS, select Rules.
  3. Click Add.
  4. In the Rule dialog box, type a name for the rule.
  5. From the Type menu, select either Keep Virtual Machines Together or Separate Virtual Machines.
  6. Click Add.
  7. Select at least two virtual machines to which the rule will apply and click OK.
  8. Click OK.