According to this document i have set the wrapper and LIBGUESTFS_QEMU variable:

http://libguestfs.org/guestfs.3.html#qemu_wrappers


export LIBGUESTFS_QEMU=/tmp/qemu.wrapper

The Content of the wrapper is :

#!/bin/sh
qemudir=/usr/bin/
exec $qemudir/qemu-system-x86_64    -L    $qemudir/pc-bios    "$@"



It says :
virt-list-partitions XenGuest1.img

/usr/bin//qemu-system-x86_64: invalid option -- '-device'
child process died unexpectedly at /usr/bin/virt-list-partitions line 162.

Qemu need -device option and i dont have pc-bios( i have no idea what it is).

I think the wrapper script should be something different.???


--
Thanks 

Vipul Borikar
"Our task must be to free ourselves...by widening our circle of compassion to embrace all living creatures and the whole of nature and its beauty."




On Tue, Oct 11, 2011 at 2:17 AM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Mon, Oct 10, 2011 at 04:07:40PM +0530, vipul borikar wrote:
> Hello,
>             I have installed libguestfs on RHEL 5.5 64 bit.  3 packages i
> have installed.
>
> libguestfs-tools-c-1.9.10-1.1
> libguestfs-tools-1.9.10-1.1
> libguestfs-1.9.10-1.1
>
> When i am trying to run virt-resize it gives me error:
>
> virt-resize -expand /dev/sda1 vm01.scilab vm01.scilab-15GB -d
>
> libguestfs: trace: add_drive_opts "vm01.scilab" "readonly:true"
> libguestfs: trace: add_drive_opts = 0
> libguestfs: trace: add_drive_opts "vm01.scilab-15GB"
> libguestfs: trace: add_drive_opts = 0
> libguestfs: trace: launch
> sh: /home/rjones/d/qemu/qemu-wrapper: No such file or directory
> /home/rjones/d/qemu/qemu-wrapper: No such file or directory

Do you have the LIBGUESTFS_QEMU environment variable set?

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