Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
This is a simple string template approach to OVA generation inspired by feedback from Ben and Benjamin on how they do this in Container Linux and Ubuntu. The template in this PR merges some XML fragments from Container Linux related to the guest parameters with the core XML that is output by Image Factory when generating OVA files.
With this, right now, by hand, you should be able to:
And then import
I've made a few fixups and was able to boot a recent RHCOS image on vSphere using the output.
It even prompted me for the various properties, for which I provided a known-working ignition file used for local testing. Unfortunately, the key injection does not seem to have worked, but that is likely an image-level issue not an issue with this small script.
With the latest changes to the XML, this now generates an OVA output that crawford and I were able to import, provide an ignition file via user data, and log into using the injected SSH key.
Although this is not yet wired in to the rest of the assembler, it's working. I've removed the WIP.