Installing OpenStack Essex (2012.1) on Ubuntu 12.04 ("Precise Pangolin")

by Martin Loschwitz

this manual explains how to install OpenStack Essex (Version 2012.1) on Ubuntu 12.04. If you want to know more about why I wrote this text, please refer to the corresponding blog post.

PLEASE NOTE: This text also not discuss Quantum (yet) but might well be adapted to do so later.

Prerequisites: Ubuntu 12.04 with all package updates installed. I'm using the stock OpenStack packages as delivered by Ubuntu. This howto assumes that all relevant OpenStack services are installed on the same machine; in order to add more computing nodes, install the OpenStack nova components on these nodes and adapt /etc/nova/nova.conf accordingly. The machine I created this setup on has two network interfaces, eth0 and eth1. Last but not least, I'm assuming that you are logged in as root.


Adding more nodes to the cluster

Thanks a lot for this helpful tutorial!

We were able to deploy a single-node OpenStack instance.

What needs to be done if you want to add new nodes to the system?

Could you please give a hint to the required configurations?

Thank you in advance!

fix NAT


you may need to run the following at the command line to configure a normal iptables NAT setup:-

iptables -A FORWARD -o eth0 -i br100 -s -m conntrack --ctstate NEW -j ACCEPT

iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT

iptables -t nat -F POSTROUTING

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE


+ keystone service-create

+ keystone service-create --name ec2 --type ec2 --description OpenStack EC2 service+-------------+----------------------------------+|   Property  |              Value               |+-------------+----------------------------------+| description | OpenStack EC2 service            || id          | ----------LONG ID--------- || name        | ec2                              || type        | ec2                              |+-------------+----------------------------------+

this script for some reason doesn't work for me. 

I see the service created but there are none in the database. i'm sure i've provided the right user name and password I thought it was because of a weird characted in my password but that doesn't seem to be the issue. 

mysql>  SELECT * FROM service;                                                                                

Empty set (0.00 sec)

maybe its because i'm using 

#[catalog]#driver = keystone.catalog.backends.templated.TemplatedCatalog#template_file = /etc/keystone/default_catalog.templates

anyone came accross this issue?

Thanks !

I wanted to try OpenStack for some time but installing it from scratch without a proper guide is a daunting task to say the least.

Your guide was just what I needed to get up and running, thanks a lot :)


Thank you for this very valuable tutorial. I've proceed the whole thing. Unfortunately, using the dashboard, I can't get the VNC view of instances. It just 404. Did you get the same problem? official openstack documentation is about 'novnc' but I noticed this essex install uses xvpvncproxy, for which I can't find any doc... any clue?


thank you


mate, make sure you have installed "novnc" related packeges. I've encountered a similiar situation as you did and "apt-get install novnc" did the trick.

Re: vnc?


you will probably find an answer to your question in this thread, started by a person with a problem that appears to be very similar to yours:

Best regards



Thank you,

I was following this thread already, and I posted in it. Actually, I discovered your tutorial in the mailing list.