For WSFC virtual machines in a cluster, you must create VM-VM affinity or anti-affinity rules. VM-VM affinity rules specify which virtual machines should be kept together on the same host (for example, a cluster of WSFC virtual machines on one physical host). VM-VM anti-affinity rules specify which virtual machines should be kept apart on different physical hosts (for example, a cluster of WSFC virtual machines across physical hosts).
For a cluster of virtual machines on one physical host, use affinity rules.
Note: Do not use a cluster on one physical host for production deployment.
For a cluster of virtual machines across physical hosts, use anti-affinity rules.
Note: vMotion is supported for a virtual machines, nodes of a WSFC, across physical ESXi hosts.
Procedure
- Browse to the cluster in the vSphere Client.
- Click Configure.
- Under Configuration, click VM/Host Rules.
- Click Add.
- In the Create VM/Host Rule dialog box, type a name for the rule.
- From the Type drop-down menu, select a rule.
- For a cluster of virtual machines on one physical ESXi host, select Keep Virtual Machines Together.
- For a cluster of virtual machines across physical ESXi hosts, select Separate Virtual Machines.
- Click Add.
- Select the two virtual machines to which the rule applies and click OK.
- Click OK.