# Create a new Vagrantfile with image
vagrant init hashicorp/bionic64
# Start the VM from stopped or suspend state
# in Vagrantfile, set config.ssh.forward_x11 to true
# For guest, install xauth
# If on Windows, use Xming X server and Putty for display
# View SSH configuration related to VM
## Recreate the vagrant public key using the identify file listed in
## the output of the ssh-config command
ssh-keygen -y -f <identity-file-location> > key.pub
## key.pub can be used to restore vagrant access to the VM
## by appending the contents to the /home/vagrant/.ssh/authorized_keys file
# Reload the VM after changes to Vagrantfile
vagrant reload --provision
# Temporarilty suspend the VM for start up later
# Destroy the VM without confirmation
vagrant box add hashicorp/bionic64
vagrant box update --box archlinux/archlinux
# List all environments on the system for the logged in user
vagrant box remove hashicorp/bionic64