A company has a Hyper-V failover cluster that consists of sixteen host servers that run Windows Server2012
R2. The company uses System Center 2012 R2 Virtual Machine Manager (VMM) to manage the Hyper-V
environment.
Eight of the host servers are used only for engineering-related services. The other eight host serversare used
for general corporate use.
You need to ensure that the corporate virtual machines (VMs) are never moved to the host servers that are
used for engineering.
What should you do?
A.
Create a new VMM availability set for the corporate VMs.
B.
Create a custom property for the corporate VMs and host servers. Then, use a custom placement rule for
the host group. Specify that the rule must match.
C.
In the corporate VMs, set the value of the Preferred Owners setting to the names of the corporate host
servers.
D.
Create a new VMM availability set for the corporate host servers.
Answer is B
http://social.technet.microsoft.com/Forums/systemcenter/en-US/97386d52-25a0-4e4a-b6f5-702ea16a030d/setting-antiaffinity-and-affinity-in-hyperv-3-or-scvmm2012
http://blogs.technet.com/b/scvmm/archive/2013/03/11/custom-placement-rules-and-availability-sets-in-scvmm-2012-sp1.aspx
The answer is B.
Custom Placement Rules and Availability Sets in SCVMM 2012 SP1
https://blogs.technet.com/b/scvmm/archive/2013/03/11/custom-placement-rules-and-availability-sets-in-scvmm-2012-sp1.aspx
Using custom properties to create placement rules
If you create a new custom property such as “Cost Center”, and you apply that property to both VM and Host objects, you can configure VMM to ensure that the property is used to guide Intelligent Placement’s decisions. Let’s suppose that you only want VMs to be placed on hosts with a matching “Cost Center” value.
Add the “Cost Center” custom property.
Associate it with VMs, Hosts and VMTemplates.
Fill in the Cost Center value for all hosts in a specific host group
Fill in the Cost Center for all VMs in that host group
Fill in the Cost Center for all VM Templates that may be deployed to that host group.
In the host group properties, choose “Custom Placement Rules”. Add a new entry that “Cost Center” has a rule that it “Must Match”.