Skip to content

Instantly share code, notes, and snippets.

@ryanchapman
Last active December 5, 2015 11:59
Show Gist options
  • Save ryanchapman/5c682613def88058e180 to your computer and use it in GitHub Desktop.
Save ryanchapman/5c682613def88058e180 to your computer and use it in GitHub Desktop.
VB=/Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/MacOS/VBoxManage; for vm in $($VB list vms | awk '{print $1}' | tr -d '"'); do $VB showvminfo $vm 2>&1 | grep 'State:.*running' &>/dev/null || continue; perl -e 'print "=" x 80 . "\n"'; echo $vm; $VB showvminfo $vm 2>&1 | egrep '^(Name|Guest OS|UUID|Config file|Memory size|Number of CPUs):|NIC.*Rule|Name:.*Host path:'; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment