In the vSphere Web Client, create a DRS rule to manage the distribution of OpenStack instances in a VM group to a specific host group.

Before you begin

  • Define at least one VM group .

  • Define at least one host group.

See Define VM and Host Groups for Placing OpenStack Instances.

About this task

If you are continuing from Define VM and Host Groups for Placing OpenStack Instances, skip ahead to 5 .

Procedure

  1. Log in to the vSphere Web Client.
  2. Go to the vCenter Hosts and Clusters view and select the Compute cluster configured for the VMware Integrated OpenStack deployment.
  3. Click the Manage tab, and go to Settings > vSphere DRS.
  4. Verify the following settings configuration:
    • DRS is enabled .

    • DRS Automation is set to Fully Automated or Partially Automated .

    • Power Management is set to Off.

  5. Click VM/Host Rules.
  6. Click Add.
  7. Enter a name for the new rule and select or deselect the Enable rule option to enable or disable the rule.
  8. From the Type drop-down menu, select Virtual Machines to Hosts.
  9. From the VM Group drop-down menu, select the VM group that identifies the OpenStack instances you want to place .
  10. Select the Must run on hosts in group specification. .
  11. Select a specification for the rule.

    Setting

    Description

    Must run on hosts in group

    OpenStack instances in the specified VM group must run on hosts in the specified host group.

    Should run on hosts in group

    OpenStack instances in the specified VM group should, but are not required, to run on hosts in the specified host group.

    Must not run on hosts in group

    OpenStack instances in the specified VM group must never run on host in the specified host group.

    Should not run on hosts in group

    OpenStack instances in the specified VM group should not, but may, run on hosts in the specified host group.

  12. From the Host Group drop-down menu, select the host group that contains the hosts on which the OpenStack instances will be placed .
  13. Click OK.

Results

The rule now determines that OpenStack instances in the specified VM group must run on hosts in the specified host group.

What to do next

In the VMware Integrated OpenStack dashboard, you can now modify the metadata for a specific image to ensure that all instances generated from that image are automatically included in the VM group, and therefore subject to the DRS rule.