OpenStack Newton (DevStack) w/ Neutron networking in Vagrant using Ubuntu's LXD
-
Download & install GIT for your platform
-
Clone this repo to your system
git clone https://github.com/tpouyer/stackinabox.git
-
cd into the newly cloned 'stackinabox' directory
-
Install pre-reqs:
-
Running Ubuntu?
scripts/install-vagrant/install-vagrant-linux-ubuntu.sh
-
VirtualBox 5.0.10 Don't need the Extension Pack
-
Vagrant v1.7+
-
Install vagrant plugins:
-
-
Copy
vagrant/Personalization.dist
tovagrant/Personalization
-
edit parameters for your needs
cp vagrant/Personalization.dist vagrant/Personalization
- NOTE: You must set a value for the
$disk
property in the copiedPersonalization
file$disk = '/Users/tpouyer/VirtualBox VMs/stackinabox/box-disk2.vmdk'
- NOTE: The
$disk
will be created dynamically when you runvagrant up
. It is used as a dynamically growable backing store for lxd containers deployed via the embedded OpenStack. - NOTE: Running Linux?
vagrant/build.sh
the script will copy thePersonalization.dist
file for you and add a reasonable$disk
value to the file.
- NOTE: You must set a value for the
-
Run vagrant:
vagrant/build.sh
-
You can now open your browser to
http://192.168.27.100
to see the Horizon web console- You can login as demo user with:
- username:
demo
- password:
labstack
- username:
- You can login as admin user with:
- username:
admin
- password:
labstack
- username:
- You can login as demo user with:
-
You ssh into the vagrant machine using:
ssh [email protected]
- password:
vagrant
- or you can use vagrant's passwordless ssh support:
cd vagrant;vagrant ssh
- password:
-
You can authenticate with Keystone to run the OpenStack commandline tools by ssh'ing into the vagrant machine and running:
source /opt/stack/devstack/openrc demo demo
- or
source /opt/stack/devstack/openrc admin admin
- or
If you are only looking for a vagrant base box with openstack already installed that you can use for your own vagrant projects then you can check out the releases of the stackina-base-box project.
This project was adapted from the project devstack-vm and incorporates many tips and suggestions found around the web on devstack and vagrant forums, too many to list or otherwise locate at this point.