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