Build a OpenStack on VMware Fusion 5

Cloud is a big trend in recent years and it will be bigger and bigger. Even though you want to join in this trend, it’s hard as it requires lots of machines to build and test it.

Fortunately, these days virtualisation technique allows us to install virtual guest on top of another virtual quest. So, to test openstack technology, you don’t need to purchase additional equipments. Just need a VMware or VirtualBox.

Here, I’ll show you the steps I took to build a OpenStack environment. In this case, I’m going to use Ubuntu (12.10).

You should turn on virtualisation feature in ‘Settings’ -> ‘Processor & Memory’ -> ‘Advanced options’. Just tick both options.

Add two more NICs which is using ‘Private to my Mac’ option. So, in total, there will be 3 NICs and the first one will use NAT.

After installation and update it fully, change the network details. Create a user openstack and log in as it (not necessary though).

$ sudo vi /etc/network/interface
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

# Public Interface
auto eth1
iface eth1 inet static

auto eth2
iface eth2 inet manual
        up ifconfig eth2 up

After made above changes, please start both interfaces.

$ sudo ifup eth1
$ sudo ifup eth2

Now, you need to install ‘git’ and download ‘devstack’ git.

$ sudo apt-get install git
$ git clone git://
$ cd devstack

Make the following ‘localrc’ file under devstack as it will reduce the typing.

$ vi localrc
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service quantum
enable_service g-api
enable_service rabbit

By running ‘./’, it will download necessary packages and build the system.

$ ./

It will give you the URL that you can open to start OpenStack with ID and password.

Below is the screenshot that is accessed the virtual instance.
OpenStack on Ubuntu

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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

%d bloggers like this: