Vsphere-iso: how to set 'SCSI Bus Sharing' to 'Virtual' type in Packer json file?


I am using Packer to generate a Linux VM template on VMware vCenter, and need add one SCSI controller and set ‘SCSI Bus Sharing’ to ‘Virtual’ type for some disks.

SCSI Controller Type - VMware Paravirtual
SCSI Bus Sharing - Virtual

I checked the Packer documents ‘VSphere ISO - Builders | Packer by HashiCorp’, looks no options to set type for ‘SCSI Bus Sharing’.

Could anyone share some information how I can set 'SCSI Bus Sharing" in Packer json file?


With the vmware-iso building you can easily customize any setting in the vmx file with vmx_data. With vsphere-iso looks like you need to use VSphere ISO - Builders | Packer by HashiCorp

Some related discussion here as well. Add remove_cdrom to vmware-iso · Issue #10704 · hashicorp/packer · GitHub