The following procedure will help you create an inter-VM affinity / anti-affinity rule:
- From the vCenter's inventory home, navigate to the Hosts and Clusters view. Select the cluster, navigate to Configure | VM/Host Rules, and click on Add to bring up the Create VM/Host Rule window.
- Provide a name for the rule and choose Keep Virtual Machines Together as the rule type, as shown in the following screenshot:
- Add the VMs that need to be running together. Click OK to complete.