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

2016-04-05 Thread Juan Hernández
On 04/05/2016 10:30 AM, Vishal Panchal wrote:
> 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 : 
> 
> 
>   
>  
>arpi
>  
>   
> 
>  root
> 
>ssh-rsa 75:7f:42:b6:ec:83:a4:30:a9:07:fc:41:39:d0:49
> root@vishal_local.localdomain
>   
>


The element to set SSH authorized keys is "authorized_ssh_keys", and it
should contain a line per key:

  ssh-rsa 75

So your complete request should look like this:


  
 
   arpi
   ssh-rsa
75:7f:42:b6:ec:83:a4:30:a9:07:fc:41:39:d0:49
root@vishal_local.localdomain
   true
   8.8.8.8
   
 
   eth1
   STATIC
   
   true
 
   
   Vishal@131
   root
 
  
  true


>true
>8.8.8.8
>
>  
>eth1
>STATIC
> gateway="149.202.85.254" />
>true
>  
>
>Vishal@131
>root
>  
>   
>   true
> 
> 
> 
> Regards,
> *Vishal Panchal*
> Software Developer
> *+918140283911*
> *
> *
> **
> *  
>  
> *
> 
> 
> 
> 
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 


-- 
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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

2016-04-05 Thread Vishal Panchal
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 :


  
 
   arpi
 
  

 root

   ssh-rsa 75:7f:42:b6:ec:83:a4:30:a9:07:fc:41:39:d0:49
root@vishal_local.localdomain
  
   
   true
   8.8.8.8
   
 
   eth1
   STATIC
   
   true
 
   
   Vishal@131
   root
 
  
  true



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

* *
*  

*
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users