Book Image

VMware vSphere 5.5 Cookbook

By : Abhilash G B
Book Image

VMware vSphere 5.5 Cookbook

By: Abhilash G B

Overview of this book

Table of Contents (22 chapters)
VMware vSphere 5.5 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating VM affinity/anti-affinity rules


Unlike the VM-Host affinity rules, the inter-virtual machine (VM-VM) affinity rules can work between individual VMs.

Getting ready

These rules are created for VMs that are in a DRS-enabled ESXi cluster, so make sure you have access to a vCenter managing the cluster.

How to do it…

The following procedure will help you create an inter-VM affinity/anti-affinity rule:

  1. From the vCenter's inventory home, navigate to the Hosts and Clusters view.

  2. Select the cluster, navigate to Manage | Settings | DRS Rules, and click on Add to bring up the Create DRS Rule window.

  3. In the Create DRS Rule window, supply a name for the rule and choose the rule type. In this example, we have selected the rule Separate Virtual Machines. If you intend to keep the VMs together, then select the rule Keep Virtual Machines Together.

  4. With the rule selected, click on the Add button to bring up the Add Rule Member window.

  5. In the Add Rule Member window, select the VMs to be added and click on OK...