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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.