6.0

Table Of Contents
What to do next
Using this host DRS group, you can create a VM-Host affinity rule that establishes an affinity (or anti-
affinity) relationship with an appropriate virtual machine DRS group.
“Create a Virtual Machine DRS Group,” on page 366
“Create a VM-Host Affinity Rule,” on page 367
Create a Virtual Machine DRS Group
Affinity rules establish an affinity (or anti-affinity) relationship between DRS groups. You must create DRS
groups before you can create a rule that links them.
Prerequisites
Launch the vSphere Client and log in to a vCenter Server system.
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 DRS Groups Manager.
3 In the Virtual Machines DRS Groups section, click Add.
4 In the DRS Group dialog box, type a name for the group.
5 In the left pane, select a host and click >> to add it to the group. Continue this process until all desired
hosts have been added.
You can also remove hosts from the group by selecting them in the right pane and clicking <<.
6 Click OK.
What to do next
“Create a Host DRS Group,” on page 365
“Create a VM-Host Affinity Rule,” on page 367
“Create a VM-VM Affinity Rule,” on page 366
VM-VM Affinity Rules
A VM-VM affinity rule specifies whether selected individual virtual machines should run on the same host
or be kept on separate hosts. This type of rule is used to create affinity or anti-affinity between individual
virtual machines that you select.
When an affinity rule is created, DRS tries to keep the specified virtual machines together on the same host.
You might want to do this, for example, for performance reasons.
With an anti-affinity rule, DRS tries to keep the specified virtual machines apart. You could use such a rule if
you want to guarantee that certain virtual machines are always on different physical hosts. In that case, if a
problem occurs with one host, not all virtual machines would be placed at risk.
Create a VM-VM Affinity Rule
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.
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.
vSphere Administration with the vSphere Client
366 VMware, Inc.