Starting with VMware Cloud Director 10.2.2 a VM placement policy can contain a reference to one or more provider VDC policies. You can use a VM placement policy to define the placement of a VM on a specific host, group of hosts, or one or more clusters.
- Verify that you have at least one provider VDC in your environment.
- Verify that you have at least one VM group in your environment.
A VM group is a collection of VMs that you can link to a host group with positive affinities. Through a positive affinity rule, you cause the placement of a group of VMs on a specific host. You can create a VM group through the vCenter Server UI or the VMware Cloud Director API.
- From the top navigation bar, select Resources and click Cloud Resources.
- From the left panel, select VM Placement Policies, and click New.
- (Optional) On the What is VM Placement policy page of the wizard, select the check box to stop showing the VM placement policy information.
- Click Next.
- Enter a name for the VM placement policy and, optionally, a description.
- Select the VM groups and logical VM groups to which you want the VM to be linked and click Next.
You can select one VM group per cluster.
When you select more than one logical group, if a tenant applies this policy to a VM, the VM becomes a member of all the VM groups included in the selected logical VM groups. The VM is conditioned to a combination of all the affinities that apply to the VMs in these groups. Starting with VMware Cloud Director 10.2.2, you can select simultaneously VM groups and logical groups.
You can create an inline logical VM group by selecting one VM group per cluster. This logical VM group does not have a name and can be used only for the selected VM Placement policy.
- Review the VM placement policy settings and click Finish.