BOX_NAME=vagrant-build BASE_DIR="`pwd`/machines" BOX_DIR="${BASE_DIR}/${BOX_NAME}" mkdir -p ${BASE_DIR} VBoxManage createvm --name "${BOX_NAME}" --ostype RedHat_64 --basefolder ${BASE_DIR} VBoxManage registervm "${BOX_DIR}/${BOX_NAME}.vbox"