<div dir="ltr"><div><div><div><div><div><div><div><div>Hi Sandy,<br></div><br></div>Can you elaborate some more about the steps you have taken?<br><br></div>Specifically, how\where do you apply cloud-init-0.7.9-20 rpm? Can you make sure that rpm -q cloud-init after VM reboot is still this one?<br><br></div>How do you apply the static IP settings that do persist to the VM - via oVirt web-admin\REST API\other?<br><br></div>When you restart the VM via oVirt GUI - do you 'Run' it or 'Run Once'?<br><br></div>Thanks,<br></div>Eitan<br></div>oVirt networking team<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 20, 2018 at 10:22 AM, Dominik Holler <span dir="ltr"><<a href="mailto:dholler@redhat.com" target="_blank">dholler@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Begin forwarded message:<br>
<br>
Date: Mon, 19 Mar 2018 13:17:08 +0000<br>
From: "Berger, Sandy" <<a href="mailto:SBERGER@qg.com">SBERGER@qg.com</a>><br>
To: "<a href="mailto:users@ovirt.org">users@ovirt.org</a>" <<a href="mailto:users@ovirt.org">users@ovirt.org</a>><br>
Subject: [ovirt-users] Network issues with oVirt 4.2 and cloud-init<br>
<br>
<br>
We're using cloud-init to customize VMs built from a template. We're<br>
using static IPV4 settings so we're specifying an IP address, subnet<br>
mask, and gateway. There is apparently a bug in the current version of<br>
cloud-init 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<br>
the gateway properly. In the description of the bug, it says it is<br>
fixed in RHEL 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>
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<br>
shut down and started again via the oVirt GUI, all of the IPV4 settings<br>
on the eth0 virtual NIC are lost and<br>
the /etc/sysconfig/network-<wbr>scripts/ifcfg-eth0 shows that the NIC is now<br>
set up for DHCP.<br>
<br>
Are we doing something incorrectly?<br>
<br>
Sandy Berger<br>
IT - Infrastructure Engineer II<br>
<br>
Quad/Graphics<br>
Performance through Innovation<br>
<br>
Sussex, Wisconsin<br>
<a href="tel:414.566.2123" value="+14145662123">414.566.2123</a> phone<br>
<a href="tel:414.566.4010" value="+14145664010">414.566.4010</a>/2123 pager/PIN<br>
<br>
<a href="mailto:sandy.berger@qg.com">sandy.berger@qg.com</a><mailto:<a href="mailto:sandy.berger@qg.com">san<wbr>dy.berger@qg.com</a>><br>
<a href="http://www.QG.com" rel="noreferrer" target="_blank">www.QG.com</a><<a href="http://www.qg.com/" rel="noreferrer" target="_blank">http://www.qg.com/</a>><br>
<br>
Follow Us: Facebook<<a href="http://www.qg.com/social1" rel="noreferrer" target="_blank">http://www.qg.com/<wbr>social1</a>> |<br>
Twitter<<a href="http://www.qg.com/social2" rel="noreferrer" target="_blank">http://www.qg.com/<wbr>social2</a>> |<br>
LinkedIn<<a href="http://www.qg.com/social3" rel="noreferrer" target="_blank">http://www.qg.com/<wbr>social3</a>> | YouTube<<a href="http://www.qg.com/social4" rel="noreferrer" target="_blank">http://www.qg.com/<wbr>social4</a>><br>
<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>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Eitan Raviv<br>IRC: erav (#ovirt #vdsm #devel #rhev-dev)<br></div></div></div></div>
</div>