Skip to content

Instantly share code, notes, and snippets.

@swapniltamse
Forked from silas/README.md
Created March 21, 2012 04:26
Show Gist options
  • Save swapniltamse/2144344 to your computer and use it in GitHub Desktop.
Save swapniltamse/2144344 to your computer and use it in GitHub Desktop.
Vagrant and devstack
  1. Download and install VirtualBox

  2. Download and install Vagrant

  3. Clone devstack repository

     git clone git://github.com/openstack-dev/devstack.git
    
  4. Switch to devstack directory

     cd devstack
    
  5. 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
    
  6. up Vagrant instance

     vagrant up
    
  7. ssh to Vagrant instance

     vagrant ssh
    
  8. Switch to devstack directory

     cd /vagrant
    
  9. Run stack.sh script

     yes '' | ./stack.sh
    
  10. Source stackrc file

     source stackrc
    
  11. Get admin password

    echo $ADMIN_PASSWORD
    
  12. Open web interface via localhost:8000 and login with the username admin and password from above

  13. Click Project in the left tab

  14. Select demo from the dropdown

  15. Click Access & Security

  16. Click Allocate IP To Project

  17. Select nova and click Allocate IP

  18. Click Create Keypair

  19. Enter your name and click Create Keypair

  20. Click Instances & Volumes

  21. Click Launch Instance

  22. Click Launch for image cirros-0.3.0-x86_64-blank

  23. Enter a Server Name

  24. Select your name from the Keypair dropdown

  25. Click Launch instance

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