Re: injecting a key into the xen images

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 28 Mar 2014, Karanbir Singh wrote:
> hi,
> 
> As a part of the test suite for xen that I've started off - I needed a
> way to inject a ssh key into the image [1]; so have come up with this :
> https://github.com/CentOS/sig-virt-t_xen/blob/master/scripts/inject_ssh.sh
> ; its not pretty and it wont handle lots of use cases, but it does what
> is needed at hand.
> 
> Comments ?
> 
> I'm also considering if we should include this script within the .bz2
> file for the image itself ( and for all such images )
> 
> Further feature creep, should we now extend this script a bit to also
> include a 'download and inject ssh key' with some param's like :
> ./get_image.sh 6.5 x86_64 <path to sshkey>
> and that can hit http://cloud.centos.org/<calculated path to image>/ ;
> download it, and add the key. This script could live within
> centos-release-xen dramatically reducing the barrier to entry and get-go
> with the xen4centos stack.
> 
> thoughts ?

I think it is a good idea. Using QEMU nbd server like you have done in
the script is the best way of doing it.


> - KB
> 
> 
> 1: qcow2, http://cloud.centos.org/centos/6/devel/CentOS-6-x86_64-xen-pv.bz2
> 
> -- 
> Karanbir Singh
> +44-207-0999389 | http://www.karan.org/ | twitter.com/kbsingh
> GnuPG Key : http://www.karan.org/publickey.asc
> _______________________________________________
> CentOS-virt mailing list
> CentOS-virt@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos-virt
> 
_______________________________________________
CentOS-virt mailing list
CentOS-virt@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos-virt




[Index of Archives]     [CentOS Users]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Linux USB]

  Powered by Linux