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

vsphere-clone: Add support to clone a VM from a template in a content library #43

Open
ghost opened this issue Apr 15, 2021 · 15 comments
Open
Assignees
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Apr 15, 2021

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


Please search the existing issues for relevant feature requests, and use the
reaction feature
(https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/)
to add upvotes to pre-existing requests.

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

As a user of the vsphere-clone builder I would like the ability to create a vm from an existing vm template in a content library.

Use Case(s)

We use the content library to store our base OS OVF images and need to be able to utilize these templates to layer on solution specific software leveraging the vsphere-clone builder.

Potential configuration

Utilizing the same configuration item, additionally search in all content libraries for the template name

template (string) - Name of source VM. Path is optional.

Potential References

@ghost
Copy link

ghost commented Sep 17, 2021

Hi community, Any expected ETA on this item?
Would be a great addition to our realm at the moment.

@RP-TSB
Copy link

RP-TSB commented Sep 21, 2021

Hello Team, at least an initial response would be nice to know that you are having this issue under your radar.
I recently changed our pipeline to import our resulting templates as OVF into the Content Library and realizing it later can't be used for a subsequent stage was highly disappointing. Many thanks in advance.

@outhex
Copy link

outhex commented Feb 22, 2022

Hi, any ETA on this?

@fbecker
Copy link

fbecker commented May 4, 2022

Any news on this? We desperately need this feature...

hmalphettes pushed a commit to hmalphettes/packer-plugin-vsphere that referenced this issue May 7, 2022
@teadur
Copy link

teadur commented May 24, 2022

Would be nice addition to my setup aswell.
@hmalphettes are you working on it ?

@hmalphettes
Copy link
Contributor

@teadur I am not working on this feature at the moment. I think github picked up a reference to my fork when I ran a rebase.
Sorry to leave you hanging here.

@teadur
Copy link

teadur commented Aug 11, 2022

@teadur I am not working on this feature at the moment. I think github picked up a reference to my fork when I ran a rebase. Sorry to leave you hanging here.

no worries, I hope you get back to it at one point.

@fbecker
Copy link

fbecker commented Oct 17, 2022

Just wanted to let you folks know that I'm currently working on this. I have an implementation ready that uses the existing vsphere-clone builder but I'm wondering if it would be more convenient to split this functionality into a new builder, as there are quite a few features (OVF network mappings, OVF properties etc.) that do no apply to regular vm cloning. Also, if there is a need for deploying from local OVF/OVA files, this might be easier to account for.

Any thoughts on this would be greatly appreciated!

@freimer
Copy link

freimer commented Oct 30, 2022

We need this also. As far as a new builder, I'm not sure. Documentation on the existing builder says you can include vapp properties, which should cover any properties in the OVF/OVA. Is the implementation you have ready available in a pre-release or branch we can pull and test?

@tenthirtyam tenthirtyam added builder/vsphere-clone Builder: vsphere-clone and removed builder/vsphere-iso Builder: vsphere-iso labels Nov 4, 2022
@tenthirtyam tenthirtyam changed the title Vsphere Clone Builder: Clone a VM from a template in a Content Library vsphere-clone: Add support to clone a VM from a template in a content library Nov 5, 2022
@psmola
Copy link

psmola commented Nov 22, 2022

I tested functionality for type vsphere-clone and I tried clone from existing Content library object but I received error: The provided source virtual machine ID vm-9083 is from a virtual machine template, which is not supported.

As I understand - know it's not possible to clone from existing CL template?

@tenthirtyam
Copy link
Collaborator

As I understand - know it's not possible to clone from existing CL template?

@psmola - correct, this is tracked as an enhancement per the attached issue labels.

@teadur
Copy link

teadur commented Feb 16, 2023

+1 for the new Builder

Just wanted to let you folks know that I'm currently working on this. I have an implementation ready that uses the existing vsphere-clone builder but I'm wondering if it would be more convenient to split this functionality into a new builder, as there are quite a few features (OVF network mappings, OVF properties etc.) that do no apply to regular vm cloning. Also, if there is a need for deploying from local OVF/OVA files, this might be easier to account for.

Any thoughts on this would be greatly appreciated!

@fbecker How are you doing, can we help you with the testing somehow ?

@RDG88
Copy link

RDG88 commented Jun 27, 2023

Would love this feature!

@cybops35
Copy link

cybops35 commented Dec 5, 2023

+1 for this feature 🙏

@sich97
Copy link

sich97 commented Dec 11, 2023

Just wanted to let you folks know that I'm currently working on this. I have an implementation ready that uses the existing vsphere-clone builder but I'm wondering if it would be more convenient to split this functionality into a new builder, as there are quite a few features (OVF network mappings, OVF properties etc.) that do no apply to regular vm cloning. Also, if there is a need for deploying from local OVF/OVA files, this might be easier to account for.

Any thoughts on this would be greatly appreciated!

@fbecker Hi. Any way I could help out? This feature would be very useful indeed

@tenthirtyam tenthirtyam added this to the Backlog milestone Apr 17, 2024
@tenthirtyam tenthirtyam self-assigned this Apr 28, 2024
@tenthirtyam tenthirtyam added stage/accepted Confirmed, and intend to work on. No timeline commitment though. and removed stage/accepted Confirmed, and intend to work on. No timeline commitment though. labels Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests