[CentOS-virt] injecting a key into the xen images
stefano.stabellini at eu.citrix.com
Fri Mar 28 13:36:00 UTC 2014
On Fri, 28 Mar 2014, Karanbir Singh wrote:
> 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 ; so have come up with this :
> ; 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 at centos.org
More information about the CentOS-virt