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

Re: [Libguestfs] virt-ls windows

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

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' ebal 169 254 2 2:/tmp/boot.ini

Then 'debug sh ...' to run this.


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#)

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