Using a VM to host affinity and anti-affinity rules

Virtual Machine to Hosts rules can be created to keep virtual machines on or off specific hosts or groups of hosts. These types of DRS rules are useful in order to keep management virtual machines, such as vCenter Server, on specific hosts to make these virtual machines easier to locate in the event of a failure. This also allows virtual machines to be separated across different hosts in a rack or blade chassis in order to ensure that the loss of a rack or chassis does not impact all virtual machines, for example, to split members of a Microsoft SQL always on availability group across chassis.

How to do it…

The following process is used to create Virtual Machine to Hosts affinity or anti-affinity ...

Get VMware vSphere 6.x Datacenter Design Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.