All in one installation script for OpenStack
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


All in one installation script for OpenStack

24th Aug 2012 @jedipunkz


OpenStack All In One Instrallation Script. These compornents of OpenStack will be installed on only 1 node. nova, glance, keystone, swift.


Node that you want to use for installation must have these environment.

  • Ubuntu Server 12.04 LTS amd64
  • Intel-VT or AMD-V machine
  • 1 NIC or more NICs, it doesn't matter. :)


+----------+ +--------+
|          | | br100  | -> floating range :
|          | +--------+
|          | | eth0:0 |       disk devices
|   Host   | +--------+   (dummy)  +------------------------+
|          |                       | /dev/sda6 nova-volumes |
|          | +--------+            +------------------------+
|          | |  eth0  | ${HOST_IP} | /dev/sda7 swift        |
+----------+ +--------+            +------------------------+
|              nw I/Fs
|   CPE    |


% sudo -i
# git clone git://
# ./openstak_install/ allinone
( wait some minutes...)

Additional Operation

After installation, you have to add OS Image to glance for building VMs. Here, I show you operation that you have to.

create OS images

Create a OS Image on this node. for example I show you that operation for ubuntu server 12.04 LTS image.

# kvm-image create -f qcow2 server.img 5G
# wget
# kvm -m 256 -cdrom ubuntu-12.04-server-amd64.iso -drive file=server.img,if=virtio,index=0 -boot d -net nic -net user -nographic -vnc :0

Connect VNC to ${node_IP}:0, and install OS on VNC Tool. When you finish installation operation, re-run kvm command to boot from hard disk.

# kvm -m 256 -drive file=server.img,if=virtio,index=0 -boot c -net nic -net user -nographic -vnc :0

Re-connect VNC to ${node_IP}:0, and execute this command.

# sudo rm -rf /etc/udev/rules.d/70-persistent-net.rules
# shutdown -h now

add OS image to glance

Add server.img to glance for OS image template on OpenStack.

# source ~/.openstack # if you use bash, exec this command ". ~/.openstack"
# glance add name="Ubuntu Server 12.04LTS" is_public=true container_format=ovf disk_format=qcow2 < server.img

Create ssh keypair and install that

Create SSH-Keypair and install that to OpenStack Nova.

# ssh-keygen
# nova keypair-add --pub_key .ssh/ mykey
# nova keypair-list

Open Dashboard : Horizon

Operation was done. Open http://${node_IP} to use Horizon (OpenStack Dashboard) and create some VMs.