Skip to content

Instantly share code, notes, and snippets.

@mikepsinn
Last active March 18, 2018 22:34
Show Gist options
  • Select an option

  • Save mikepsinn/00e5b18ef85a0d49e5281cd0394af4f6 to your computer and use it in GitHub Desktop.

Select an option

Save mikepsinn/00e5b18ef85a0d49e5281cd0394af4f6 to your computer and use it in GitHub Desktop.
Package the pre-configured box =>
vagrant package --base preconfigured_vm --output /path/to/qm-ubuntu-slave-vagrant-package.box
i.e. vagrant package --base QM-Docker_default_1515955669346_6871 --output K:\Development\qm-ubuntu-slave-vagrant-package.box
Note that as per the docs, the --base option should be the UUID of the machine,
or the name VirtualBox gives the machine (found when opening the VirtualBox application).
Transfer the box to the computer by using scp, rsync or whatever...
(you also start a web server quickly by using python -m http.server PORT or ruby -run -e httpd /path/to -p PORT)
Init and start:
vagrant init preconfigured_vm /path/to/qm-ubuntu-slave-vagrant-package.box
i.e. vagrant init QM-Docker_default_1515955669346_6871 K:/Development/qm-ubuntu-slave-vagrant-package.box
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment