<div dir="ltr"><div><div><div>Hi Berger,<br><br></div>Have you sealed the template? if you didn't sealed the template on creation, then your new VM has the same ifcfg-eth0 settings as your origin VM. <br></div>In order to avoid this, you need to check the 'Seal Template (Linux only)' checkbox in the New Template dialog.<br><br></div>Cheers)<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 19, 2018 at 5:56 PM, Luca 'remix_tj' Lorenzetto <span dir="ltr"><<a href="mailto:lorenzetto.luca@gmail.com" target="_blank">lorenzetto.luca@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Sandy,<br>
<br>
i had the same issue and the cause was cloud-init running again at<br>
boot even if Run-Once hasn't been selected as boot option. The way i'm<br>
using to solve the problem is to remove cloud-init after the first<br>
run, since we don't need it anymore.<br>
<br>
In case also disabling is enoug:<br>
<br>
touch /etc/cloud/cloud-init.disabled<br>
<br>
Luca<br>
<div><div class="h5"><br>
On Mon, Mar 19, 2018 at 2:17 PM, Berger, Sandy <<a href="mailto:SBERGER@qg.com">SBERGER@qg.com</a>> wrote:<br>
> We’re using cloud-init to customize VMs built from a template. We’re using<br>
> static IPV4 settings so we’re specifying an IP address, subnet mask, and<br>
> gateway. There is apparently a bug in the current version of cloud-init<br>
> shipping as part of CentOS 7.4<br>
> (<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1492726" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/<wbr>show_bug.cgi?id=1492726</a>) that fails to set the<br>
> gateway properly. In the description of the bug, it says it is fixed in RHEL<br>
> 7.5 but also says one can use<br>
> <a href="https://people.redhat.com/rmccabe/cloud-init/cloud-init-0.7.9-20.el7.x86_64.rpm" rel="noreferrer" target="_blank">https://people.redhat.com/<wbr>rmccabe/cloud-init/cloud-init-<wbr>0.7.9-20.el7.x86_64.rpm</a><br>
> which is what we’re doing.<br>
><br>
><br>
><br>
> When the new VM first boots, the 3 IPv4 settings are all set correctly.<br>
> Reboots of the VM maintain the settings properly. But, if the VM is shut<br>
> down and started again via the oVirt GUI, all of the IPV4 settings on the<br>
> eth0 virtual NIC are lost and the /etc/sysconfig/network-<wbr>scripts/ifcfg-eth0<br>
> shows that the NIC is now set up for DHCP.<br>
><br>
><br>
><br>
> Are we doing something incorrectly?<br>
><br>
><br>
><br>
> Sandy Berger<br>
><br>
> IT – Infrastructure Engineer II<br>
><br>
><br>
><br>
> Quad/Graphics<br>
><br>
> Performance through Innovation<br>
><br>
><br>
><br>
> Sussex, Wisconsin<br>
><br>
> <a href="tel:414.566.2123" value="+14145662123">414.566.2123</a> phone<br>
><br>
> <a href="tel:414.566.4010" value="+14145664010">414.566.4010</a>/2123 pager/PIN<br>
><br>
><br>
><br>
> <a href="mailto:sandy.berger@qg.com">sandy.berger@qg.com</a><br>
><br>
> <a href="http://www.QG.com" rel="noreferrer" target="_blank">www.QG.com</a><br>
><br>
><br>
><br>
> Follow Us: Facebook | Twitter | LinkedIn | YouTube<br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> Users mailing list<br>
> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
><br>
<br>
<br>
<br>
--<br>
"E' assurdo impiegare gli uomini di intelligenza eccellente per fare<br>
calcoli che potrebbero essere affidati a chiunque se si usassero delle<br>
macchine"<br>
Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)<br>
<br>
"Internet è la più grande biblioteca del mondo.<br>
Ma il problema è che i libri sono tutti sparsi sul pavimento"<br>
John Allen Paulos, Matematico (1945-vivente)<br>
<br>
Luca 'remix_tj' Lorenzetto, <a href="http://www.remixtj.net" rel="noreferrer" target="_blank">http://www.remixtj.net</a> , <<a href="mailto:lorenzetto.luca@gmail.com">lorenzetto.luca@gmail.com</a>><br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>
<p style="font-weight:bold;margin:0;padding:0;font-size:14px;text-transform:uppercase;margin-bottom:0"><span>Michael </span> <span>Burman</span></p>
<p style="font-weight:normal;font-size:10px;margin:0px 0px 4px;text-transform:uppercase"><span>Senior Quality engineer - rhv network - redhat israel </span><span style="font-weight:normal;color:#aaa;margin:0"></span></p>
<p style="font-weight:normal;margin:0;font-size:10px;color:#999"><a style="color:#0088ce;font-size:10px;margin:0;text-decoration:none;font-family:'overpass',sans-serif" href="https://www.redhat.com" target="_blank">Red Hat <span><br><br></span></a></p>
<p style="font-weight:normal;margin:0px 0px 6px;font-size:10px;color:rgb(153,153,153)"><span style="margin:0px;padding:0px">
<a style="color:#0088ce;font-size:10px;margin:0;text-decoration:none;font-family:'overpass',sans-serif" href="mailto:mburman@redhat.com" target="_blank">mburman@redhat.com</a> </span>
<span>M: <a href="tel:0545355725" style="color:#0088ce;font-size:11px;margin:0;text-decoration:none;font-family:'overpass',sans-serif" target="_blank">0545355725</a> </span>
<span>IM: <span>mburman</span></span></p>
<table border="0"><tbody><tr><td width="100px"><a href="https://red.ht/sig" target="_blank"> <img src="https://www.redhat.com/files/brand/email/sig-redhat.png" width="90" height="auto"></a> </td>
</tr></tbody></table>
</div></div></div></div></div>
</div>