Vagrant Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 20: Line 20:


If property configured, bringing the machine up may create a <tt>~/.ssh/dev/''vagranthostname''</tt> configuration that [[Ssh Include Named Configuration|can be used by ssh to connect directly]].
If property configured, bringing the machine up may create a <tt>~/.ssh/dev/''vagranthostname''</tt> configuration that [[Ssh Include Named Configuration|can be used by ssh to connect directly]].
Vagrant


Connect to machine via SSH:
Connect to machine via SSH:
Line 31: Line 29:
More about jump box.
More about jump box.
</font>
</font>
Status of the VM:
vagrant status


Stops and deletes all traces of the vagrant machine:
Stops and deletes all traces of the vagrant machine:


  vagrant destroy
  vagrant destroy

Revision as of 00:32, 10 August 2019

External

Internal

Box Operations

List

vagrant box list

Instance Operations

Start and provision the vagrant environment:

vagrant up

If property configured, bringing the machine up may create a ~/.ssh/dev/vagranthostname configuration that can be used by ssh to connect directly.

Connect to machine via SSH:

vagrant ssh

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

Status of the VM:

vagrant status

Stops and deletes all traces of the vagrant machine:

vagrant destroy