[ovirt-users] Cloud init API issue

Shanil S xielesshanil at gmail.com
Thu Jun 26 10:11:44 UTC 2014


Hi,

I am using ovirt REST API function to create vm. Virtual machine is not
creating with the cloud init and i am unable to login. The following xml is
which i used for creating vm

<vm>
      <name>$name</name>
      <cluster>
        <name>WTC</name>
      </cluster>
      <template>
        <name>$templatetype</name>
      </template>
      <memory>$memory</memory>
      <os>
         <boot dev=\"hd\"/>
      </os>
    <initialization>
         <cloud_init>
        <host>
          <address></address>
           </host>
           <authorized_keys>
         <authorized_key>
           <user>
             <user_name>root</user_name>
           </user>
           <key></key>
         </authorized_key>
           </authorized_keys>
           <regenerate_ssh_keys>true</regenerate_ssh_keys>
           <timezone>Asia/Jerusalem</timezone>
           <users>
         <user>
           <user_name>root</user_name>
           <password>mypass</password>
         </user>
           </users>
             <network_configuration>
         <nics>
           <nic>
             <name>eth0</name>
             <boot_protocol>STATIC</boot_protocol>
             <network>
            <ip address='' netmask='255.255.255.0' gateway='/>
             </network>
             <on_boot>true</on_boot>
           </nic>
         </nics>
        <dns>
           <servers>
             <host>
               <address></address>
             </host>
             <host>
               <address></address>
             </host>
           </servers>
           <search_domains>
             <host>
               <address></address>
             </host>
            </search_domains>
         </dns>
         </network_configuration>
        <files>
         <file>
           <name></name>
           <content></content>
           <type>PLAINTEXT</type>
         </file>
           </files>
    </cloud_init>
   </initialization>
    </vm>

could you please check if there any issues with the xml data ? i am able to
create VM from the ovirt panel and its working but this problem is only
when i use the REST Api to do this
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20140626/80d7cca1/attachment-0001.html>


More information about the Users mailing list