Created
August 5, 2014 13:10
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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