nutanix-cloud-native / packer-plugin-nutanix

Packer Builder for Nutanix AHV
https://developer.hashicorp.com/packer/integrations/nutanix-cloud-native/nutanix
Apache License 2.0
31 stars 16 forks source link

Ability to specify scsi id in the template for disks #191

Open darthVikes opened 2 months ago

darthVikes commented 2 months ago
          I would like to request that functionality enhancement for being able to add a disk to a specific scsi id ]  0-4:0-15 ]   Where the first digit is controller #, and the second # is the SCSI id.    That way you can spread IO load over multiple controllers and lign up a specific drive to a specific scsi id so that in the OS side you can match up your drive letter or mount point if Linux.   This solves an issue with designing standard OS configurations and what SCSI ID they should be on.   aka You would know for SQL server specific drive letters  or mounts is always going to be on a specific SCSI ID.

Originally posted by @darthVikes in https://github.com/nutanix-cloud-native/packer-plugin-nutanix/issues/152#issuecomment-2183385601

darthVikes commented 2 months ago

No options here to specify SCSI ID

        "vm_disks": [
          {
            "image_type"        : "ISO_IMAGE",                   
            "source_image_name" : "{{user `linux_iso_image_name`}}",
            "source_image_delete" : "true"
          },
          {
            "image_type"        : "DISK",                   
            "disk_size_gb"      : "1"
          },
          {
            "image_type"        : "DISK",                   
            "disk_size_gb"      : "50"
          },
          {
            "image_type"        : "DISK",                   
            "disk_size_gb"      : "5"
          },
          {
            "image_type"        : "DISK",                   
            "disk_size_gb"      : "2"
          }                                          
        ],