If you want to have a little play around with OpenStack before diving in or maybe you want to develop some cool software to interface with it, it can be handy to run OpenStack in a VM or on a single machine. Here is how I did it.
1. I’m following the guide from http://devstack.org/guides/single-machine.html who have a handy script to automate the install.
2. I’m using Ubuntu 13.10 64bit minimal version from https://help.ubuntu.com/community/Installation/MinimalCD
3. Install Ubuntu as you would normally.
4. Update with
sudo apt-get update
5. Now I installed ssh because it makes it easier for me to ssh in and copy/paste commands
sudo apt-get install opens-server
6. To get the address of the server just
ifconfig eth0 then ssh into the server
7. First thing we are going to do is install a pre-requisite so
sudo apt-get install cloud-init which is required for OpenStack
8. Now we need to install GIT
sudo apt-get install git -y
9. Next we clone from GIT with
sudo git clone https://github.com/openstack-dev/devstack.git and then cd to the new directory
10. Now simply run
./stack.sh and answer a few questions then wait….. and wait…. if you get a permission error then just
sudo chown -R bob:bob /home/bob/devstack where bob is the user you are using to install
And that should be that…. easy really and your first cloud server. CasF