On Fri, Mar 14, 2014 at 02:14:48PM +0500, Shumaila Naeem wrote:
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
You're starting a new guestfish process. This creates a completely
new handle. Any state in the old handle and old process is lost, so
the fact you called inspect-os previously is not relevant.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages.
http://libguestfs.org