ccb80d725d
Updated a typo (keystone-mange -> keystone-manage) Updated a few capitalization errors in titles Change-Id: I38ec2a6c53b9e3a1e1bf330b54c26f293a764d94 author: diane fleming
63 lines
2.8 KiB
XML
63 lines
2.8 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>
|
|
<note>
|
|
<para>
|
|
<itemizedlist>
|
|
<listitem>
|
|
<para>Beginning in the Folsom release, the
|
|
<literal>--availability_zone
|
|
<replaceable>zone</replaceable>:<replaceable>host</replaceable></literal>
|
|
parameter replaces the
|
|
<literal>--force_hosts</literal> scheduler
|
|
hint parameter.</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Beginning in the Grizzly release, you can
|
|
enable the
|
|
<literal>create:forced_host</literal>
|
|
option in the <filename>policy.json</filename>
|
|
file to specify which roles can launch an
|
|
instance on a specified host.</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</para>
|
|
</note>
|
|
</section>
|