Skip to content

Instantly share code, notes, and snippets.

Created February 10, 2014 15:42
What would you like to do?
Reset CloudStack fast
curl -Lo Vagrantfile
vagrant up
export VBOXID=`cat .vagrant/machines/default/virtualbox/id`
# Wait for it to come up and be ready.
VBoxManage snapshot $VBOXID take clean --live
# Make some VMs on CloudStack:
time (VBoxManage controlvm $VBOXID poweroff && VBoxManage snapshot $VBOXID restorecurrent && VBoxManage startvm $VBOXID --type headless)
0.05s user 0.06s system 2% cpu 4.667 total
# And boom, it's back to its clean state and ready for new resources!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment