<div dir="ltr"><div><div>Hi,<br><br></div>I am assigning IP using the REST API as like <a href="http://www.ovirt.org/Features/Cloud-Init_Integration">http://www.ovirt.org/Features/Cloud-Init_Integration</a> but it seems the IP is not assigning to the vm. But the other details like host address etc are correctly saving. I am using cloud init to assign IP address<br>
<br></div>The following is the xml which i used for assigning IP<br><br><br>$xml_data = &quot;<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>     &lt;host&gt;<br>         &lt;address&gt;TestMachine&lt;/address&gt;<br>       &lt;/host&gt;<br>       <br>      &lt;users&gt;<br>
         &lt;user&gt;<br>           &lt;user_name&gt;username&lt;/user_name&gt;<br>           &lt;password&gt;adminpassw&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;name&gt;eth0&lt;/name&gt;<br>             &lt;boot_protocol&gt;none&lt;/boot_protocol&gt;<br>             &lt;network&gt;<br>               &lt;ip address=&#39;x.x.x.x&#39; netmask=&#39;255.255.0.0&#39; gateway=&#39;x.x.x.x&#39;/&gt;<br>
             &lt;/network&gt;<br>             &lt;on_boot&gt;true&lt;/on_boot&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;&quot;;<br><div><br><br></div><div>The above xml is called with the start function of API. IP is assigned from the ovirt portal and the issue is only when assigning it from the REST API. If anyone knows could you please check if any issues with the it ?<br>
<br><br></div></div>