6.0.1
Table Of Contents
- vSphere Resource Management
- Contents
- About vSphere Resource Management
- Updated Information
- Getting Started with Resource Management
- Configuring Resource Allocation Settings
- CPU Virtualization Basics
- Administering CPU Resources
- Memory Virtualization Basics
- Administering Memory Resources
- View Graphics Information
- Managing Storage I/O Resources
- Managing Resource Pools
- Creating a DRS Cluster
- Using DRS Clusters to Manage Resources
- Creating a Datastore Cluster
- Initial Placement and Ongoing Balancing
- Storage Migration Recommendations
- Create a Datastore Cluster
- Enable and Disable Storage DRS
- Set the Automation Level for Datastore Clusters
- Setting the Aggressiveness Level for Storage DRS
- Datastore Cluster Requirements
- Adding and Removing Datastores from a Datastore Cluster
- Using Datastore Clusters to Manage Storage Resources
- Using NUMA Systems with ESXi
- Advanced Attributes
- Fault Definitions
- Virtual Machine is Pinned
- Virtual Machine not Compatible with any Host
- VM/VM DRS Rule Violated when Moving to another Host
- Host Incompatible with Virtual Machine
- Host has Virtual Machine that Violates VM/VM DRS Rules
- Host has Insufficient Capacity for Virtual Machine
- Host in Incorrect State
- Host has Insufficient Number of Physical CPUs for Virtual Machine
- Host has Insufficient Capacity for Each Virtual Machine CPU
- The Virtual Machine is in vMotion
- No Active Host in Cluster
- Insufficient Resources
- Insufficient Resources to Satisfy Configured Failover Level for HA
- No Compatible Hard Affinity Host
- No Compatible Soft Affinity Host
- Soft Rule Violation Correction Disallowed
- Soft Rule Violation Correction Impact
- DRS Troubleshooting Information
- Cluster Problems
- Load Imbalance on Cluster
- Cluster is Yellow
- Cluster is Red Because of Inconsistent Resource Pool
- Cluster is Red Because Failover Capacity is Violated
- No Hosts are Powered Off When Total Cluster Load is Low
- Hosts are Powered Off When Total Cluster Load is High
- DRS Seldom or Never Performs vMotion Migrations
- Host Problems
- DRS Recommends Host be Powered On to Increase Capacity When Total Cluster Load Is Low
- Total Cluster Load Is High
- Total Cluster Load Is Low
- DRS Does Not Evacuate a Host Requested to Enter Maintenance or Standby Mode
- DRS Does Not Move Any Virtual Machines onto a Host
- DRS Does Not Move Any Virtual Machines from a Host
- Virtual Machine Problems
- Cluster Problems
- Index
Create a VM-VM Affinity Rule
You can create VM-VM affinity rules 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.
Procedure
1 Browse to the cluster in the vSphere Web Client navigator.
2 Click the Manage tab.
3 Click Settings and click DRS Rules.
4 Click Add.
5 In the Create DRS Rule dialog box, type a name for the rule.
6 From the Type drop-down menu, select either Keep Virtual Machines Together or Separate Virtual
Machines.
7 Click Add.
8 Select at least two virtual machines to which the rule will apply and click OK.
9 Click OK.
VM-VM Affinity Rule Conflicts
You can create and use multiple VM-VM affinity rules, however, this might lead to situations where the
rules conflict with one another.
If two VM-VM affinity rules are in conflict, you cannot enable both. For example, if one rule keeps two
virtual machines together and another rule keeps the same two virtual machines apart, you cannot enable
both rules. Select one of the rules to apply and disable or remove the conflicting rule.
When two VM-VM affinity rules conflict, the older one takes precedence and the newer rule is disabled.
DRS only tries to satisfy enabled rules and disabled rules are ignored. DRS gives higher precedence to
preventing violations of anti-affinity rules than violations of affinity rules.
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.
vSphere Resource Management
88 VMware, Inc.