Skip to content

Instantly share code, notes, and snippets.

@stormwild
Forked from scheffield/share-vagrant-box.md
Created June 26, 2017 12:01
Show Gist options
  • Select an option

  • Save stormwild/b86ed08a37317c5e6f9ac489310c3b3b to your computer and use it in GitHub Desktop.

Select an option

Save stormwild/b86ed08a37317c5e6f9ac489310c3b3b to your computer and use it in GitHub Desktop.
How to share a vagrant box using https://atlas.hashicorp.com
  1. Sign Up and configure the box' meta data following the Atlas manual

  2. Provision your box as you like

  3. Find the name of your box

    $ VBoxManage list vms
  4. Package your box

    $ vagrant package --base <box_name>
    
  5. Upload it in the atlas

  6. Use it

    Vagrant.configure(2) do |config|
      config.vm.box = "<username>/<boxname>"
    end
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment