Basis


Workflow

vagrant init
Create default Vagrant file.

vagrant up
Create VMs.

vagrant reload
Restart VMs.

vagrant destroy
Delete VMs.

vagrant ssh
Connect to VM with SSH.

vagrant suspend
Pause VMs.

vagrant resume
Unpause VMs


Boxes

Boxes are ready to use Vagrant VMs. They can be find here: https://app.vagrantup.com/boxes/search

vagrant box list
Show locally available boxes.

vagrant box add myBox
Download a box from Vagrant Cloud.

vagrant box remove myBox
Remove a local box.

Plugins


Basis

vagrant plugin list
Show locally available boxes.

vagrant plugin install myPlugin
Install a plugin.


VMware Workstation

https://developer.hashicorp.com/vagrant/docs/providers/vmware/configuration

vagrant plugin install vagrant-vmware-desktop
Install VMware Workstation Plugin

For it to work, it is required to install Vagrant VMware Utility: https://developer.hashicorp.com/vagrant/docs/providers/vmware/vagrant-vmware-utility


VMware ESXi

https://github.com/josenk/vagrant-vmware-esxi

vagrant plugin install vagrant-vmware-esxi
Install VMware ESXi plugin

vagrant up --provider=vmware_esxi
To use the plugin specify the provider when using Vagrant commands.