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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for reusing a virtual machine #334

Open
Hi-Angel opened this issue Dec 1, 2023 · 3 comments 路 May be fixed by #344
Open

Add support for reusing a virtual machine #334

Hi-Angel opened this issue Dec 1, 2023 · 3 comments 路 May be fixed by #344
Assignees
Labels
builder/vsphere-iso Builder: vsphere-iso enhancement stage/needs-discussion stage/thinking Flagged for internal discussions about possible enhancements.
Milestone

Comments

@Hi-Angel
Copy link
Contributor

Hi-Angel commented Dec 1, 2023

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)

  • Limiting the existing VMs to certain number of pre-created ones. packer is for automated VMs creation, and if there's a bug in the logic that calls packer, there may be an explosion of creating new VMs.
  • (our usecase) working around missing functionality in the plugin. For example, there's currently no way to create a pair of VMs connected as an active/active or active/passive cluster (that is having VMs with simultaneous access to the same "disk" or rather "disk file"). Such functional is also difficult to implement because it does not work well in vSphere to start with. E.g. if you try to destroy such VM that shares a disk you'll get a vague concurrent access error.
@Hi-Angel
Copy link
Contributor Author

Hi-Angel commented Dec 1, 2023

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
Copy link
Contributor Author

Hi-Angel commented Dec 1, 2023

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

@Hi-Angel Hi-Angel linked a pull request Dec 7, 2023 that will close this issue
2 tasks
@tenthirtyam tenthirtyam added the stage/thinking Flagged for internal discussions about possible enhancements. label Apr 13, 2024
@tenthirtyam tenthirtyam added this to the Backlog milestone Apr 17, 2024
@tenthirtyam tenthirtyam added the builder/vsphere-iso Builder: vsphere-iso label Apr 25, 2024
@tenthirtyam
Copy link
Collaborator

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.

@tenthirtyam tenthirtyam changed the title Reusing a Virtual Machine Add support for reusing a virtual machine May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builder/vsphere-iso Builder: vsphere-iso enhancement stage/needs-discussion stage/thinking Flagged for internal discussions about possible enhancements.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants