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 VMs to the host affinity rules


We can create rules that will determine the VM Host DRS placement rules. This is done by creating VMs to the host's affinity rules. The rules determine if a group of VMs can run on a group of chosen ESXi hosts. For instance, VMs in the VMs Group - B can not only be configured to have a placement affinity (must run or should run) with Host Group B, but also have an anti-affinity towards Host Group A. This scenario has been depicted in the following diagram:

Getting ready

The creation of VMs to hosts' affinity rules requires DRS hosts/VMs groups to be created. The DRS groups should list both the Host and VM groups that have been created.

For instructions on how to create DRS Hosts and VM groups, read the recipes Creating DRS host groups and Creating DRS VM groups in this chapter.

How to do it…

The following procedure will help you create a VMs-to-hosts affinity rule:

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

  2. Select the cluster...