<div dir="ltr">Hi Jakub, <div><br></div><div>I think I had a similar problem. Vdsm would change the parameters of my network interface even when I used the ovirt management console to change it. There are files that vdsm use to configure the ifcfg-* files in /var/lib/vdsm/persistence/netconf/ovirtmgmt on the virtual server hosts. Maybe you can try fooling around with those. </div><div><br></div><div>Good luck, </div><div>Tyler</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 11, 2015 at 9:08 AM, Jakub Niedermertl <span dir="ltr">&lt;<a href="mailto:jniederm@redhat.com" target="_blank">jniederm@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ahoj,<br>
<br>
I&#39;ve created a bug <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1252534" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1252534</a> and assign it to you.<br>
<br>
Thanks for help<br>
<span class="HOEnZb"><font color="#888888">Jakub<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
----- Original Message -----<br>
&gt; From: &quot;Ondřej Svoboda&quot; &lt;<a href="mailto:ondrej@svobodasoft.cz">ondrej@svobodasoft.cz</a>&gt;<br>
&gt; To: <a href="mailto:users@ovirt.org">users@ovirt.org</a><br>
&gt; Sent: Tuesday, August 11, 2015 2:06:36 PM<br>
&gt; Subject: Re: [ovirt-users] vdsm keeps removing BOOTPROTO=dhcp from ifcfg-ovirtmgmt<br>
&gt;<br>
&gt; Ahoj Kubo,<br>
&gt;<br>
&gt; would you try running &#39;sudo vdsClient -s 0 setSafeNetworkConfig&#39; right<br>
&gt; after restarting the network service? I think your configuration needs<br>
&gt; be persisted in VDSM&#39;s network persistence so it is restored (with the<br>
&gt; same configuration) on startup.<br>
&gt;<br>
&gt; Anyway, VDSM should be used to configure networks (directly using<br>
&gt; vdsClient or indirectly through oVirt engine or via other means -- RPC).<br>
&gt; Your network may be configured by running (assuming your NIC is eth0):<br>
&gt;<br>
&gt; vdsClient -s 0 setupNetworks<br>
&gt; &#39;networks={ovirtmgmt:{nic:eth0,bootproto:dhcp,blockingdhcp:true,bridged:true,stp:false,defaultRoute:false}}&#39;<br>
&gt;<br>
&gt; If this doesn&#39;t help please attach /var/log/vdsm/supervdsm.log or file a<br>
&gt; bug with myself as the assignee :-)<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Ondra<br>
&gt;<br>
&gt; On 11.8.2015 13:04, Jakub Niedermertl wrote:<br>
&gt; &gt; Hi all,<br>
&gt; &gt;<br>
&gt; &gt; I&#39;d like my ovirtmgmt bridge to fetch ip address from dhcp, but vdsm keeps<br>
&gt; &gt; removing &#39;BOOTPROTO=dhcp&#39; from<br>
&gt; &gt; /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt.<br>
&gt; &gt;<br>
&gt; &gt; I set the file as follows:<br>
&gt; &gt;<br>
&gt; &gt;      DEVICE=ovirtmgmt<br>
&gt; &gt;      TYPE=Bridge<br>
&gt; &gt;      DELAY=0<br>
&gt; &gt;      STP=off<br>
&gt; &gt;      ONBOOT=yes<br>
&gt; &gt;      BOOTPROTO=dhcp<br>
&gt; &gt;      MTU=1500<br>
&gt; &gt;      DEFROUTE=no<br>
&gt; &gt;      NM_CONTROLLED=no<br>
&gt; &gt;      IPV6INIT=no<br>
&gt; &gt;<br>
&gt; &gt; call &#39;sudo systemctl restart network&#39; and ip address is successfully<br>
&gt; &gt; assigned. Then reboot the machine and ip address is not fetched and<br>
&gt; &gt; ifcfg-ovirtmgmt looks like this<br>
&gt; &gt;<br>
&gt; &gt;      # Generated by VDSM version 4.17.0-1240.git487a19e.fc22<br>
&gt; &gt;      DEVICE=ovirtmgmt<br>
&gt; &gt;      TYPE=Bridge<br>
&gt; &gt;      DELAY=0<br>
&gt; &gt;      STP=off<br>
&gt; &gt;      ONBOOT=yes<br>
&gt; &gt;      MTU=1500<br>
&gt; &gt;      DEFROUTE=no<br>
&gt; &gt;      NM_CONTROLLED=no<br>
&gt; &gt;      IPV6INIT=no<br>
&gt; &gt;      HOTPLUG=no<br>
&gt; &gt;<br>
&gt; &gt; Is there any way how to prevent vdsm from removing BOOTPROTO statement or<br>
&gt; &gt; make ovirtmgmt to work with dhcp?<br>
&gt; &gt;<br>
&gt; &gt; Environment:<br>
&gt; &gt; Host: runs in virt-manager vm, Fedora 22<br>
&gt; &gt; vdsm: 4.17.0-1240.git487a19e.fc22 from<br>
&gt; &gt; <a href="http://resources.ovirt.org/pub/ovirt-3.6-pre/rpm/fc$releasever/" rel="noreferrer" target="_blank">http://resources.ovirt.org/pub/ovirt-3.6-pre/rpm/fc$releasever/</a><br>
&gt; &gt;<br>
&gt; &gt; Thanks.<br>
&gt; &gt;<br>
&gt; &gt; Jakub<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Users mailing list<br>
&gt; &gt; <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
&gt; &gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
&gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
&gt;<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" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>