>Use 'guestfish --', ie:
>guestfish -- add /dev/null [etc]
i tried this method this worked for me in case of listing partitions
[root@EQkvm0101 ~]# guestfish -- add /dev/null : config -set drive.hd0.file=rbd:ssd-clonetest-rule5/fullclone.img : run : list-partitions
/dev/sda1
/dev/sda2
[root@EQkvm0101 ~]#
thankyou so much for the reply
Also i can't use the newest version of libguestfs as im on a production system and i could not use the newest version due to some limitations.
Also the new version is not available in repo.
i will test it out and will update you..Thankyou so much for your replykind regardsShumaila NaeemSoftware Engineer , Ovex TechnologiesOn Thu, Mar 13, 2014 at 5:15 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Thu, Mar 13, 2014 at 03:06:17PM +0500, Shumaila Naeem wrote:> guestfish: invalid option -- 's'
> http://rwmj.wordpress.com/2013/03/12/accessing-ceph-rbd-sheepdog-etc-using-libguestfs/#comment-8806
> I came across this link and and i was able to retrieve the rbd image.
>
> $ guestfish
> ><fs> set-attach-method appliance
> ><fs> add-drive /dev/null
> ><fs> config -set drive.hd0.file=rbd:pool/volume
> ><fs> run
> I was able to retrieve file from rbd image using the above method.
>
> Would you please let know how to do this in a single command line. I am
> getting the following error
>
> guestfish add /dev/null : config -set
> drive.hd0.file=rbd:ssd-clonetest-rule5/fullclone.img : run : list-partitions
> Try `guestfish -help' for more information.
Use 'guestfish --', ie:
guestfish -- add /dev/null [etc]
However I'd definitely recommend trying newer versions of libguestfs,
> anything I m doing wrong here.
>
> I am using CentOS 6.4 2.6.32-358.6.2.el6.x86_64
> qemu:
>
> qemu-kvm-0.12.1.2-2.415.el6.3ceph.x86_64
> qemu-kvm-tools-0.12.1.2-2.415.el6.3ceph.x86_64
>
> guestfs:
>
> libguestfs-tools-c-1.20.11-2.el6.x86_64
> libguestfs-tools-1.20.11-2.el6.x86_64
> libguestfs-1.20.11-2.el6.x86_64
> libguestfs-winsupport-1.0-7.el6.x86_64
since they support rbd transparently.
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#)