Devstack on Ubuntu 12.04 LTS

Home » Computer Articles » Linux » Devstack on Ubuntu 12.04 LTS
November 10, 2013 Linux No Comments

I've been wanting to try out Openstack for a while and I finally made the time to do a test setup. Now there is a Devstack setup which was really easy to setup. So here are the steps I took. Of course I haven't added all the information here. I do have a reference section where you can get a lot more information.

 

Download the current Ubuntu 12.04 LTS, Click here to download.

 

Setting up your server.

 

Make sure system is up to date.

# apt-get update && apt-get upgrade

 

Install Openssh and lvm2

# apt-get install openssh-client openssh-server lvm2 git vim

 

Checkout the devstack at github 

# git clone https://github.com/openstack-dev/devstack.git

 

Need to add hard drive for Nova volume.

# fdisk /dev/sdb

# pvcreate -ff /dev/sdb1

 

# vgcreate nova-volumes /dev/sdb1

Network setup. Edit the

# vi /etc/network/interfaces

auto eth0
iface eth0 inet static
address 192.168.1.220
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4

Setup a localrc file in the devstack directory.

HOST_IP=192.168.1.220
FLAT_INTERFACE=eth0
FIXED_RANGE=10.0.2.0/24
FIXED_NETWORK_SIZE=256
FLOATING_RANGE=192.168.1.224/27
MYSQL_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_TOKEN=password
SERVICE_PASSWORD=password
ADMIN_PASSWORD=password

 

Now run the ./stack.sh in the devstack directory.

# ./stack.sh

References:

StackGeek Devstack installation, http://www.stackgeek.com/blog/kordless/post/taking-openstack-for-a-spin

Share This:

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.