Skip to content

Instantly share code, notes, and snippets.

@dap
Created June 10, 2015 05:18
Show Gist options
  • Save dap/110ea9b1b8b0604e6be1 to your computer and use it in GitHub Desktop.
Save dap/110ea9b1b8b0604e6be1 to your computer and use it in GitHub Desktop.
#!/bin/sh -e
case "$1" in
start)
#VBoxHeadless -s $2 -v off &
VBoxManage startvm --type headless $2
;;
stop)
VBoxManage controlvm $2 poweroff
;;
*)
echo "Usage: $0 {start|stop} [host]" >&2
exit 1
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment