You can modify the metadata of a source image to automatically place instances into VM groups. VM groups are configured in the vSphere Web Client and can be further used to apply DRS rules.
Verify that a VM group is configured in the vSphere Web Client for the Compute cluster.
Verify that the DRS VM group name is defined in the vSphere Web Client. See Use DRS to Control OpenStack Instance Placement.
- Log in to the VMware Integrated OpenStack dashboard as a cloud administrator.
- Select the admin project from the drop-down menu in the title bar.
- Select .
- Click the image to modify.
- In the Actions column of the image listing, click the down arrow and select Update Metadata.
- Add the DRS VM group metadata property to the image metadata.
The Update Metadata dialog box displays two columns. The column on the right displays metadata tags already applied to the image, and the one on the left displays available metadata tags, which are grouped by categories, such as Guest Customization, Instance Config Data, and so on.
- In the Available Metadata column, select the property.
- Click the plus sign (+) to add the property to the image metadata.
The vmware_vm_group metadata property is highlighted in the Existing Metadata column.
- For the metadata value, enter DRS VM group name as defined in the vSphere Web Client.
- To remove a metadata tag from the image definition, click the minus sign (-).
- Click Save.
All instances generated from this source image are automatically assigned to the specified VM group in the VMware Integrated OpenStack deployment in vCenter.