Skip to content

Instantly share code, notes, and snippets.

@gautamk
Created March 17, 2012 12:15
Show Gist options
  • Save gautamk/2058217 to your computer and use it in GitHub Desktop.
Save gautamk/2058217 to your computer and use it in GitHub Desktop.
A shell Script to start VirtualBox VMs in Various Modes , Useful when placed in ~/bin
#!/bin/zsh
#
# A shell Script to start VirtualBox VMs in Various Modes
# Useful when placed in ~/bin
#
type=""
case $2 in
[g|G] )
type="gui"
;;
[h|H] )
type="headless"
;;
[s|S] )
type="sdl"
;;
esac
echo starting $1 in $type : $2 mode
VBoxManage startvm $1 --type $type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment