Various cleanups in the nova chapter
* Rebase against master Change-Id: Idfadda7b68e046b5c3b2db5d7f2b43ad25adea85
This commit is contained in:
parent
c5d8af97a1
commit
07acfa046f
@ -39,11 +39,11 @@
|
||||
launched using mykey as the keypair. You can view available keypairs
|
||||
using the <command>nova keypair-list</command> command.</para>
|
||||
<screen><prompt>$</prompt> <userinput>nova keypair-list</userinput>
|
||||
<computeroutput>+-------+-------------------------------------------------+
|
||||
<computeroutput>+--------+-------------------------------------------------+
|
||||
| Name | Fingerprint |
|
||||
+-------+-------------------------------------------------+
|
||||
+--------+-------------------------------------------------+
|
||||
| mykey | b0:18:32:fa:4e:d4:3c:1b:c4:6c:dd:cb:53:29:13:82 |
|
||||
+-------+-------------------------------------------------+</computeroutput></screen>
|
||||
+--------+-------------------------------------------------+</computeroutput></screen>
|
||||
</step>
|
||||
<step><para>To launch an instance using OpenStack, you must specify the ID for the flavor you want to use
|
||||
for the instance. A flavor is a resource allocation profile. For
|
||||
@ -64,7 +64,7 @@
|
||||
<step>
|
||||
<para>Get the ID of the image you would like to use for the instance using the
|
||||
<command>nova image-list</command> command.</para>
|
||||
<screen><prompt>$</prompt> nova image-list
|
||||
<screen><prompt>$</prompt> <userinput>nova image-list</userinput>
|
||||
<computeroutput>+--------------------------------------+--------------+--------+--------+
|
||||
| ID | Name | Status | Server |
|
||||
+--------------------------------------+--------------+--------+--------+
|
||||
|
@ -139,7 +139,7 @@ admin_password=<replaceable>NOVA_DBPASS</replaceable>
|
||||
<filename>/etc/nova/nova.conf</filename>.</para></note>
|
||||
</step>
|
||||
<step>
|
||||
<para os="fedora;rhel;centos;opensuse;Sles">Start the Compute service and configure it to start when the system boots.</para>
|
||||
<para os="fedora;rhel;centos;opensuse;sles">Start the Compute service and configure it to start when the system boots.</para>
|
||||
<para os="ubuntu;debian">Restart the Compute service.</para>
|
||||
<screen os="ubuntu;debian"><prompt>#</prompt> <userinput>service nova-compute restart</userinput></screen>
|
||||
<screen os="centos;rhel;fedora;opensuse;sles"><prompt>#</prompt> <userinput>service openstack-nova-compute start</userinput>
|
||||
|
@ -12,6 +12,7 @@
|
||||
<note><para>If you require the full software-defined networking stack, see <link
|
||||
linkend="ch_neutron">Using Neutron Networking</link>.</para></note>
|
||||
<procedure>
|
||||
<title>Enable networking on a compute node</title>
|
||||
<step><para>After performing initial configuration of the compute node,
|
||||
install the appropriate packages for compute networking.</para>
|
||||
<screen os="ubuntu;debian"><prompt>#</prompt> <userinput>apt-get install nova-network</userinput></screen>
|
||||
@ -21,9 +22,10 @@
|
||||
|
||||
<step>
|
||||
<para>First, set the configuration options needed in <filename>nova.conf</filename> for the chosen networking mode.</para>
|
||||
<screen os="fedora;rhel;centos;opensuse;sles">
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/nova/nova.conf DEFAULT network_manager nova.network.manager.FlatDHCPManager</userinput>
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/nova/nova.conf DEFAULT firewall_driver nova.virt.libvirt.firewall.IptablesFirewallDriver</userinput>
|
||||
<screen os="fedora;rhel;centos;opensuse;sles"><prompt>#</prompt> <userinput>openstack-config --set /etc/nova/nova.conf DEFAULT \
|
||||
network_manager nova.network.manager.FlatDHCPManager</userinput>
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/nova/nova.conf DEFAULT \
|
||||
firewall_driver nova.virt.libvirt.firewall.IptablesFirewallDriver</userinput>
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/nova/nova.conf DEFAULT network_size 254</userinput>
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/nova/nova.conf DEFAULT routing_source_ip ADDRESS</userinput>
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/nova/nova.conf DEFAULT allow_same_net_traffic False</userinput>
|
||||
@ -33,11 +35,9 @@
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/nova/nova.conf DEFAULT force_dhcp_release True</userinput>
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/nova/nova.conf DEFAULT flat_interface eth1</userinput>
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/nova/nova.conf DEFAULT flat_network_bridge br100</userinput>
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/nova/nova.conf DEFAULT public_interface br100</userinput>
|
||||
</screen>
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/nova/nova.conf DEFAULT public_interface br100</userinput></screen>
|
||||
<para os="ubuntu;debian">Edit <filename>/etc/nova/nova.conf</filename> and add to the <literal>[DEFAULT]</literal> section.</para>
|
||||
<programlisting os="ubuntu;debian" language="ini">
|
||||
[DEFAULT]
|
||||
<programlisting os="ubuntu;debian" language="ini">[DEFAULT]
|
||||
...
|
||||
|
||||
network_manager=nova.network.manager.FlatDHCPManager
|
||||
@ -52,22 +52,23 @@ flat_network_bridge=br100
|
||||
flat_interface=eth1
|
||||
public_interface=eth0
|
||||
</programlisting>
|
||||
|
||||
</step>
|
||||
<step>
|
||||
<para>Now, restart the relevant services:</para>
|
||||
<para os="ubuntu;debian">Restart the network service.</para>
|
||||
<screen os="ubuntu;debian"><prompt>#</prompt> <userinput>service nova-network restart</userinput></screen>
|
||||
|
||||
<screen os="ubuntu;debian">
|
||||
<prompt>#</prompt> <userinput>service nova-network restart</userinput></screen>
|
||||
<screen os="centos;rhel;fedora;opensuse;sles">
|
||||
<prompt>#</prompt> <userinput>service openstack-nova-network restart</userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>You must run the command that creates the network that the virtual machines use.
|
||||
You only need to run this command once, from a place where your admin user credentials are loaded.</para>
|
||||
<screen>source keystonerc</screen>
|
||||
|
||||
<screen><prompt>#</prompt> <userinput>nova network-create vmnet --fixed-range-v4=10.0.0.0/24 --bridge-interface=br100 --multi-host=T</userinput></screen>
|
||||
<para os="fedora;rhel;centos;opensuse;sles">Start the network service and configure it to start when the system boots.</para>
|
||||
<screen os="centos;rhel;fedora;opensuse;sles"><prompt>#</prompt> <userinput>service openstack-nova-network restart</userinput>
|
||||
<prompt>#</prompt> <userinput>chkconfig openstack-nova-network on</userinput></screen>
|
||||
</step>
|
||||
</procedure>
|
||||
|
||||
<para>Finally, you have to create a network that virtual machines can use. You
|
||||
only need to do this once for the entire installation, not for each compute node.
|
||||
Run the <command>nova network-create</command> command anywhere your admin user
|
||||
credentials are loaded.</para>
|
||||
<screen><prompt>#</prompt> <userinput>source keystonerc</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>nova network-create vmnet --fixed-range-v4=10.0.0.0/24 \
|
||||
--bridge-interface=br100 --multi-host=T</userinput></screen>
|
||||
|
||||
</section>
|
||||
|
Loading…
Reference in New Issue
Block a user