According to this document i have set the wrapper and LIBGUESTFS_QEMU variable:<br><br><a href="http://libguestfs.org/guestfs.3.html#qemu_wrappers">http://libguestfs.org/guestfs.3.html#qemu_wrappers</a><br><br><br>export LIBGUESTFS_QEMU=/tmp/qemu.wrapper<br>
<br>The Content of the wrapper is :<br><br>#!/bin/sh<br>qemudir=/usr/bin/<br>exec $qemudir/qemu-system-x86_64    -L    $qemudir/pc-bios    "$@"<br><br><br><br>It says :<br>virt-list-partitions XenGuest1.img<br><br>
/usr/bin//qemu-system-x86_64: invalid option -- '-device'<br>child process died unexpectedly at /usr/bin/virt-list-partitions line 162.<br><br>Qemu need -device option and i dont have pc-bios( i have no idea what it is).<br>
<br>I think the wrapper script should be something different.???<br><br><br>-- <br><div>Thanks </div><div><br></div>Vipul Borikar <br><div>"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."</div><br><br><br><br><div class="gmail_quote">On Tue, Oct 11, 2011 at 2:17 AM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Mon, Oct 10, 2011 at 04:07:40PM +0530, vipul borikar wrote:<br>
> Hello,<br>
>             I have installed libguestfs on RHEL 5.5 64 bit.  3 packages i<br>
> have installed.<br>
><br>
> libguestfs-tools-c-1.9.10-1.1<br>
> libguestfs-tools-1.9.10-1.1<br>
> libguestfs-1.9.10-1.1<br>
><br>
> When i am trying to run virt-resize it gives me error:<br>
><br>
> virt-resize -expand /dev/sda1 vm01.scilab vm01.scilab-15GB -d<br>
><br>
> libguestfs: trace: add_drive_opts "vm01.scilab" "readonly:true"<br>
> libguestfs: trace: add_drive_opts = 0<br>
> libguestfs: trace: add_drive_opts "vm01.scilab-15GB"<br>
> libguestfs: trace: add_drive_opts = 0<br>
> libguestfs: trace: launch<br>
> sh: /home/rjones/d/qemu/qemu-wrapper: No such file or directory<br>
> /home/rjones/d/qemu/qemu-wrapper: No such file or directory<br>
<br>
</div>Do you have the LIBGUESTFS_QEMU environment variable set?<br>
<br>
Rich.<br>
<font color="#888888"><br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/%7Erjones" target="_blank">http://people.redhat.com/~rjones</a><br>
libguestfs lets you edit virtual machines.  Supports shell scripting,<br>
bindings from many languages.  <a href="http://libguestfs.org" target="_blank">http://libguestfs.org</a><br>
</font></blockquote></div><br><br clear="all"><br>