UPDATE: I’ve been working on a new version of the script which can be used to create an OpenStack host running on Ubuntu 12.04 Precise Pangolin and the Essex release.
I’ve now got a video to accompany this which is recommended over this guide
Head over to http://uksysadmin.wordpress.com/2012/03/28/screencast-video-of-an-install-of-openstack-essex-on-ubuntu-12-04-under-virtualbox/
Running OpenStack under VirtualBox allows you to have a complete multi-node cluster that you can access and manage from the computer running VirtualBox as if you’re accessing a region on Amazon.
This is a complete guide to setting up a VirtualBox VM running Ubuntu, with OpenStack running on this guest and an OpenStack instance running, accessible from your host.
Part 1 – OpenStack on a single VirtualBox VM with OpenStack instances accessible from host

The environment used for this guide
- A 64-Bit Intel Core i7 Laptop, 8Gb Ram.
- Ubuntu 10.10 Maverick AMD64 (The “host”)
- VirtualBox 4
- Access from host running VirtualBox only (so useful for development/proof of concept)
The proposed environment
- OpenStack “Public” Network: 172.241.0.0/25
- OpenStack “Private” Network: 10.0.0.0/8
- Host has access to its own LAN, separate to this on 192.168.0.0/16 and not used for this guide
The Guide
- Download and install VirtualBox from http://www.virtualbox.org/
- Under Preferences… Network…
- Add/Edit Host-only network so you have vboxnet0. This will serve as the “Public interface” to your cloud environment
- Configure this as follows
- Adapter
- IPv4 Address: 172.241.0.100
- IPv4 Network Mask: 255.255.255.128
- DHCP Server
- On your Linux host running VirtualBox, you will see an interface created called ‘vboxnet0′ with the address specified as 172.241.0.100. This will be the IP address your OpenStack instances will see when you access them.
-
- Create a new Guest
- Name: Cloud1
- OS Type: Linux
- Version: Ubuntu (64-Bit)
- 1024Mb Ram
- Boot Hard Disk
- Dynamically Expanding Storage
- 8.0Gb
- After this initial set up, continue to configure the guest
- Storage:
- Edit the CD-ROM so that it boots Ubuntu 10.10 Live or Server ISO
- Ensure that the SATA controller has Host I/O Cache Enabled (recommended by VirtualBox for EXT4 filesystems)
- Network:
- Adapter 1
- Host-only Adapter
- Name: vboxnet0
- Adapter 2
- NAT
- This will provide the default route to allow the VM to access the internet to get the updates, OpenStack scripts and software
- Audio:
- Disable (just not required)
- Power the guest on and install Ubuntu
- For this guide I’ve statically assigned the guest with the IP: 172.241.0.101 for eth0 and netmask 255.255.255.128. This will be the IP address that you will use to access the guest from your host box, as well as the IP address you can use to SSH/SCP files around.
- Once installed, run an update (sudo apt-get update&&sudo apt-get upgrade) then reboot
- If you’re running a desktop, install the Guest Additions (Device… Install Guest Additions, then click on Places and select the VBoxGuestAdditions CD and follow the Autorun script), then Reboot
- Install openssh-server
- Grab this script to install OpenStack
- Run the script (as root/through sudo)
- Run the post-configuration steps
Congratulations, you now have a working Cloud environment waiting for its first image and instances to run, with a user you specified on the command line (yourusername), the credentials to access the cloud and a project called ‘myproject’ to host the instances.
- You now need to ensure that you can access any instances that you launch via SSH as a minimum (as well as being able to ping) – but I add in access to a web service and port 8080 too for this environment as my “default” security group.
CONGRATULATIONS! You have now created a complete cloud environment under VirtualBox that you can manage from your computer (host) as if you’re managing services on Amazon. To demonstrate this you can terminate that instance you created from your computer (host)
Credits
This guide is based on Thierry Carrez’ blog @ http://fnords.wordpress.com/2010/12/02/bleeding-edge-openstack-nova-on-maverick/
- Next: Part 2 – OpenStack on a multiple VirtualBox VMs with OpenStack instances accessible from host