Skip to content

Instantly share code, notes, and snippets.

@rgoodie
Created August 5, 2014 13:10
Show Gist options
  • Save rgoodie/907663f14b1c8f566eeb to your computer and use it in GitHub Desktop.
Save rgoodie/907663f14b1c8f566eeb to your computer and use it in GitHub Desktop.
A Bash script to stop all running instances of VMs under virtual box (and vagrant)
vboxmanage list runningvms | sed -r 's/.*\{(.*)\}/\1/' | xargs -L1 -I {} VBoxManage controlvm {} savestate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment