diff --git a/build_library/vm_image_util.sh b/build_library/vm_image_util.sh index 5ace40139f..3d72f01311 100644 --- a/build_library/vm_image_util.sh +++ b/build_library/vm_image_util.sh @@ -31,6 +31,7 @@ VALID_IMG_TYPES=( azure hyperv secure_demo + niftycloud ) #list of oem package names, minus the oem- prefix @@ -48,6 +49,7 @@ VALID_OEM_PACKAGES=( vagrant vagrant-key vmware + niftycloud ) # Set at runtime to one of the above types @@ -219,6 +221,12 @@ IMG_secure_demo_PARTITIONED_IMG=0 IMG_secure_demo_DISK_FORMAT=secure_demo IMG_secure_demo_CONF_FORMAT=qemu_uefi +## niftycloud +IMG_niftycloud_DISK_FORMAT=vmdk_scsi +IMG_niftycloud_DISK_LAYOUT=vm +IMG_niftycloud_CONF_FORMAT=niftycloud +IMG_niftycloud_OEM_PACKAGE=oem-niftycloud + ########################################################### # Validate and set the vm type to use for the rest of the functions @@ -826,6 +834,55 @@ _write_gce_conf() { VM_GENERATED_FILES=( "${tar_path}" ) } +_write_niftycloud_conf() { + local vm_mem="${1:-$(_get_vm_opt MEM)}" + local src_name=$(basename "$VM_SRC_IMG") + local dst_name=$(basename "$VM_DST_IMG") + local dst_dir=$(dirname "$VM_DST_IMG") + local vmx_path="${dst_dir}/$(_src_to_dst_name "${src_name}" ".vmx")" + cat >"${vmx_path}" <