6.0

Table Of Contents
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 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.
VM-Host Affinity Rules
A VM-Host affinity rule specifies whether or not the members of a selected virtual machine DRS group can
run on the members of a specific host DRS group.
Unlike a VM-VM affinity rule, which specifies affinity (or anti-affinity) between individual virtual machines,
a VM-Host affinity rule specifies an affinity relationship between a group of virtual machines and a group of
hosts. There are 'required' rules (designated by "must") and 'preferential' rules (designated by "should".)
A VM-Host affinity rule includes the following components.
n
One virtual machine DRS group.
n
One host DRS group.
n
A designation of whether the rule is a requirement ("must") or a preference ("should") and whether it is
affinity ("run on") or anti-affinity ("not run on").
Because VM-Host affinity rules are cluster-based, the virtual machines and hosts that are included in a rule
must all reside in the same cluster. If a virtual machine is removed from the cluster, it loses its DRS group
affiliation, even if it is later returned to the cluster.
Create a VM-Host Affinity Rule
You can create VM-Host affinity rules in the Cluster Settings dialog box to specify whether or not the
members of a selected virtual machine DRS group can run on the members of a specific host DRS group.
Prerequisites
Launch the vSphere Client and log in to a vCenter Server system.
Create the virtual machine and host DRS groups to which the VM-Host affinity rule applies.
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 Virtual Machines to Hosts.
6 Select the virtual machine DRS group and the host DRS group to which the rule applies.
Chapter 25 Resource Management for Single Hosts
VMware, Inc. 367