Saturday, April 5, 2014

Run OpenStack on Ubuntu

You can install DevStack on your ubuntu VM or PC to learn its features.
Here I have an old laptop installed with Ubuntu server 12.04.

If you haven't installed git yet, you need to install it.
$ sudo apt-get install git
Download and install devstack:
$ git clone https://github.com/openstack-dev/devstack.git
Configure local.conf There is a sample local.conf under devstack/samples directory. Go to samples directory and copy it to devstack/ directory.
$ cp local.conf ../
Go to devstack/ directory and edit local.conf. A simple configuration can be found here
[[local|localrc]]
FLOATING_RANGE=192.168.1.224/27
FIXED_RANGE=10.11.12.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth0
ADMIN_PASSWORD=supersecret
MYSQL_PASSWORD=iheartdatabases
RABBIT_PASSWORD=flopsymopsy
SERVICE_PASSWORD=iheartksl
Run devstack
$ ./stack.sh
Now you can access and explore your openstack dashboard via the IP of your host machine. User name is "admin" and the password is what configured in the about local.conf file.

Notes: 
"Error: unable to connect to node 'rabbit@xxx': nodedown" try to start server:
$ sudo rabbitmq-server start

No comments:

Post a Comment