-
Notifications
You must be signed in to change notification settings - Fork 8
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
Feature: Allow exporting final product as a template rather than VM #16
Comments
@jhenry82 I like the feature, but the implementation is missing some key items to my eye:
To the thought about cleaning the network options, perhaps having an optional parameter called |
I wanted to check in and let you know I didn't (intentionally!) dump this PR and run. The code accomplishes what I selfishly want, but I'm totally onboard to improve the project for the whole community, too. Just been super busy lately. I really appreciate the detailed feedback.
I'll work on a new PR once we agree on all of the above. I'm heading out for a lengthy vacation starting next Friday, so it might be a bit before that hits. But I appreciate you taking the time to own this project and accept and comment on contributions! PS: I noticed there's an unrelated fix to cross-compiling I made while trying to build for Linux on my personal Mac. You might want to commit that regardless.
|
It's probably worthwhile to look at the assumed semantics of each of the builders (which I think I'm going to want to doc anyway).
In terms of personal use, I've used Looking at each of your points ....
btw, the quick export NFS hacks I mentioned are relevant when VMs get large. Without the NFS hacks, you'd have to rely on actually exporting the VDIs from XenServer, and that's a lengthy process (e.g. export in XenCenter time). With the NFS hacks, you have far fewer copy operations on the VHD. -tim |
I'd like to be able to import the final artifact of this plugin into XenServer directly as a template. Rather than suffer the horrible indignity of having to right-click Convert To Template in XenCenter (kidding ;)). But yes, it would be great to automate that step.
I'll submit a PR shortly. It adds a "convert_to_template" boolean that defaults to false. If true, the VM is converted to a template immediately before export. When this is set, I also delete any network interfaces from the VM, since in my personal use case I want the template to be totally generic and not tied to any specific VLAN. I'm open to putting that behavior behind a second option, but it seems to me that if you want a template, you don't want random artifacts of the build process hanging around.
The text was updated successfully, but these errors were encountered: