Skip to content

Instantly share code, notes, and snippets.

@hemanth22
Forked from tamirko/vagrant.sh
Created October 9, 2018 06:52
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 hemanth22/2724533e0f78a924ad22d9944600be66 to your computer and use it in GitHub Desktop.
Save hemanth22/2724533e0f78a924ad22d9944600be66 to your computer and use it in GitHub Desktop.
vagrant
vagrant plugin install vagrant-vbox-snapshot
...
vagrant up
...
vagrant snapshot take after-bootstrap-snapshot
vagrant ssh
# Once you're in the VM :
$ cd /root
# Do some stuff ...
# and more stuff ...
$ exit
## Assuming you're unhappy with the results
## or don't know what happened.
## Simply go back to the latest snapshot :
vagrant snapshot go after-bootstrap-snapshot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment