Created
August 3, 2011 06:47
-
-
Save rdetert/1122047 to your computer and use it in GitHub Desktop.
Save the State of all your VirtualBox Virtual Machines. Great if you need to reboot remotely.
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
#!/bin/sh | |
VBoxManage list runningvms | awk '{split($0, a, " {"); gsub(/\"/,"", a[1]); print a[1]}' | xargs -I {} -t VBoxManage controlvm {} savestate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment