Template for Ubuntu 18.04 Server Issues

I have built a system as a template on oVirt. Specifically, Ubuntu 18.04 server. I am noticing an issue when creating new vms from that template. I used the check box for "seal template" when creating the template. When I create a new Ubuntu VM I am getting duplicate IP addresses for all the machines created from the template. It seems like the checkbox doesn't fully function as intended. I would need to do further manual steps to clear up this issue. Has anyone else noticed this behavior? Is this expected or have I missed something? Thanks for your input!

On January 28, 2020 7:37:44 PM GMT+02:00, jeremy_tourville@hotmail.com wrote:
I have built a system as a template on oVirt. Specifically, Ubuntu 18.04 server. I am noticing an issue when creating new vms from that template. I used the check box for "seal template" when creating the template.
When I create a new Ubuntu VM I am getting duplicate IP addresses for all the machines created from the template.
It seems like the checkbox doesn't fully function as intended. I would need to do further manual steps to clear up this issue.
Has anyone else noticed this behavior? Is this expected or have I missed something?
Thanks for your input! _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/RKDPPLDO6R4PXX...
Hi, Are you using dhcp ? If yes, thrn - this should not happen. When you create a new VM , please check the MAC address of the VM ? Also you can try to run 'virt-sysprep' on the Template's disk and check the output for errors. Best Regards, Sttrahil Nikolov

Yes, I am using DHCP. I'll review the MAC address and try running virt-sysprep and report back.

I have seen the same problem. Even confirmed that MAC address are different on VM's. I am using a DSHP server. How do you use the virt-sysprep command? is executed from ovirt-master / vm? how do you select the template though? I'm at the same point as you, not sure if this is expected behave or missing something.

Good morning, I think the location of the client lease file has changed from 16.04 to 18.04 when moving to netplan. I think, after creating a template, this file should be deleted, otherwise the client may reuse the old IP... 18.04 and above: /run/systemd/netif/leases/ below: /var/lib/dhcp/ BR Florian ----- Ursprüngliche Mail ----- Von: "Miguel Garcia" <miguel.garcia@toshibagcs.com> An: "users" <users@ovirt.org> Gesendet: Dienstag, 24. August 2021 02:46:31 Betreff: [ovirt-users] Re: Template for Ubuntu 18.04 Server Issues I have seen the same problem. Even confirmed that MAC address are different on VM's. I am using a DSHP server. How do you use the virt-sysprep command? is executed from ovirt-master / vm? how do you select the template though? I'm at the same point as you, not sure if this is expected behave or missing something. _______________________________________________ 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/4TGAQLCQIKJ6UV...

Hi Miguel, The virt-sysprep command seals a VM when building it on a standalone KVM host. Creating a template using the Make Template option in the VMs page automatically seals the VM during this process. Anyway, in a standalone KVM host, gracefully shut down the VM and run the command as follows: # virt-sysprep -d <vm-name> Regards, Marcos -----Original Message----- From: Miguel Garcia <miguel.garcia@toshibagcs.com> Sent: segunda-feira, 23 de agosto de 2021 21:47 To: users@ovirt.org Subject: [External] : [ovirt-users] Re: Template for Ubuntu 18.04 Server Issues I have seen the same problem. Even confirmed that MAC address are different on VM's. I am using a DSHP server. How do you use the virt-sysprep command? is executed from ovirt-master / vm? how do you select the template though? I'm at the same point as you, not sure if this is expected behave or missing something. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://urldefense.com/v3/__https://www.ovirt.org/privacy-policy.html__;!!AC... oVirt Code of Conduct: https://urldefense.com/v3/__https://www.ovirt.org/community/about/community-... List Archives: https://urldefense.com/v3/__https://lists.ovirt.org/archives/list/users@ovir...

Found out a workaround, please check this link. It worked for us: https://kb.vmware.com/s/article/82229

Found out a workaround, please check this link. It worked for us: https://kb.vmware.com/s/article/82229
Which oVirt version are we talking about? With oVirt 4.4.7 the machine-id should be reset properly for each VM as we run virt-sysprep also when creating the VM from template (unless it is in pool I think). See semi-related bug: https://bugzilla.redhat.com/1887434 Hope this helps, Tomas On Wed, Aug 25, 2021 at 09:55:35PM -0000, Miguel Garcia wrote:
_______________________________________________ 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/LCDSV775KOAMGH...
-- Tomáš Golembiovský <tgolembi@redhat.com>
participants (6)
-
Florian Schmid
-
jeremy_tourville@hotmail.com
-
Marcos Sungaila
-
Miguel Garcia
-
Strahil Nikolov
-
Tomáš Golembiovský