[ovirt-users] Start VM with cloud_init and ssh key using REST API

Vishal Panchal vishal.icreate at gmail.com
Tue Apr 5 08:30:52 UTC 2016


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 at 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 at 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>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20160405/9a8eeede/attachment-0001.html>


More information about the Users mailing list