hashicorp / packer-plugin-vsphere

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

Add support for datastore cluster storage #9

Open ghost opened 3 years ago

ghost commented 3 years ago

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


Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request. If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Description

From the documentation doesn't seems to be possible to have a packer build with the vsphere-iso builder specifying a Storage DRS, only a specific Datastore is allowed. I've tried to set the Storage DRS name as the datastore property but it fails with:

==> vsphere-iso.packer-build-name: error creating vm: datastore 'Storage-DRS-name' not found

Use Case(s)

Usually using the Storage DRS allows to keep the same configuration even if new datastores are added for more storage.

Potential configuration

I'm not sure if new configuration would be required. Packer could first search for Storage DRS and look for a match of the datastore property and if found use it otherwise look for a match of single datastores.

Potential References

https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.resmgmt.doc/GUID-827DBD6D-08B7-4411-9214-9E126671457F.html

tenthirtyam commented 2 years ago

Recommend updating the context of this issue. The enhancement request is the to support a datastore cluster.

https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-A2294106-A2B5-4AE4-8F45-9D22B20B5146.html

Ryan

FlorianLaunay commented 1 year ago

Hi @tenthirtyam. It may be a fantastic feature! Will it be planned in the next milestone ?

DonBower commented 10 months ago

This seems like a highly valued feature. Is there an ETA?

Shackelford-Arden commented 6 months ago

I wanted to note that Terraform currently supports using datastore clusters:

https://registry.terraform.io/providers/hashicorp/vsphere/latest/docs/data-sources/datastore_cluster

Would be nice to be able to follow a similar pattern here in Packer.

tenthirtyam commented 3 months ago

Labels updated. The scope would need cover each of the builders a post-processors.