Download and install VirtualBox
Download and install Vagrant
Clone devstack
repository
git clone git://github.com/openstack-dev/devstack.git
Switch to devstack
directory
cd devstack
Create Vagrantfile
cat << EOF > Vagrantfile
Vagrant::Config.run do |config|
config.vm.box = 'ubuntu-11.10-64'
config.vm.box_url = 'http://timhuegdon.com/vagrant-boxes/ubuntu-11.10.box'
config.vm.customize ["modifyvm", :id, "--memory", 2048]
config.vm.forward_port 80, 8000
end
EOF
up
Vagrant instance
vagrant up
ssh
to Vagrant instance
vagrant ssh
Edit /etc/network/interfaces and change eth0 from dhcp to the following:
Switch to devstack
directory
cd /vagrant
Run stack.sh
script
yes '' | ./stack.sh
Source stackrc
file
source stackrc
Get admin password
echo $ADMIN_PASSWORD
Open web interface via localhost:8000 and login with the username admin
and password from above
Click Project in the left tab
Select demo from the dropdown
Click Access & Security
Click Allocate IP To Project
Select nova and click Allocate IP
Click Create Keypair
Enter your name and click Create Keypair
Click Instances & Volumes
Click Launch Instance
Click Launch for image cirros-0.3.0-x86_64-blank
Enter a Server Name
Select your name from the Keypair dropdown
Click Launch instance