Hi Justin,
Make sure that cloud-init is installed and enabled on the VM (before creating a template from it).
The template should be sealed.

Then you can create a VM from it.
There are two options:
1. Edit the VM with cloud-init configuration.
2. Run-Once with cloud-init configuration.

Your changes should persist on the VM. If you are talking specifically about the static network being reverted back (to DHCP), we had a bug on it.
Please make sure your cloud-init version is up to date to be at least 18.5-8 as seen in the bug:
https://bugzilla.redhat.com/1706482

Regards,
Liran.

On Thu, Jun 11, 2020 at 9:45 AM Nathanaël Blanchet <blanchet@abes.fr> wrote:
Sure it is possible, use "run once" setting with cloud-init checkbox to fetch cloud-init settings when you decide and not only at the first boot.

----- Mail original -----
De: "Jp" <justin.obfuscate@gmail.com>
À: "users" <users@ovirt.org>
Envoyé: Jeudi 11 Juin 2020 04:36:16
Objet: [ovirt-users] cloud-init: reverts on reboot

cloud-init settings entered into Hosted Engine are reverting after reboot, so what's the correct workflow for using the UI form?

I'd like a workflow where I can:
1. start with Template (covers most settings)
2. create VM
3. use cloud-init in the UI (for a few settings, like static IP)
4. start/reboot VM and have cloud-init settings stick

How is the above possible?
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/ECHLM4E4Z327XAPDJS5RM6DRM3V4T2JS/
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/YY72LPGSJM5CUETKAXXEUOUUOEMKBP4I/