Ovirt and packer integration

Hi All, we're checking some integration with packer and ovirt to automatically generate templates for the golden image used by terraform. We found this outdated repo https://github.com/ganto/packer-builder-ovirt. Could you help us to verify the possibility to integrate Ovirt 4 with Hashicorp Packer? Thanks, Marcello

Hi Marcello, I was looking for this functionality and bumped on to the above link as well. Just curios to know, how do you do this currently, if not using the above github code? I currently use ansible to create a temporary vm and create a template out of it (ansible modules ovirt.ovirt.ovirt_vm and ovirt.ovirt.ovirt_template). Apologies for barging into your post. Regards

On 12/06/2023 11:11, destfinal--- via Users wrote:
Hi Marcello,
I was looking for this functionality and bumped on to the above link as well. Just curios to know, how do you do this currently, if not using the above github code?
I currently use ansible to create a temporary vm and create a template out of it (ansible modules ovirt.ovirt.ovirt_vm and ovirt.ovirt.ovirt_template).
Apologies for barging into your post.
Hi guys, Another approach is to "packer" with qemu and use ansible to upload/convert to template the result. That's how we do to build our golden images. Renaud

Hi @Renaud, thanks for sharing your approach. One issue, I see (and experienced) with that approach is, you are forced to have your CI on bare-metal (as packer would spin up an emulator which is a problem requiring nested VMs); you cant have a hyperconverged solution or host the CI/CD on cloud which I was trying earlier.

In my case I use vmware to generate the OVF template and I import it via virt-2-v scripts.
participants (3)
-
cello86@gmail.com
-
destfinal@googlemail.com
-
Renaud