Mini OpenStack via DevStack

As OpenStack continues to gain popularity, more and more folks want to try out OpenStack. Deploying a full OpenStack “stack” is not simple and requires a few different resources. Most folks whether in academic or enterprise circles don’t have the resources or the time to deploy and configure such a setup. This is where DevStack comes in. DevStack allows you to easily deploy a working OpenStack deployment within a VM. This post will cover the simple steps to get you started with deploying a DevStack VM and list some common issues that you may face on the way.

Installing DevStack through VMware vCenter

Creating the VM

When creating a VM through vCenter, ensure you select the Guest OS type as Ubuntu (64Bit). Next ensure you have at least 1 NIC. DevStack will create its own bridge network and virtual interface during its installation. Set the minimum Virtual Disk Size to 20GB.

Installing Ubuntu Server 64bit

OpenStack and DevStack recommend Ubuntu 12.04 LTS 64bit server as the host OS starting with the Essex release (More info can be found here). Install the host os and remember to install OpenSSH Server when installing server roles. This will help with remote access later on as we continue to deploy DevStack.

Installing DevStack

Installing of DevStack is simple. Just clone and run the installation script. Base installation of Ubuntu server doesn’t come with git and can be installed with the following command – sudo apt-get install git

  1. Download DevStack

    git clone git://github.com/openstack-dev/devstack.git
  2. Start the install

    cd devstack; ./stack.sh

The script will ask you to enter the password for the different services it will configure and install. It installs and configures various combinations of GlanceHorizon,KeystoneMelangeNovaQuantum and Swift.

Running DevStack

Once all the components are installed the OpenStack dashboard (Horizon) should be up and running. Connect to it by navigating to http://<DevStackIP>. Login using the admin as the username and password that you created initially in the installation script.
To test it out, you can create a new instance by navigating to “Project -> Instances and Volumes”. CirrOS image is included by default in the DevStack installation. All new guest instances will get IP’s assigned starting from 10.0.0.2. 10.0.0.1 is the IP of the host. DevStack tries to emulate a flat network by creating a bridge between the 10.0.0.1/24 networks and your host network. With this you now have a working basic DevStack deployment.

We will be covering some known issues and how to fix them in several upcoming post!

 

No Comments yet

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress with GimpStyle Theme design by Horacio Bella.