Atom feed of this document
  
 

 Select hosts where instances are launched

With the appropriate permissions, you can select which host instances are launched on and which roles can boot instances on this host.

  1. To select the host where instances are launched, use the --availability_zone zone:host parameter on the nova boot command,

    For example:

    $ nova boot --image <uuid> --flavor m1.tiny --key_name test --availability-zone nova:server2
  2. To specify which roles can launch an instance on a specified host, enable the create:forced_host option in the policy.json file. By default, this option is enabled for only the admin role.

  3. To view the list of valid compute hosts, use the nova hypervisor-list command, as follows:

    $ nova hypervisor-list
    +----+---------------------+
    | ID | Hypervisor hostname |
    +----+---------------------+
    | 1  | server2             |
    | 2  | server3             |
    | 3  | server4             |
    +----+---------------------+
Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page

loading table of contents...