<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"><<a href="mailto:jniederm@redhat.com" target="_blank">jniederm@redhat.com</a>></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'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>
> From: "Ondřej Svoboda" <<a href="mailto:ondrej@svobodasoft.cz">ondrej@svobodasoft.cz</a>><br>
> To: <a href="mailto:users@ovirt.org">users@ovirt.org</a><br>
> Sent: Tuesday, August 11, 2015 2:06:36 PM<br>
> Subject: Re: [ovirt-users] vdsm keeps removing BOOTPROTO=dhcp from ifcfg-ovirtmgmt<br>
><br>
> Ahoj Kubo,<br>
><br>
> would you try running 'sudo vdsClient -s 0 setSafeNetworkConfig' right<br>
> after restarting the network service? I think your configuration needs<br>
> be persisted in VDSM's network persistence so it is restored (with the<br>
> same configuration) on startup.<br>
><br>
> Anyway, VDSM should be used to configure networks (directly using<br>
> vdsClient or indirectly through oVirt engine or via other means -- RPC).<br>
> Your network may be configured by running (assuming your NIC is eth0):<br>
><br>
> vdsClient -s 0 setupNetworks<br>
> 'networks={ovirtmgmt:{nic:eth0,bootproto:dhcp,blockingdhcp:true,bridged:true,stp:false,defaultRoute:false}}'<br>
><br>
> If this doesn't help please attach /var/log/vdsm/supervdsm.log or file a<br>
> bug with myself as the assignee :-)<br>
><br>
> Thanks,<br>
> Ondra<br>
><br>
> On 11.8.2015 13:04, Jakub Niedermertl wrote:<br>
> > Hi all,<br>
> ><br>
> > I'd like my ovirtmgmt bridge to fetch ip address from dhcp, but vdsm keeps<br>
> > removing 'BOOTPROTO=dhcp' from<br>
> > /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt.<br>
> ><br>
> > I set the file as follows:<br>
> ><br>
> > DEVICE=ovirtmgmt<br>
> > TYPE=Bridge<br>
> > DELAY=0<br>
> > STP=off<br>
> > ONBOOT=yes<br>
> > BOOTPROTO=dhcp<br>
> > MTU=1500<br>
> > DEFROUTE=no<br>
> > NM_CONTROLLED=no<br>
> > IPV6INIT=no<br>
> ><br>
> > call 'sudo systemctl restart network' and ip address is successfully<br>
> > assigned. Then reboot the machine and ip address is not fetched and<br>
> > ifcfg-ovirtmgmt looks like this<br>
> ><br>
> > # Generated by VDSM version 4.17.0-1240.git487a19e.fc22<br>
> > DEVICE=ovirtmgmt<br>
> > TYPE=Bridge<br>
> > DELAY=0<br>
> > STP=off<br>
> > ONBOOT=yes<br>
> > MTU=1500<br>
> > DEFROUTE=no<br>
> > NM_CONTROLLED=no<br>
> > IPV6INIT=no<br>
> > HOTPLUG=no<br>
> ><br>
> > Is there any way how to prevent vdsm from removing BOOTPROTO statement or<br>
> > make ovirtmgmt to work with dhcp?<br>
> ><br>
> > Environment:<br>
> > Host: runs in virt-manager vm, Fedora 22<br>
> > vdsm: 4.17.0-1240.git487a19e.fc22 from<br>
> > <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>
> ><br>
> > Thanks.<br>
> ><br>
> > Jakub<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>
> ><br>
><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>
><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>