Jump to: navigation, search


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

These instructions are for the Cactus release of Nova, 2011.2. If you prefer to run the more recent code rather than the tarball release, refer to NovaInstall.

These instructions do not yet contain all the dependencies, so feel free to edit this page as you sort through the dependencies.

The Cactus release notes contain a list of the features in the Cactus release as well as known issues with the release.

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 RHEL6 Nova installation and Nova installation on CentOS.

Step 1: Downloading the Nova compressed file

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

wget http://launchpad.net/nova/cactus/2011.2/+download/nova-2011.2.tar.gz

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

tar xvzf nova-2011.2.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 python-distutils-extra
sudo apt-get install libssl-dev
sudo apt-get install -y swig m2crypto
sudo easy_install pip
sudo apt-get install python-pip
sudo pip install setuptools

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.2

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

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.2-py2.6.egg
Processing dependencies for nova==2011.2
Finished processing dependencies for nova==2011.2

Finally, sync the database to pick up any changes:

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.2-py2.6.egg/
sudo ln -s /opt/nova-2011.2/CA .
sudo ln -s /opt/nova-2011.2/etc .