diff --git a/labs/config/provider.virtualbox b/labs/config/provider.virtualbox index 39480269..ff948a85 100644 --- a/labs/config/provider.virtualbox +++ b/labs/config/provider.virtualbox @@ -15,4 +15,7 @@ # VirtualBox VM group : ${VM_GROUP:=oslabs} +# VirtualBox VM GUI type +: ${VM_UI:=headless} + # vim: set ai ts=4 sw=4 et ft=sh: diff --git a/labs/osbash.sh b/labs/osbash.sh index e94e83fe..c4ae697f 100755 --- a/labs/osbash.sh +++ b/labs/osbash.sh @@ -62,6 +62,7 @@ function print_config { echo "VM access method: $VM_ACCESS" + # GUI is the VirtualBox default echo "GUI type: ${VM_UI:-gui}" fi @@ -86,8 +87,7 @@ while getopts :be:g:hnw opt; do if [[ "$OPTARG" =~ (headless|gui|sdl) ]]; then VM_UI=$OPTARG else - echo "Error: -g argument must be gui (default), sdl, or" \ - "headless" + echo "Error: -g argument must be gui, sdl, or headless" exit fi ;;