Hello,

I have already create vm  and configure network properties using cloud init
and REST API.But now I want to implement SSH feature.So I used following
XML request but it give me bad request response.

XML Request :

<action>
  <vm>
     <initialization>
       <host_name>arpitttt</host_name>
         <authorized_keys>
          <authorized_key>
            <user>
             <user_name>root</user_name>
            </user>
           <key>ssh-rsa 75:7f:42:b6:ec:83:a4:30:a9:07:fc:41:39:d0:49
root@vishal_local.localdomain</key>
          </authorized_key>
       </authorized_keys>
       <regenerate_ssh_keys>true</regenerate_ssh_keys>
       <dns_servers>8.8.8.8</dns_servers>
       <nic_configurations>
         <nic_configuration>
           <name>eth1</name>
           <boot_protocol>STATIC</boot_protocol>
           <ip address="51.254.56.84" netmask="255.255.255.255"
gateway="149.202.85.254" />
           <on_boot>true</on_boot>
         </nic_configuration>
       </nic_configurations>
       <root_password>Vishal@131</root_password>
       <user_name>root</user_name>
     </initialization>
  </vm>
  <use_cloud_init>true</use_cloud_init>
</action>


Regards,
*Vishal Panchal*
Software Developer
*+918140283911*

* <http:///sculptsoft.com>*
*  <https://www.facebook.com/SculptSoft>
<https://www.linkedin.com/company/sculptsoft>
<https://twitter.com/SculptSoft>*
_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

Reply via email to