Skip to content

Latest commit

 

History

History
56 lines (46 loc) · 3.09 KB

File metadata and controls

56 lines (46 loc) · 3.09 KB

stackinabox Build Status

OpenStack Newton (DevStack) w/ Neutron networking in Vagrant using Ubuntu's LXD

Quick Start:

  • 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:

      • vbguest vagrant plugin install vagrant-vbguest
      • cachier vagrant plugin install vagrant-cachier
  • Copy vagrant/Personalization.dist to vagrant/Personalization

  • edit parameters for your needs
    cp vagrant/Personalization.dist vagrant/Personalization

    • NOTE: You must set a value for the $disk property in the copied Personalization file $disk = '/Users/tpouyer/VirtualBox VMs/stackinabox/box-disk2.vmdk'
    • NOTE: The $disk will be created dynamically when you run vagrant 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 the Personalization.dist file for you and add a reasonable $disk value to the file.
  • 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
    • You can login as admin user with:
      • username: admin
      • password: labstack
  • You ssh into the vagrant machine using:
    ssh vagrant@192.168.27.100

    • password: vagrant
    • or you can use vagrant's passwordless ssh support:
      cd vagrant;vagrant ssh
  • 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

Vagrant Base Box

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.

Credits

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.