Jump to: navigation, search

Difference between revisions of "Obsolete:NovaInstall/Bexar"

(It is mentioned elsewhere on the wiki also, but people might miss it.)
m (Fifieldt moved page NovaInstall/Bexar to Obsolete:NovaInstall/Bexar: Bexar is no longer supported)
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
__NOTOC__
+
 
 
= Installing an [[OpenStack]] Compute (Nova) Snapshot (Bexar release) =
 
= Installing an [[OpenStack]] Compute (Nova) Snapshot (Bexar release) =
 
 
These instructions are for the Bexar release of Nova, 2011.1. If you prefer to run the more recent code rather than the packaged release, refer to [[NovaInstall]].
 
These instructions are for the Bexar release of Nova, 2011.1. If you prefer to run the more recent code rather than the packaged release, refer to [[NovaInstall]].
  
Line 7: Line 6:
  
 
== Single Machine Installation ==
 
== Single Machine Installation ==
 
 
The instructions are based on Ubuntu commands. For Fedora, RHEL, or CentOS, refer to [[NovaInstall/CentOSNotes|Nova installation on CentOS]].
 
The instructions are based on Ubuntu commands. For Fedora, RHEL, or CentOS, refer to [[NovaInstall/CentOSNotes|Nova installation on CentOS]].
  
 
'''Step 1: Downloading the Nova packaged software '''
 
'''Step 1: Downloading the Nova packaged software '''
  
Download the released package at http://launchpad.net/nova/bexar/2011.1/+download/nova-2011.1.tar.gz.  
+
Download the released package at http://launchpad.net/nova/bexar/2011.1/+download/nova-2011.1.tar.gz.
  
  
 
<pre><nowiki>
 
<pre><nowiki>
 
 
wget http://launchpad.net/nova/bexar/2011.1/+download/nova-2011.1.tar.gz
 
wget http://launchpad.net/nova/bexar/2011.1/+download/nova-2011.1.tar.gz
 
 
</nowiki></pre>
 
</nowiki></pre>
 
  
 
Extract the file to the server where you want to install and run Nova.
 
Extract the file to the server where you want to install and run Nova.
Line 28: Line 23:
 
tar xvzf nova-2011.1.tar.gz
 
tar xvzf nova-2011.1.tar.gz
 
</nowiki></pre>
 
</nowiki></pre>
 
  
 
'''Step 2: Install dependencies'''
 
'''Step 2: Install dependencies'''
  
Nova requires rabbitmq for messaging, so install it first.  
+
Nova requires rabbitmq for messaging, so install it first.
  
'''Note:''' You must have sudo installed to run these commands as shown here.  
+
'''Note:''' You must have sudo installed to run these commands as shown here.
  
  
Line 45: Line 39:
 
</nowiki></pre>
 
</nowiki></pre>
  
 +
Furthermore, nova-compute will need:
  
Furthermore, Nova-compute will need:
 
  
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-get install -y python-libvirt
+
sudo apt-get install -y python-libvirt libvirt-bin
 
</nowiki></pre>
 
</nowiki></pre>
  
 +
And nova-network will need:
 +
 +
 +
<pre><nowiki>
 +
sudo apt-get install vlan curl
 +
</nowiki></pre>
  
 
''' Step 3: Build and install Nova services '''
 
''' Step 3: Build and install Nova services '''
Line 61: Line 61:
 
cd nova-2011.1
 
cd nova-2011.1
 
</nowiki></pre>
 
</nowiki></pre>
 
  
 
Type or copy/paste in the following line to compile the Python code for [[OpenStack]] Compute.
 
Type or copy/paste in the following line to compile the Python code for [[OpenStack]] Compute.
  
 +
NOTE:: Edit <code><nowiki>tools/pip-requires</nowiki></code> and set this line:  <code><nowiki>sqlalchemy-migrate==0.6</nowiki></code> . Otherwise <code><nowiki>nova-manage db sync</nowiki></code> will complain in migration.py
  
 
<pre><nowiki>
 
<pre><nowiki>
Line 71: Line 71:
 
sudo python setup.py install
 
sudo python setup.py install
 
</nowiki></pre>
 
</nowiki></pre>
 
  
 
When the installation is complete, you'll see the following lines:
 
When the installation is complete, you'll see the following lines:
Line 96: Line 95:
 
</nowiki></pre>
 
</nowiki></pre>
  
 +
Finally, sync the db:
  
Finally, sync the db:
 
  
 
<pre><nowiki>
 
<pre><nowiki>
Line 103: Line 102:
 
</nowiki></pre>
 
</nowiki></pre>
  
 +
Next, refer to [[RunningNova]] for more information about getting images and starting instances. Be aware that in those steps you might need to do first (or a variation on this):
  
Next, refer to [[RunningNova]] for more information about getting images and starting instances.
 
Be aware that in those steps you might need to do first (or a variation on this):
 
  
 
<pre><nowiki>
 
<pre><nowiki>
 
cd /usr/local/lib/python2.6/dist-packages/nova-2011.1-py2.6.egg/
 
cd /usr/local/lib/python2.6/dist-packages/nova-2011.1-py2.6.egg/
sudo ln -s /opt/nova-2011.1/CA
+
sudo ln -s /opt/nova-2011.1/CA .
sudo ln -s /opt/nova-2011.1/etc
+
sudo ln -s /opt/nova-2011.1/etc .
 
</nowiki></pre>
 
</nowiki></pre>

Latest revision as of 18:30, 25 July 2013

Installing an OpenStack Compute (Nova) Snapshot (Bexar release)

These instructions are for the Bexar release of Nova, 2011.1. If you prefer to run the more recent code rather than the packaged release, refer to NovaInstall.

Please ask for assistance in the #openstack IRC channel if you want more information or run into problems.

Single Machine Installation

The instructions are based on Ubuntu commands. For Fedora, RHEL, or CentOS, refer to Nova installation on CentOS.

Step 1: Downloading the Nova packaged software

Download the released package at http://launchpad.net/nova/bexar/2011.1/+download/nova-2011.1.tar.gz.


wget http://launchpad.net/nova/bexar/2011.1/+download/nova-2011.1.tar.gz

Extract the file to the server where you want to install and run Nova.


tar xvzf nova-2011.1.tar.gz

Step 2: Install dependencies

Nova requires rabbitmq for messaging, so install it first.

Note: You must have sudo installed to run these commands as shown here.


sudo apt-get install -y rabbitmq-server
sudo apt-get install -y python2.6-dev python-software-properties python-setuptools
sudo apt-get install libssl-dev
sudo apt-get install -y swig m2crypto
sudo easy_install pip

Furthermore, nova-compute will need:


sudo apt-get install -y python-libvirt libvirt-bin

And nova-network will need:


sudo apt-get install vlan curl

Step 3: Build and install Nova services

Switch to the directory where the Python files for Nova are extracted.


cd nova-2011.1

Type or copy/paste in the following line to compile the Python code for OpenStack Compute.

NOTE:: Edit tools/pip-requires and set this line: sqlalchemy-migrate==0.6 . Otherwise nova-manage db sync will complain in migration.py

sudo pip install -r tools/pip-requires
sudo python setup.py build
sudo python setup.py install

When the installation is complete, you'll see the following lines:


Installing nova-volume script to /usr/local/bin
Installing nova-debug script to /usr/local/bin
Installing nova-import-canonical-imagestore script to /usr/local/bin
Installing nova-spoolsentry script to /usr/local/bin
Installing nova-objectstore script to /usr/local/bin
Installing nova-api script to /usr/local/bin
Installing nova-instancemonitor script to /usr/local/bin
Installing nova-logspool script to /usr/local/bin
Installing nova-scheduler script to /usr/local/bin
Installing nova-network script to /usr/local/bin
Installing nova-compute script to /usr/local/bin
Installing nova-manage script to /usr/local/bin
Installing nova-dhcpbridge script to /usr/local/bin

Installed /usr/local/lib/python2.6/dist-packages/nova-2011.1-py2.6.egg
Processing dependencies for nova==2011.1
Finished processing dependencies for nova==2011.1

Finally, sync the db:


sudo nova-manage db sync

Next, refer to RunningNova for more information about getting images and starting instances. Be aware that in those steps you might need to do first (or a variation on this):


cd /usr/local/lib/python2.6/dist-packages/nova-2011.1-py2.6.egg/
sudo ln -s /opt/nova-2011.1/CA .
sudo ln -s /opt/nova-2011.1/etc .