<div dir="ltr"><div>Hi Shahar,<br><br>We are using the cloud-init 0.7.2.2, in this version there is no option to set the cd rom. I am attaching the screenshot of the cloud init page, please have a look at this.<br></div><div>
<br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 1, 2014 at 8:11 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">When you run the VM with cloud-init you get a cdrom with the cloud-init<br>
content.<br>
Try to mount the cdrom something like:<br>
$ mount /dev/sr1 mydir<br>
and look at the content of the network file at:<br>
$ cat mydir/openstack/content/0000<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On 01.07.14 17:10, Shanil S wrote:<br>
> Hi Seven,<br>
><br>
> okay.. Thanks..<br>
><br>
><br>
> On Tue, Jul 1, 2014 at 4:31 PM, Sven Kieske <<a href="mailto:S.Kieske@mittwald.de">S.Kieske@mittwald.de</a>> wrote:<br>
><br>
> > CC'ed michal, maybe he finds an error in your xml.<br>
> ><br>
> > Am 30.06.2014 12:31, schrieb Shanil S:<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<br>
> > 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>
> > ><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<br>
> > from<br>
> > > the ovirt portal and the issue is only when assigning it from the REST<br>
> > API.<br>
> > > If anyone knows could you please check if any issues with the it ?<br>
> > ><br>
> > ><br>
> > ><br>
> > > _______________________________________________<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>
> ><br>
> > --<br>
> > Mit freundlichen Grüßen / Regards<br>
> ><br>
> > Sven Kieske<br>
> ><br>
> > Systemadministrator<br>
> > Mittwald CM Service GmbH & Co. KG<br>
> > Königsberger Straße 6<br>
> > 32339 Espelkamp<br>
> > T: +49-5772-293-100<br>
> > F: +49-5772-293-333<br>
> > <a href="https://www.mittwald.de" target="_blank">https://www.mittwald.de</a><br>
> > Geschäftsführer: Robert Meyer<br>
> > St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen<br>
> > Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen<br>
> > _______________________________________________<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>
<br>
> _______________________________________________<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>
</div></div></blockquote></div><br></div>