Vagrant cheat sheet
vagrant
Verify vagrant installationvagrant init hashicorp/bionic64
This will create aVagrantfile
in current directoryvagrant up
start the virtual machine from the Vagrantfile configurationvagrant halt
shutdown VM preserving content of the diskvagrant reload
This will quickly restart your virtual machine, skipping the initial import stepvagrant reload --provision
The provision flag on the reload command instructs Vagrant to run theprovisioners
, since usually Vagrant will only do this on the firstvagrant up
vagrant supend
Stop the virtual machine and save the current statevagrant ssh
SSH into the machinevagrant destroy
Destroy the virtual machinevagrant box list
show the list of downloaded boxvagrant box remove hashicorp/bionic64
vagrant destroy does not remove the downloaded box. remove command delete the downloaded boxls /vagrant
Explore the sync folder between host and guest machine
Comments
Leave a Comment