Create Instance on Specific Host Using CLI

Problem

  • By default, selecting a host to launch instances is done by nova-scheduler.

  • There are use-cases where nova-scheduler can be forced to create instances on a specific host.

Environment

  • Platform9 Managed OpenStack - All Versions

Procedure

  1. Identify a host and its availability zone.

$ openstack host list
  1. Pass the parameter --availability-zone to the o penstack server create command. For example:

$ openstack server create \
--image [IMAGE_UUID]  \
--flavor [FLAVOR_UUID] \
--key-name [key ID] \
--availability-zone [ZONE_NAME]:[HOST_UUID] \
--nic net-id=[NETWORK_UUID] \
[INSTANCE_NAME]

Additional Information

OpenStack Availability Zonesarrow-up-right

Last updated