<div dir="ltr"><div>Hi Dan,<br><br></div>I have attached the screenshot of the console, please check it.<br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><span>-- <br></span>Regards
<br>Shanil
</div></div>
<br><br><div class="gmail_quote">On Thu, Aug 28, 2014 at 4:46 PM, Dan Kenigsberg <span dir="ltr">&lt;<a href="mailto:danken@redhat.com" target="_blank">danken@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">
<div class="HOEnZb"><div class="h5">On Thu, Aug 28, 2014 at 01:50:22PM +0530, Shanil S wrote:<br>
&gt; Hi Aill,<br>
&gt;<br>
&gt; We are creating two nics using the api, but it seems the second network is<br>
&gt; not come up and the first one is working. The following xml is used to for<br>
&gt; the nic creation<br>
&gt;<br>
&gt; &lt;nic&gt;<br>
&gt;     &lt;interface&gt;virtio&lt;/interface&gt;<br>
&gt;     &lt;name&gt;eth0&lt;/name&gt;<br>
&gt;     &lt;boot_protocol&gt;static&lt;/boot_protocol&gt;<br>
&gt;     &lt;mac address=&#39;&quot;.$ip-&gt;mac_address.&quot;&#39;/&gt;<br>
&gt;     &lt;network&gt;<br>
&gt;      &lt;ip address=&#39;&quot;.$ip-&gt;mac_ip.&quot;&#39; netmask=&#39;255.255.255.0&#39;<br>
&gt; gateway=&#39;&quot;.$ip-&gt;mac_gateway.&quot;&#39;/&gt;<br>
&gt;     &lt;/network&gt;<br>
&gt;     &lt;on_boot&gt;true&lt;/on_boot&gt;<br>
&gt;     &lt;vnic_profile id=&#39;bbabc471-667d-4221-bc8e-4ab30b3dcc34&#39; /&gt;<br>
&gt;    &lt;/nic&gt;<br>
&gt;<br>
&gt; &lt;nic&gt;<br>
&gt;     &lt;interface&gt;virtio&lt;/interface&gt;<br>
&gt;     &lt;name&gt;eth1&lt;/name&gt;<br>
&gt;     &lt;boot_protocol&gt;static&lt;/boot_protocol&gt;<br>
&gt;     &lt;mac address=&#39;&quot;.$ip-&gt;mac_address.&quot;&#39;/&gt;<br>
&gt;     &lt;network&gt;<br>
&gt;      &lt;ip address=&#39;&quot;.$ip-&gt;mac_ip.&quot;&#39; netmask=&#39;255.255.255.0&#39;<br>
&gt; gateway=&#39;&quot;.$ip-&gt;mac_gateway.&quot;&#39;/&gt;<br>
&gt;     &lt;/network&gt;<br>
&gt;     &lt;on_boot&gt;true&lt;/on_boot&gt;<br>
&gt;     &lt;vnic_profile id=&#39;037d806f-d76b-4da3-84b6-ac7a5087f836&#39; /&gt;<br>
&gt;    &lt;/nic&gt;<br>
&gt;<br>
&gt; When i checked the configuration file<br>
&gt; (/etc/sysconfig/network-scripts/ifcfg-eth1) after creating...i find it<br>
&gt; seems the ONBOOT=no.....eventhough we set it true from the api. Is this a<br>
&gt; bug ?<br>
<br>
</div></div>I do not know what &quot;on_boot&quot; means in oVirt API, but it certainly is not<br>
passed to Vdsm or the guest, and as such cannot control what&#39;s in the<br>
guest&#39;s /etc/sysconfig/network-scripts/ifcfg-eth1.<br>
<br>
The guest may have ifcfg files, it may run NetworkManager, or it may be<br>
Ubunto or Windows. oVirt is responsible to exposing a (virtual) NIC to<br>
the guest, but does not interfere with its configuration.<br>
<span class="HOEnZb"><font color="#888888"><br>
Dan<br>
</font></span></blockquote></div><br></div>