hashicorp / packer-plugin-vsphere

Packer plugin for VMware vSphere Builder
https://www.packer.io/docs/builders/vsphere
Mozilla Public License 2.0
97 stars 93 forks source link

`vsphere-iso`: Add support to set a VM storage policy while configuring hard disks #18

Open ghost opened 3 years ago

ghost commented 3 years ago

This issue was originally opened by @amitbhadra as hashicorp/packer#9525. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.


Feature Description

From the UI, we can select the VM Storage Policy when setting up the details of a Hard disk. This should be possible on Packer too. Possibly something like -

"storage": [
        {
          "disk_size": 34816,
          "disk_controller_index": 0,
          "storage_policy": "<storage-policy-dev>"
        },
        {
          "disk_size": 51200,
          "disk_controller_index": 0,
          "storage_policy": "<storage-policy-prod>"
        }
],

Why do I have "disk_controller_index"? Because this is another use case already covered in https://github.com/hashicorp/packer/issues/9518. I hope the new PR already has the changes from the previous issue I mentioned.

Use Case(s)

Based on whether the VM is dev or prod, the storage policy is changed.

webcompas commented 1 year ago

This issue has been open for more than two years without any update if/when this feature will be added. So adding some information about that would be really appreciated.