Skip to content

Instantly share code, notes, and snippets.

@silas
Created March 21, 2012 03:52
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save silas/2144122 to your computer and use it in GitHub Desktop.
Save silas/2144122 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

@cmoulliard
Copy link

Thx for this excellent vagrant + devstack procedure.

Questions :

  • Can you explain what you have modified (network config, ...) and installed in this vagrant box (jdk, git, ...) - http://timhuegdon.com/vagrant-boxes/ubuntu-11.10.box ?
  • If have some issues with NAT. So can we add a host-only adapter with your existing config ? Do I have to change the network of the vagrant box

Regards,

Charles

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