Also, you need to be aware of the fact that the engine applies the cloud-init configuration only when you start the VM first time. So the scenario must be:
  1. Create a VM for template
  2. Install and enable on it cloud-init and seal it
  3. Make template from the VM
  4. Make new VM from the template and fill all relevant cloud-init parameters
  5. Start the VM
If you do not sure if the VM attached the cloud-init file you can check VM devices via # virsh -r dumpxml <vm_id_or_name>
Best Regards

On Thu, Mar 23, 2017 at 5:33 PM, Endre Karlson <endre.karlson@gmail.com> wrote:
Yeah i tried that with ubuntu but it looks to just fail whebmn it starts the vm because it tries to contact the metadata api instead of using the cdrom source

23. mar. 2017 4:26 p.m. skrev "Artyom Lukianov" <alukiano@redhat.com>:
Just be sure that the cloud-init service enabled before you create the template, otherwise it will fail to initialize a VM.
Best Regards

On Thu, Mar 23, 2017 at 1:06 PM, Endre Karlson <endre.karlson@gmail.com> wrote:
Hi, is there any prerequisite setup on a Ubuntu vm that is turned into a template that needs to be done except installing cloud init packages and sealing the template?

Endre

_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users