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 reusing a virtual machine #334

Open Hi-Angel opened 9 months ago

Hi-Angel commented 9 months ago

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 there's no functional to install an ISO to an existing VM. Rephrasing in packer terms: there's no way to build a machine image in vsphere by re-using an existing VM.

As a matter of fact, judging by the lack of answers here, it doesn't seem to be possible for any hypervisor, not just vsphere.

Use Case(s)

Hi-Angel commented 9 months ago

I want to point out that I'm currently working on it. I'm new to both Packer and Go language, but hopefully if resources permit I will have it implemented.

Any advises are welcome.

Hi-Angel commented 9 months ago

Is there a way to avoid the plugin being killed while being paused under gdb?

tenthirtyam commented 4 months ago

I've added the stage/thinking label to this one. This seems to be a rather interesting use case but likely not quite common. Would be good to get community reactions 👍 👎 👀 or thoughts before implementing such feature.