020-set-machine-folder
#!/bin/bash
#
# Sets Machine folder to the defined folder structure
#
if [ "$UID" -eq 0 ]
  then echo "This script should NOT be run as root."
  exit 1
fi
#
# Source config file
if [ ! -f ~/.vbconfig ]; then
    echo "Config File ~/.vbconfig not found!"
    echo "Run: set-folders to create .vbconfig"
    exit 1
fi
. ~/.vbconfig
#
echo
echo "The following is completed by the script:
       (1) Set's the machinefolder property to the dir
       (2) Set's MaxGuestResolution global property
"
echo
read -p "Press [Enter] key to start or Ctrl-C to break and update script ..."
echo
#
echo
echo "Setting default VirtualBox location ..."
VBoxManage setproperty machinefolder $VB_VMS_LOC
#
echo
echo "Setting to Allow ANY guest resolution global property"
VBoxManage setextradata global GUI/MaxGuestResolution any
#
echo
echo "Done!"
#
exit

QR Code
QR Code scripts:020-set-machine-folder (generated for current page)