How to do it…

The following process can be used to create Virtual Machine to Hosts affinity or anti-affinity rules:

  1. From the cluster's Settings page, access the VM/Host Groups section to manage virtual machine and host groups, as shown in the following screenshot:

Managing VM / Host groups
  1. Select Add to create a new host group and select the hosts to add to the group, as shown in the following screenshot:

Adding a new host group
  1. Select Add to create a new VM group, and select the virtual machines to add to the group, as shown in the following screenshot: ...

Get The Complete VMware vSphere Guide 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.