Skip to content

matjazp/devstack-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevStack all-in-one with Vagrant and Shell provisioning

Based on https://github.com/lorin/devstack-vm, but since Ansible is not Windows friendly (my students use Windows almost exclusively on their laptops), I replaced it with Shell provisioning. I used Ubuntu 12.04 LTS instead of Ubuntu 13.10.

Some settings don't survive reboot (intentionally, change that if you need a more permanent solution):

sudo ip link set dev eth2 up
sudo ovs-vsctl add-port br-ex eth2
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Network configuration in VM:

  • eth0 - NAT network to your computer (host)
    • Vagrant uses this for SSH access (vagrant ssh) - port forwarding from localhost's port 2222 to VM's port 22
  • eth1 - this will be the endpoint for Horizon and other OpenStack APIs (192.168.27.100)
  • eth2 - in promiscuous mode, this will be the OpenStack "public" network, use DevStack default 172.24.4.225/27

After install:

Horizon is now available at http://192.168.27.100/
Keystone is serving at http://192.168.27.100:5000/v2.0/
Examples on using novaclient command line is in exercise.sh
The default users are: admin and demo
The password: password
This is your host ip: 192.168.27.100

You can SSH on DevStack with:

vagrant ssh

DevStack configuration details are in localrc, don't forget that this file is copied to /home/vagrant/devstack on VM, so if you want to change DevStack's configuration, you should do one of the folowing:

  • change localrc in this project's folder, destroy VM (vagrant destroy), rebuild machine again (vagrant up) OR
  • change localrc in VM's /home/vagrant/devstack, stop DevStack with ./unstack.sh, reinstall DevStack with ./stack.sh

About

DevStack all-in-one with Vagrant and Shell provisioning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published