Get an extra 20% off the OpenStack Cloud Computing Cookbook from PacktPub.com during the OpenStack Design Summit using this code: OpenStackSummit2012.
Monthly Archives: October 2012
Testing OpenStack is now as easy thanks to VirtualBox and Vagrant. To run a mini test environment with Compute, Cinder, Keystone and Horizon you just need the following tools:
- Git client
To set up a sandbox environment within VirtualBox to run OpenStack Folsom you will need to download:
- VirtualBox from http://www.virtualbox.org/
- Vagrant from http://vagrantup.com/
- Git (using your trusty package manager or from http://github.com/)
Installation of these tools are simple – follow the on-screen prompts.
When ready we need to configure the VirtualBox “Host-Only” Networking. This networking mode allows us to communicate with our VirtualBox guest and our underlying host.
We will set up the following:
- Host-Only Network: IP 172.16.0.254; Network 172.16.0.0/255.255.0.0; Disable DHCP
- Host-Only Network #2: IP 10.0.0.254; Network 10.0.0.0/255.0.0.0; Disable DHCP
(Hint: there is a bash script @ https://raw.github.com/uksysadmin/OpenStackInstaller/folsom/virtualbox/vbox-create-networks.sh to create these for you).
How To Do It
To create a VirtualBox VM, running Ubuntu 12.04 with OpenStack Folsom from Ubuntu’s Cloud Archive, carry out the following
1. Clone the GitHub OpenStackInstaller scripts
git clone https://github.com/uksysadmin/OpenStackInstaller.git
2. Make the scripts the ‘folsom’ branch
cd OpenStackInstaller git checkout folsom
3. Run ‘vagrant’ to launch your OpenStack instance which will come up with IP 172.16.0.201
cd virtualbox vagrant up
4. After a short while your instance will be ready. Note that on the first run, Vagrant will download a 384Mb Precise64 “box”. Subsequent launches will not require this step.
Launch a web browser at http://172.16.0.201/horizon and log in with:
Username: admin Password: openstack
(Note, to edit the IP it is assigned, modify virtualbox/vagrant-openstack-bootstrap.sh (Warning its a bit of a sed hack!).