<div dir="ltr"><div><a href="http://rwmj.wordpress.com/2013/03/12/accessing-ceph-rbd-sheepdog-etc-using-libguestfs/#comment-8806">http://rwmj.wordpress.com/2013/03/12/accessing-ceph-rbd-sheepdog-etc-using-libguestfs/#comment-8806</a><br>
</div><div>I came across this link and <span style="color:rgb(51,51,51);font-family:Georgia,'Bitstream Charter',serif;font-size:14px;line-height:23.799999237060547px"> </span><span style="color:rgb(51,51,51);font-family:Georgia,'Bitstream Charter',serif;font-size:14px;line-height:23.799999237060547px">and i was able to retrieve the rbd image.</span></div>
<div><br></div><div>$ guestfish</div><div>><fs> set-attach-method appliance</div><div>><fs> add-drive /dev/null</div><div>><fs> config -set drive.hd0.file=rbd:pool/volume</div><div>><fs> run</div>
<div> I was able to retrieve file from rbd image using the above method.</div><div><br></div><div>Would you please let know how to do this in a single command line. I am getting the following error</div><div><br></div><div>
guestfish add /dev/null : config -set drive.hd0.file=rbd:ssd-clonetest-rule5/fullclone.img : run : list-partitions</div><div>guestfish: invalid option — ‘s’</div><div>Try `guestfish –help’ for more information.</div><div>
<br></div><div>anything I m doing wrong here.</div><div><br></div><div>I am using CentOS 6.4 2.6.32-358.6.2.el6.x86_64</div><div>qemu:</div><div><br></div><div>qemu-kvm-0.12.1.2-2.415.el6.3ceph.x86_64</div><div>qemu-kvm-tools-0.12.1.2-2.415.el6.3ceph.x86_64</div>
<div><br></div><div>guestfs:</div><div><br></div><div>libguestfs-tools-c-1.20.11-2.el6.x86_64</div><div>libguestfs-tools-1.20.11-2.el6.x86_64</div><div>libguestfs-1.20.11-2.el6.x86_64</div><div>libguestfs-winsupport-1.0-7.el6.x86_64</div>
</div>