diff --git a/build_library/vm_image_util.sh b/build_library/vm_image_util.sh index 43731cd0f0..61234cd970 100644 --- a/build_library/vm_image_util.sh +++ b/build_library/vm_image_util.sh @@ -535,7 +535,10 @@ usb.generic.autoconnect = "FALSE" usb.present = "TRUE" rtc.diffFromUTC = 0 EOF - VM_GENERATED_FILES+=( "${vmx_path}" ) + # Only upload the vmx if it won't be bundled + if [[ -z "$(_get_vm_opt BUNDLE_FORMAT)" ]]; then + VM_GENERATED_FILES+=( "${vmx_path}" ) + fi } _write_vmware_zip_conf() { @@ -722,6 +725,11 @@ _write_box_bundle() { mv "${VM_DST_IMG}" "${VM_TMP_DIR}/box" tar -czf "${box}" -C "${VM_TMP_DIR}/box" . + local provider="virtualbox" + if [[ "${VM_IMG_TYPE}" == vagrant_vmware_fusion ]]; then + provider="vmware_fusion" + fi + cat >"${json}" <