Moved all output of build.sh to a folder: cloudstackroot/tools/appliance/packer/vm/<output_<timestamp>_<buildheader>_virtualbox. Exported packer environment variables PACKER_CACHE_DIR and PACKER_LOG from build.sh. Added cloudstack root directory input paramter to packer build .json template to root the relative directory references.