<div dir="ltr">Hi Shahar,<br><br>I am using cent os for creating vm<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 30, 2014 at 4:18 PM, Shahar Havivi <span dir="ltr">&lt;<a href="mailto:shaharh@redhat.com" target="_blank">shaharh@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 30.06.14 16:01, Shanil S wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am assigning IP using the REST API as like<br>
&gt; <a href="http://www.ovirt.org/Features/Cloud-Init_Integration" target="_blank">http://www.ovirt.org/Features/Cloud-Init_Integration</a> but it seems the IP is<br>
&gt; not assigning to the vm. But the other details like host address etc are<br>
&gt; correctly saving. I am using cloud init to assign IP address<br>
</div>What is the guest os that you are using?<br>
<div><div class="h5">&gt;<br>
&gt; The following is the xml which i used for assigning IP<br>
&gt;<br>
&gt;<br>
&gt; $xml_data = &quot;<br>
&gt;     &lt;action&gt;<br>
&gt;         &lt;vm&gt;<br>
&gt;             &lt;os&gt;<br>
&gt;                 &lt;boot dev=&#39;cdrom&#39;/&gt;<br>
&gt;             &lt;/os&gt;<br>
&gt;             &lt;initialization&gt;<br>
&gt;      &lt;cloud_init&gt;<br>
&gt;      &lt;host&gt;<br>
&gt;          &lt;address&gt;TestMachine&lt;/address&gt;<br>
&gt;        &lt;/host&gt;<br>
&gt;<br>
&gt;       &lt;users&gt;<br>
&gt;          &lt;user&gt;<br>
&gt;            &lt;user_name&gt;username&lt;/user_name&gt;<br>
&gt;            &lt;password&gt;adminpassw&lt;/password&gt;<br>
&gt;          &lt;/user&gt;<br>
&gt;        &lt;/users&gt;<br>
&gt;       &lt;network_configuration&gt;<br>
&gt;       &lt;nics&gt;<br>
&gt;            &lt;nic&gt;<br>
&gt;              &lt;name&gt;eth0&lt;/name&gt;<br>
&gt;              &lt;boot_protocol&gt;none&lt;/boot_protocol&gt;<br>
&gt;              &lt;network&gt;<br>
&gt;                &lt;ip address=&#39;x.x.x.x&#39; netmask=&#39;255.255.0.0&#39;<br>
&gt; gateway=&#39;x.x.x.x&#39;/&gt;<br>
&gt;              &lt;/network&gt;<br>
&gt;              &lt;on_boot&gt;true&lt;/on_boot&gt;<br>
&gt;            &lt;/nic&gt;<br>
&gt;          &lt;/nics&gt;<br>
&gt;          &lt;dns&gt;<br>
&gt;            &lt;servers&gt;<br>
&gt;              &lt;host&gt;<br>
&gt;                &lt;address&gt;8.8.8.8&lt;/address&gt;<br>
&gt;              &lt;/host&gt;<br>
&gt;            &lt;/servers&gt;<br>
&gt;          &lt;/dns&gt;<br>
&gt;        &lt;/network_configuration&gt;<br>
&gt;      &lt;/cloud_init&gt;<br>
&gt;    &lt;/initialization&gt;<br>
&gt;         &lt;/vm&gt;<br>
&gt;     &lt;/action&gt;&quot;;<br>
&gt;<br>
&gt;<br>
&gt; The above xml is called with the start function of API. IP is assigned from<br>
&gt; the ovirt portal and the issue is only when assigning it from the REST API.<br>
&gt; If anyone knows could you please check if any issues with the it ?<br>
<br>
</div></div>&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" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
<br>
</blockquote></div><br></div>