The following procedure will help you to create DRS VMs to host affinity rules:
- Connect to vCenter Server using the HTML5 client.
- Select the DRS cluster, navigate to Configure | Configuration | VM/Host Rules, and click Add...:
- On the Create VM/Host Rule window, supply a name for the rule, set the Type to Virtual Machines to Hosts, and specify the desired rule. Once you're done, click OK:
- Use step 3 to create additional rules if necessary. Once you're done, the VM/Host Rules page will list the DRS rules that have been created: ...