i want to do it remotely through command :
although if i use python language the thing works for me you can see the python code
>>> import guestfs
>>> g = guestfs.GuestFS (python_return_dict=True)
>>> g.add_drive_opts ("/dev/null", readonly=1)
>>> g.config('-set', "drive.hd0.file=rbd:ssd-clonetest-rule5/ubuntu-12.04--1.raw.img")
>>>
>>> g.launch()
>>> g.inspect_os()
['/dev/ubuntu-1204-vg/root']
>>> g.inspect_get_distro('/dev/ubuntu-1204-vg/root')
'ubuntu'
but when i try to do the same from command line it failed:
firstly i run command
guestfish -- add /dev/null : config -set drive.hd0.file=rbd:ssd-clonetest-rule5/ubuntu-12.04--1.raw.img : run : inspect-os
this is returning me :
/dev/ubuntu-1204-vg/root
when i pass this output to get-distro , it failed
guestfish -- add /dev/null : config -set drive.hd0.file=rbd:ssd-clonetest-rule5/ubuntu-12.04--1.raw.img : run : inspect-get-distro /dev/ubuntu-1204-vg/root
libguestfs: error: no inspection data: call guestfs_inspect_os first
this time i have called run
Regards
Shumaila Naeem