<div dir="ltr"><div>Hi Juan,<br><br></div>These are the xml details which i used for the vm start function, please check it<br><br><br><br><br><br><br>&lt;action&gt;<br>                &lt;vm&gt;<br>                    &lt;os&gt;<br>
                        &lt;boot dev=&#39;cdrom&#39;/&gt;                <br>                    &lt;/os&gt;<br>                    &lt;initialization&gt;<br>                         &lt;cloud_init&gt;<br>                            <br>
                            &lt;users&gt;<br>                                &lt;user&gt;<br>                                    &lt;user_name&gt;root&lt;/user_name&gt;<br>                                    &lt;password&gt;&lt;/password&gt;<br>
                                &lt;/user&gt;<br>                            &lt;/users&gt;<br>                            &lt;network_configuration&gt;<br>                                &lt;nics&gt;<br>                                    &lt;nic&gt;<br>
                                        &lt;interface&gt;virtio&lt;/interface&gt; <br>                                        &lt;name&gt;eth0&lt;/name&gt;<br>                                        &lt;boot_protocol&gt;static&lt;/boot_protocol&gt;<br>
                                        &lt;mac address=&#39;xx:xx:xx:xx:xx:xx&#39;/&gt;<br>                                        &lt;network&gt;<br>                                            &lt;ip address=&#39;xx.xx.xx.xx&#39; netmask=&#39;255.255.255.0&#39; gateway=&#39;xx.xx.xx.xx&#39;/&gt;<br>
                                        &lt;/network&gt;<br>                                        &lt;on_boot&gt;true&lt;/on_boot&gt;<br>                                        &lt;vnic_profile id=&#39;bbabc471-667d-4221-bc8e-4ab30b3dcc34&#39; /&gt;<br>
                                    &lt;/nic&gt;<br>                                    &lt;nic&gt;<br>                                        &lt;interface&gt;virtio&lt;/interface&gt; <br>                                        &lt;name&gt;eth1&lt;/name&gt;<br>
                                        &lt;mac address=&#39;xx:xx:xx:xx:xx:xx&#39;/&gt;<br>                                        &lt;network&gt;<br>                                            &lt;ip address=&#39;xx.xx.xx.xx&#39; netmask=&#39;255.255.255.0&#39; gateway=&#39;&#39;/&gt;<br>
                                    &lt;/network&gt;<br>                                        &lt;on_boot&gt;true&lt;/on_boot&gt;<br>                                        &lt;vnic_profile id=&#39;bbabc471-667d-4221-bc8e-4ab30b3dcc34&#39; /&gt;<br>
                                    &lt;/nic&gt;<br>                                &lt;/nics&gt;<br>                                &lt;dns&gt;<br>                                    &lt;servers&gt;<br>                                        &lt;host&gt;<br>
                                            &lt;address&gt;8.8.8.8&lt;/address&gt;<br>                                        &lt;/host&gt;<br>                                    &lt;/servers&gt;<br>                                &lt;/dns&gt;<br>
                            &lt;/network_configuration&gt;<br>                         &lt;/cloud_init&gt;<br>                    &lt;/initialization&gt;<br>                &lt;/vm&gt;<br>            &lt;/action&gt;<br><br>
<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 Fri, Aug 29, 2014 at 2:15 PM, Juan Hernandez <span dir="ltr">&lt;<a href="mailto:jhernand@redhat.com" target="_blank">jhernand@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="">On 08/29/2014 05:30 AM, Shanil S wrote:<br>
&gt; Hi Dan,<br>
&gt;<br>
&gt; Please ignore the previous screenshot and check this.<br>
&gt;<br>
&gt; --<br>
&gt; Regards<br>
&gt; Shanil<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Aug 29, 2014 at 8:49 AM, Shanil S &lt;<a href="mailto:xielesshanil@gmail.com">xielesshanil@gmail.com</a><br>
</div><div class="">&gt; &lt;mailto:<a href="mailto:xielesshanil@gmail.com">xielesshanil@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Hi Dan,<br>
&gt;<br>
&gt;     I have attached the screenshot of the console, please check it.<br>
&gt;<br>
&gt;     --<br>
&gt;     Regards<br>
&gt;     Shanil<br>
&gt;<br>
&gt;<br>
&gt;     On Thu, Aug 28, 2014 at 4:46 PM, Dan Kenigsberg &lt;<a href="mailto:danken@redhat.com">danken@redhat.com</a><br>
</div><div><div class="h5">&gt;     &lt;mailto:<a href="mailto:danken@redhat.com">danken@redhat.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;         On Thu, Aug 28, 2014 at 01:50:22PM +0530, Shanil S wrote:<br>
&gt;         &gt; Hi Aill,<br>
&gt;         &gt;<br>
&gt;         &gt; We are creating two nics using the api, but it seems the<br>
&gt;         second network is<br>
&gt;         &gt; not come up and the first one is working. The following xml is<br>
&gt;         used to for<br>
&gt;         &gt; the nic creation<br>
&gt;         &gt;<br>
&gt;         &gt; &lt;nic&gt;<br>
&gt;         &gt;     &lt;interface&gt;virtio&lt;/interface&gt;<br>
&gt;         &gt;     &lt;name&gt;eth0&lt;/name&gt;<br>
&gt;         &gt;     &lt;boot_protocol&gt;static&lt;/boot_protocol&gt;<br>
&gt;         &gt;     &lt;mac address=&#39;&quot;.$ip-&gt;mac_address.&quot;&#39;/&gt;<br>
&gt;         &gt;     &lt;network&gt;<br>
&gt;         &gt;      &lt;ip address=&#39;&quot;.$ip-&gt;mac_ip.&quot;&#39; netmask=&#39;255.255.255.0&#39;<br>
&gt;         &gt; gateway=&#39;&quot;.$ip-&gt;mac_gateway.&quot;&#39;/&gt;<br>
&gt;         &gt;     &lt;/network&gt;<br>
&gt;         &gt;     &lt;on_boot&gt;true&lt;/on_boot&gt;<br>
&gt;         &gt;     &lt;vnic_profile id=&#39;bbabc471-667d-4221-bc8e-4ab30b3dcc34&#39; /&gt;<br>
&gt;         &gt;    &lt;/nic&gt;<br>
&gt;         &gt;<br>
&gt;         &gt; &lt;nic&gt;<br>
&gt;         &gt;     &lt;interface&gt;virtio&lt;/interface&gt;<br>
&gt;         &gt;     &lt;name&gt;eth1&lt;/name&gt;<br>
&gt;         &gt;     &lt;boot_protocol&gt;static&lt;/boot_protocol&gt;<br>
&gt;         &gt;     &lt;mac address=&#39;&quot;.$ip-&gt;mac_address.&quot;&#39;/&gt;<br>
&gt;         &gt;     &lt;network&gt;<br>
&gt;         &gt;      &lt;ip address=&#39;&quot;.$ip-&gt;mac_ip.&quot;&#39; netmask=&#39;255.255.255.0&#39;<br>
&gt;         &gt; gateway=&#39;&quot;.$ip-&gt;mac_gateway.&quot;&#39;/&gt;<br>
&gt;         &gt;     &lt;/network&gt;<br>
&gt;         &gt;     &lt;on_boot&gt;true&lt;/on_boot&gt;<br>
&gt;         &gt;     &lt;vnic_profile id=&#39;037d806f-d76b-4da3-84b6-ac7a5087f836&#39; /&gt;<br>
&gt;         &gt;    &lt;/nic&gt;<br>
&gt;         &gt;<br>
&gt;         &gt; When i checked the configuration file<br>
&gt;         &gt; (/etc/sysconfig/network-scripts/ifcfg-eth1) after creating...i<br>
&gt;         find it<br>
&gt;         &gt; seems the ONBOOT=no.....eventhough we set it true from the<br>
&gt;         api. Is this a<br>
&gt;         &gt; bug ?<br>
&gt;<br>
&gt;         I do not know what &quot;on_boot&quot; means in oVirt API, but it<br>
&gt;         certainly is not<br>
&gt;         passed to Vdsm or the guest, and as such cannot control what&#39;s<br>
&gt;         in the<br>
&gt;         guest&#39;s /etc/sysconfig/network-scripts/ifcfg-eth1.<br>
&gt;<br>
&gt;         The guest may have ifcfg files, it may run NetworkManager, or it<br>
&gt;         may be<br>
&gt;         Ubunto or Windows. oVirt is responsible to exposing a (virtual)<br>
&gt;         NIC to<br>
&gt;         the guest, but does not interfere with its configuration.<br>
&gt;<br>
&gt;         Dan<br>
&gt;<br>
<br>
</div></div>The on_boot parameter that you pass when creating the NIC is completely<br>
ignored, like all the other IP configuration parameters.<br>
<br>
But looking at your screenshot it looks like you are already using<br>
cloud-init to solve this. Are you using those &lt;nic&gt;...&lt;/nic&gt; XML<br>
documents as part of larger request to create a VM? In that case we need<br>
to check the complete XML document in order to see if there is something<br>
wrong. Can you share it?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta<br>
3ºD, 28016 Madrid, Spain<br>
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.<br>
</font></span></blockquote></div><br></div>