Vagrant Operations

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Plugin Operations

Plugin Operations

Environment Operations

Environment Operations

Box Operations

List

vagrant box list

Instance Operations

Instance Operations

init

https://www.vagrantup.com/docs/cli/init.html
vagrant init

ssh

Connect to machine via SSH:

vagrant ssh

How does it know to connect to the instance it was started? More about jump box.


global-status

Global status of the VM:

vagrant global-status

status

vagrant status [name|id]

destroy

Stops and deletes all traces of the vagrant machine:

vagrant destroy
vagrant destroy [name|id]

If the corresponding VM runs in AWS EC2, this terminates the instance.

Managing a VM in an AWS Environment

https://github.com/mitchellh/vagrant-aws

Describe the VM in a Vagrantfile