On Fri, Aug 03, 2012 at 11:23:34PM +0300, Evaggelos Balaskas wrote: [...] Of course doing this in virt-rescue means you can't automate it.
It should be possible to do automate all this in guestfish: > [root@(none) /]# mkdir /root/.ssh/ > [root@(none) /]# cd /root/.ssh/ > [root@(none) /]# cat > id_dsa << EOF > mpla mpla mpla > EOF Use 'debug sh "mkdir ..."' to create the directory in the appliance, and 'debug-upload' to upload the key, and further 'debug sh' commands to set the permissions. There is no concept of current directory in libguestfs API / guestfish. > [root@(none) /]# rsync /media/boot.ini -e 'ssh -o > StrictHostKeyChecking=no' [email protected]:/tmp/boot.ini Then 'debug sh ...' to run this. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora _______________________________________________ Libguestfs mailing list [email protected] https://www.redhat.com/mailman/listinfo/libguestfs
