OpenStack via DEVSTACK on VirtualBox Ubuntu 11.10

Page added by Michał Baliński (AMG.net)

Setup Ubuntu 11.10 on VirtualBox

  • download and install VirtualBox - https://www.virtualbox.org/ 
  • download Ubuntu 11.10 image - http://virtualboxes.org/images/ubuntu/#ubuntu1110
    There is one problem with this ubuntu: it is 32bit, and guest images that comes with devstack are 64bit. That results in such problem: We are able to run those 64bit images on openstack (openstack nova claims that such server/node/instance is running), but when we try to VNC to this instances we see info: This kernel requires an x86-64 CPU, but only detected an i686 CPU.
  • run downloaded image in VirtualBox

Configure Ubuntu

  • configure proxy environment variables (add to /.bashrc):

export http_proxy=http://w3cache.amg.net.pl:8080
export no_proxy=localhost,10.0.2.15,.amg.net.pl

  • install GIT

sudo apg-get update
sudo apt-get install git

  • configure GIT (to get rid of problem with https behind firewall/proxy), add file /etc/gitconfig :

# Workaround for bug when using SSL and HTTP proxy (LP #940431)
[url "http://"]
 insteadOf = "https://"

Download and run Devstack (http://devstack.org/)

  • download devstack

git clone git://github.com/openstack-dev/devstack.git

  • run devstack

cd devstack; ./stack.sh

Additional configuration

  • if you want to have Swift installed edit devstack/localrc file and add:

ENABLED_SERVICES="$ENABLED_SERVICES,swift"
SWIFT_HASH=password

  • my example full devstack/localrc configuration:

ubuntu@ubuntu-VirtualBox:/devstack/devstack$ cat localrc
MYSQL_PASSWORD=mysql
RABBIT_PASSWORD=rabbit
SERVICE_TOKEN=token
SERVICE_PASSWORD=password
ADMIN_PASSWORD=password
MYSQL_PASSWORD=mysql
RABBIT_PASSWORD=rabbit
SERVICE_TOKEN=token
SERVICE_PASSWORD=password
ADMIN_PASSWORD=password
ENABLED_SERVICES="$ENABLED_SERVICES,swift"
SWIFT_HASH=password

  • shutdown stack.sh and run it again:

killall screen
./stack.sh


This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 5.4.6 - Documentation - Legal Notice

Site maintained by