bbec5aa4d2
The XML root element of Docbook XML files should match the following format: <ELEMENT 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="THE_XML_ID_OF_THE_ELEMENT"> Change-Id: If8d27898af12af2edc2d2d13557ec2365a241656
42 lines
1.9 KiB
XML
42 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>
|