<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"><<a href="mailto:shaharh@redhat.com" target="_blank">shaharh@redhat.com</a>></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>
> Hi,<br>
><br>
> I am assigning IP using the REST API as like<br>
> <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>
> not assigning to the vm. But the other details like host address etc are<br>
> 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">><br>
> The following is the xml which i used for assigning IP<br>
><br>
><br>
> $xml_data = "<br>
> <action><br>
> <vm><br>
> <os><br>
> <boot dev='cdrom'/><br>
> </os><br>
> <initialization><br>
> <cloud_init><br>
> <host><br>
> <address>TestMachine</address><br>
> </host><br>
><br>
> <users><br>
> <user><br>
> <user_name>username</user_name><br>
> <password>adminpassw</password><br>
> </user><br>
> </users><br>
> <network_configuration><br>
> <nics><br>
> <nic><br>
> <name>eth0</name><br>
> <boot_protocol>none</boot_protocol><br>
> <network><br>
> <ip address='x.x.x.x' netmask='255.255.0.0'<br>
> gateway='x.x.x.x'/><br>
> </network><br>
> <on_boot>true</on_boot><br>
> </nic><br>
> </nics><br>
> <dns><br>
> <servers><br>
> <host><br>
> <address>8.8.8.8</address><br>
> </host><br>
> </servers><br>
> </dns><br>
> </network_configuration><br>
> </cloud_init><br>
> </initialization><br>
> </vm><br>
> </action>";<br>
><br>
><br>
> The above xml is called with the start function of API. IP is assigned from<br>
> the ovirt portal and the issue is only when assigning it from the REST API.<br>
> If anyone knows could you please check if any issues with the it ?<br>
<br>
</div></div>> _______________________________________________<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" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
<br>
</blockquote></div><br></div>