Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to deploy OVF/VM template from Content Library in vsphere-clone #61

Closed
ghost opened this issue May 7, 2021 · 2 comments
Closed

Comments

@ghost
Copy link

ghost commented May 7, 2021

This issue was originally opened by @blind-gh0st as hashicorp/packer#11000. 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

Currently Packer's vsphere-clone builder allows the creation of a new VM from a template using the template: keyword in the JSON configuration. However, should one define a template using a Content Library path Packer cannot find the template. This feature request is to add the ability to define a template from a Content Library for Packer to deploy.

Use Case(s)

Use case would be any time someone is wanting to deploy a VM to a clustered environment. Having a shared Content Library is useful for those configurations and Packer already supports the ability to use Content Libraries for ISOs in vsphere-iso. This would be similar functionality, just using VM templates in vsphere-clone.

Potential configuration

It seems govc already supports doing this using the library.deploy command and giving a path. We may need a new keyword to differentiate between a Content Library path and the VM template functionality already present.

Potential References

https://github.com/vmware/govmomi/blob/master/govc/USAGE.md
https://discuss.hashicorp.com/t/is-it-possible-to-use-an-ovf-template-from-vspheres-content-library-for-vsphere-clone/24117

@sylviamoss
Copy link
Contributor

Duplicate of #43

@sylviamoss sylviamoss marked this as a duplicate of #43 May 11, 2021
@azr
Copy link
Contributor

azr commented Aug 18, 2021

Closing in favor of #43

@azr azr closed this as completed Aug 18, 2021
hmalphettes pushed a commit to hmalphettes/packer-plugin-vsphere that referenced this issue May 7, 2022
* CDConfig: Add cd_content for file templating + tests

Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
@hashicorp hashicorp locked and limited conversation to collaborators Jun 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants