Vagrant

$ vagrant init <box image>      - Create new Vagrant file with <box image>
$ vagrant up
$ vagrant status
$ vagrant halt

$ vagrant destroy

    options:

        -f, --force             - Destroy without confirmation

$ vagrant global-status         - List status of all known Vagrant environments

$ vagrant global-status | grep running

Notes:

  • Have to configure port forwarding in Vagrant file to expose any internal ports

  • EX: config.vm.network “forwarded_port”, guest: 8080, host: 8080

  • Running servers inside of vagrant must be bound to all IP addresses so they’ll be reachable from the host

  • EX: dev_appserver.py –host 0.0.0.0 app.yaml

Standard Boxes

Alpine

Box/Image Name

Source URL

Comments

alpine/alpine64

Vagrant Cloud

Alpine 3.7.0

Debian

Box/Image Name

Source URL

Comments

debian/stretch64

Vagrant Cloud

Debian 9

debian/jessie64

Vagrant Cloud

Debian 8

Ubuntu

Box/Image Name

Source URL

Comments

ubuntu/focal64

Vagrant Cloud

Ubuntu 20.04 LTS

ubuntu/bionic64

Vagrant Cloud

Ubuntu 18.04 LTS

ubuntu/xenial64

Vagrant Cloud

Ubuntu 16.04 LTS

ubuntu/trusty64

Vagrant Cloud

Ubuntu 14.04 LTS

References

  1. TBD