e4aac82b07
A standard pre-release patch, looking for any obsolete text to remove, and references to newly unsupported releases to remove. Feel free to update the patch if you find other things. Review request: this patch touches many files in a small way. Please try and focus on the small changes, and not the rest of the file ... since many of them do need an edit ;) Change-Id: I383c51acf149bb6553ddfd33cad382f5dd15fe62
41 lines
1.9 KiB
XML
41 lines
1.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<section xmlns="http://docbook.org/ns/docbook"
|
|
xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"
|
|
xml:id="specify-host-to-boot-instances-on">
|
|
<title>Select hosts where instances are launched</title>
|
|
<para>With the appropriate permissions, you can select which
|
|
host instances are launched on and which roles can boot instances
|
|
on this host.</para>
|
|
<procedure>
|
|
<step>
|
|
<para>To select the host where instances are launched, use
|
|
the <literal>--availability_zone
|
|
<replaceable>zone</replaceable>:<replaceable>host</replaceable></literal>
|
|
parameter on the <command>nova boot</command> command, </para>
|
|
<para>For example:</para>
|
|
<screen><prompt>$</prompt> <userinput>nova boot --image <uuid> --flavor m1.tiny --key_name test --availability-zone nova:server2</userinput></screen>
|
|
</step>
|
|
<step>
|
|
<para>To specify which roles can launch an instance on a
|
|
specified host, enable the
|
|
<literal>create:forced_host</literal> option in
|
|
the <filename>policy.json</filename> file. By default,
|
|
this option is enabled for only the admin role.</para>
|
|
</step>
|
|
<step>
|
|
<para>To view the list of valid compute hosts, use the
|
|
<command>nova hypervisor-list</command> command,
|
|
as follows:</para>
|
|
<screen><prompt>$</prompt> <userinput>nova hypervisor-list</userinput>
|
|
<computeroutput>+----+---------------------+
|
|
| ID | Hypervisor hostname |
|
|
+----+---------------------+
|
|
| 1 | server2 |
|
|
| 2 | server3 |
|
|
| 3 | server4 |
|
|
+----+---------------------+</computeroutput></screen>
|
|
</step>
|
|
</procedure>
|
|
</section>
|