Skip to content

Instantly share code, notes, and snippets.

@stevepereira
Forked from silas/README.md
Created October 23, 2012 01:42
Show Gist options
  • Save stevepereira/3936176 to your computer and use it in GitHub Desktop.
Save stevepereira/3936176 to your computer and use it in GitHub Desktop.
Vagrant and devstack

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment