In this recipe, the objective is to restrict the VMs to run on specific groups of hosts.
Creating VMs to host affinity rules
Getting ready
A prerequisite to setting an affinity is creating the DRS groups for the respective VMs and hosts.
How to do it...
- Select a cluster, and navigate to Configure | VM/Host Rules. Provide a name for the rule and ensure it's enabled.
- Choose the affinity Type—Virtual Machines to Hosts. Choose a VM group from the available groups.
- Choose the rule from the drop-down menu—Should run on hosts in group. Choose the Host...