Skip to content

Instantly share code, notes, and snippets.

@vinkrish
Created May 23, 2021 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinkrish/4db5d9937e94107272cae4ad612e5040 to your computer and use it in GitHub Desktop.
Save vinkrish/4db5d9937e94107272cae4ad612e5040 to your computer and use it in GitHub Desktop.
Get fresh ubuntu machine:
vagrant init ubuntu/trusty64
vagrant up --provider virtualbox
SSH into newly built machine:
vagrant ssh
Dispose machine using:
vagrant destroy
To create vagrant file:
vagrant init
ls /vagrant
Vagrantfile
Reload Vagrantfile:
vagrant reload
Save the current state:
vagrant suspend
Gracefully shutdown the machine
vagrant halt
Display the ssh configuration:
vagrant ssh-config
ssh-keygen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment