Jump to: navigation, search

Obsolete:NovaInstall/DevPkgInstall

(Redirected from NovaInstall/DevPkgInstall)

Single Machine Installation (Ubuntu 10.10)

While we wouldn't expect you to put OpenStack Compute into production on a non-LTS version of Ubuntu, these instructions are up-to-date with the latest version of Ubuntu.

Make sure you are running Ubuntu 10.10 so that the packages will be available. This install requires more than 70 MB of free disk space.

These instructions are based on Soren Hansen's blog entry, Openstack on Maverick. His blog post runs the packaged version from the Ubuntu repository. You can also refer to Thierry Carrez's recent blog post, http://fnords.wordpress.com/2010/12/02/bleeding-edge-openstack-nova-on-maverick/ to run the latest code from the latest repository stored on Launchpad.

Step 1: Install required prerequisites

Nova requires rabbitmq for messaging, so we'll install it first. Make sure your hostname points to your ip address in /etc/hosts, otherwise rabbitmq-server won't start without any error-message.


sudo apt-get install rabbitmq-server

You'll see messages starting with "Reading package lists... Done" and you must confirm by typing Y that you want to continue.

Step 2: Install Nova packages available in Maverick Meerkat

Type or copy/paste in the following line to get the packages that you use to run OpenStack Compute from the Maverick repository. If you want to get the very latest packages, first you should enable the PPA:

Note that trunk is changing rapidly so installing ppa:/nova-core/trunk may or may not work any given day. For release package installation use ppa:openstack-release/2011.3.


sudo apt-get install python-software-properties
sudo add-apt-repository ppa:nova-core/trunk
sudo apt-get update

Then install Nova and dependencies:


sudo apt-get install python-nova
sudo apt-get install nova-common nova-doc nova-api nova-network nova-objectstore nova-scheduler nova-compute euca2ools unzip

You'll see messages starting with "Reading package lists... Done" and you must confirm by typing Y that you want to continue. This operation may take a while as many dependent packages will be installed. Note: there is a dependency problem with python-nova which can be worked around by installing it first as shown above.

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


Setting up nova-common (2011.2~gamma2~bzr973-0ubuntu0ppa1~lucid1) ...
Adding system user `nova' (UID 107) ...
Adding new user `nova' (UID 107) with group `nogroup' ...
Not creating home directory `/var/lib/nova'.

Setting up nova-api (2011.2~gamma2~bzr973-0ubuntu0ppa1~lucid1) ...
nova-api start/running, process 2208

Setting up nova-doc (2011.2~gamma2~bzr973-0ubuntu0ppa1~lucid1) ...
Setting up socat (1.7.1.0-1) ...
Setting up vlan (1.9-3ubuntu3) ...
Setting up nova-network (2011.2~gamma2~bzr973-0ubuntu0ppa1~lucid1) ...
nova-network start/running, process 2229

Setting up nova-objectstore (2011.2~gamma2~bzr973-0ubuntu0ppa1~lucid1) ...
nova-objectstore start/running, process 2241

Setting up nova-scheduler (2011.2~gamma2~bzr973-0ubuntu0ppa1~lucid1) ...
nova-scheduler start/running, process 2263

Processing triggers for python-central ...
Setting up nova-compute (2011.2~gamma2~bzr973-0ubuntu0ppa1~lucid1) ...
Adding user `nova' to group `libvirtd' ...
Adding user nova to group libvirtd
Done.
start: Job failed to start

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place


Next you must configure the nova.conf file to configure OpenStack Compute to run correctly. See RunningNova for configuration information.