Skip to content

Instantly share code, notes, and snippets.

@icchy
Created Apr 9, 2016
Embed
What would you like to do?
like vagrant
function vm_debian() {
case "$1" in
start)
/usr/local/bin/VBoxManage startvm "debian" --type headless
;;
stop|poweroff)
/usr/local/bin/VBoxManage controlvm "debian" acpipowerbutton
;;
status)
/usr/local/bin/VBoxManage showvminfo "debian" | grep "State"
;;
esac
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment