<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Yes, I had the checkbox marked when I made the template.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>From:</b> Michael Burman [mailto:mburman@redhat.com] <br>
<b>Sent:</b> Tuesday, March 20, 2018 1:37 AM<br>
<b>To:</b> Berger, Sandy <SBERGER@qg.com><br>
<b>Cc:</b> users@ovirt.org; Luca 'remix_tj' Lorenzetto <lorenzetto.luca@gmail.com><br>
<b>Subject:</b> Re: [ovirt-users] Network issues with oVirt 4.2 and cloud-init<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Berger,<o:p></o:p></p>
</div>
<p class="MsoNormal">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.
<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">In order to avoid this, you need to check the 'Seal Template (Linux only)' checkbox in the New Template dialog.<o:p></o:p></p>
</div>
<p class="MsoNormal">Cheers)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Mon, Mar 19, 2018 at 5:56 PM, Luca 'remix_tj' Lorenzetto <<a href="mailto:lorenzetto.luca@gmail.com" target="_blank">lorenzetto.luca@gmail.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">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<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><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" target="_blank">https://bugzilla.redhat.com/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" target="_blank">
https://people.redhat.com/rmccabe/cloud-init/cloud-init-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-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">414.566.2123</a> phone<br>
><br>
> <a href="tel:414.566.4010">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" target="_blank">www.QG.com</a><br>
><br>
><br>
><br>
> Follow Us: Facebook | Twitter | LinkedIn | YouTube<br>
><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">> _______________________________________________<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" target="_blank">http://lists.ovirt.org/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" target="_blank">http://www.remixtj.net</a> , <<a href="mailto:lorenzetto.luca@gmail.com">lorenzetto.luca@gmail.com</a>><br>
_______________________________________________<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" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><b><span style="font-size:10.5pt;text-transform:uppercase">Michael Burman<o:p></o:p></span></b></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:7.5pt;text-transform:uppercase">Senior Quality engineer - rhv network - redhat israel
<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:7.5pt;color:#999999"><a href="https://www.redhat.com" target="_blank"><span style="font-family:"Arial",sans-serif;color:#0088CE;text-decoration:none">Red Hat
<br>
<br>
</span></a><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:7.5pt;color:#999999"><a href="mailto:mburman@redhat.com" target="_blank"><span style="font-family:"Arial",sans-serif;color:#0088CE;text-decoration:none">mburman@redhat.com</span></a> M:
<a href="tel:0545355725" target="_blank"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#0088CE;text-decoration:none">0545355725</span></a> IM: mburman<o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><a href="https://red.ht/sig" target="_blank"><span style="text-decoration:none"><img border="0" width="90" style="width:.9375in" id="_x0000_i1025" src="https://www.redhat.com/files/brand/email/sig-redhat.png"></span></a><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
Follow Us: <a href="http://www.qg.com/social1">Facebook</a> | <a href="http://www.qg.com/social2">
Twitter</a> | <a href="http://www.qg.com/social3">LinkedIn</a> | <a href="http://www.qg.com/social4">
YouTube</a>
</body>
</html>