Skip to content

Instantly share code, notes, and snippets.

@sherbang
Last active August 29, 2015 13:57
Show Gist options
  • Save sherbang/9606483 to your computer and use it in GitHub Desktop.
Save sherbang/9606483 to your computer and use it in GitHub Desktop.
Save all running Virtualbox VMs thanks to @lmbrt
#!/bin/sh
# Save all running Virtualbox VMs
# Credit: http://lmbrt.com/a/11
vboxmanage list runningvms | sed s/[a-zA-Z[:space:]0-9\"]*// | xargs -i vboxmanage controlvm {} savestate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment