Installing OpenStack Compute packages

Recommended by 0 users

Install OpenStack Compute Packages

Now that we have a machine for running OpenStack Compute, we can install the appropriate packages which will allow us to spawn its own virtual machine instances. We here in this section, get to learn about installing compute packages.

To do this, we will create a machine that runs all the appropriate services for running OpenStack Nova. The services are as follows:

nova-compute: This is the main package for running the virtual machine instances.

nova-network: Network service that controls DHCP, DNS, and Routing. This will also manage and run dnsmasq for us to provide these services.

nova-api-metadata: The Nova API metadata front-end. It is used when we are running a multi-host Nova network in our environment so that our compute instances can download metadata.

nova-compute-qemu: Provides QEmu services on our compute host. It is only required where hardware virtualization assist isn’t available (as it is required to run OpenStack under VirtualBox).

Ntp: Network Time Protocol is essential in a multi-node environment so that the nodes have the same time (tolerance is within five seconds and if it exceeds this limit, then you will get unpredictable results).

Getting started

Assure that you are logged in to the Openstack Compute node. We do this using Vagrant as follows:

vagrant ssh compute

How to achieve it…

Installation of OpenStack under Ubuntu 12.04 is simply achieved using the familiar apt-get tool as OpenStack packages being available from the Ubuntu Cloud Archive repositories.


Refer to the recipe Configuring Ubuntu Cloud archive in Chapter 1, Keystone OpenStack Identity Service, for instructions on setting up the Ubuntu Cloud Archive repository on this server.

1. We can install the required packages with the following command:

sudo apt-get update
sudo apt-get -y install nova-compute nova-network \ nova-api-metadata nova-compute-qemu

2. Once the installation is complete, we need to install and configure NTP also as follows:

sudo apt-get -y install ntp

3. NTP is important in any multi-node environment and in an OpenStack environment as it is a requirement that server times are kept in sync. To do this we edit /etc/ntp.conf file with the following contents:

# Replace ntp.ubuntu.com with an NTP server on your network server ntp.ubuntu.com


fudge stratum 10

4. Once NTP has been configured correctly, we restart the service to pick up the change:

sudo service ntp restart

How it works…

Installation of OpenStack Compute from the Ubuntu Cloud Archive package repository represents a very straightforward and well-understood way of getting the latest OpenStack into our Ubuntu server. This adds a greater level of certainty around stability and upgrade paths by not deviating away from the main archives.

Still more…

There are various ways to install OpenStack, from source code building to installation from packages, but this represents the easiest and most consistent method available. There are also alternative releases of OpenStack available. By using the Ubuntu Cloud Archive we are able to use various releases on our Ubuntu 12.04 LTS platform.

Using an alternative release

If you wish to optionally deviate from stable releases, it is appropriate when you are helping to develop or debug OpenStack, or else required functionality is not available in the current release. To enable different releases, you add different Personal Package Archives (PPA) to your system. To use them, we first install a prerequisite tool that allows us to easily add PPAs to our system, as follows:

sudo apt-get update

sudo apt-get -y install python-software-properties

To use a particular release of PPA, for example, Havana Trunk Testing, we issue the following command:

sudo add-apt-repository ppa:openstack-ubuntu-testing/havana-trunk-testing

sudo add-apt-repository ppa:openstack-ubuntu-testing/havana-trunk-testing


Related Pages:

Sample Resume:

Interview Questions:

0 Responses on Installing OpenStack Compute packages"

Leave a Message

Your email address will not be published. Required fields are marked *

Copy Rights Reserved © Mindmajix.com All rights reserved. Disclaimer.
Course Adviser

Fill your details, course adviser will reach you.