Child process died
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 libguestfs: trace: launch = -1 (error) child process died unexpectedly at /usr/bin/virt-resize line 602. Same is happening for virt-list-partions virt-list-partitions vm01.scilab sh: /home/rjones/d/qemu/qemu-wrapper: No such file or directory /home/rjones/d/qemu/qemu-wrapper: No such file or directory child process died unexpectedly at /usr/bin/virt-list-partitions line 162.* * Any Cluess??? -- 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 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
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
On Tue, Oct 11, 2011 at 10:30:47AM +0530, vipul borikar wrote:
According to this document i have set the wrapper and LIBGUESTFS_QEMU variable: [...]
Can you answer my question:
Do you have the LIBGUESTFS_QEMU environment variable set?
Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
On Tue, Oct 11, 2011 at 1:16 PM, Richard W.M. Jones <rjones@redhat.com>wrote:
On Tue, Oct 11, 2011 at 10:30:47AM +0530, vipul borikar wrote:
According to this document i have set the wrapper and LIBGUESTFS_QEMU variable: [...]
No , the variable is not set
Can you answer my question:
Do you have the LIBGUESTFS_QEMU environment variable set?
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
-- 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 01:33:43PM +0530, vipul borikar wrote:
On Tue, Oct 11, 2011 at 1:16 PM, Richard W.M. Jones <rjones@redhat.com>wrote:
On Tue, Oct 11, 2011 at 10:30:47AM +0530, vipul borikar wrote:
According to this document i have set the wrapper and LIBGUESTFS_QEMU variable: [...]
No , the variable is not set
It appears to be a strange bug in those binary packages. I will build a new set of binaries from a more recent upstream version and let you know. 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
ok. Thank you. We wait for your reply. On Tue, Oct 11, 2011 at 1:38 PM, Richard W.M. Jones <rjones@redhat.com>wrote:
On Tue, Oct 11, 2011 at 01:33:43PM +0530, vipul borikar wrote:
On Tue, Oct 11, 2011 at 1:16 PM, Richard W.M. Jones <rjones@redhat.com wrote:
On Tue, Oct 11, 2011 at 10:30:47AM +0530, vipul borikar wrote:
According to this document i have set the wrapper and LIBGUESTFS_QEMU variable: [...]
No , the variable is not set
It appears to be a strange bug in those binary packages. I will build a new set of binaries from a more recent upstream version and let you know.
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
-- 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 01:43:38PM +0530, vipul borikar wrote:
ok. Thank you. We wait for your reply.
Actually, looking more closely I see the package is OK. Did you read the README file? http://libguestfs.org/download/binaries/rhel5-packages/README.txt You could try setting up a qemu wrapper yourself as described there. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
If you read my second mail i have created the wrapper. Still it gives error. 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). One thing is that i am using RHEL 5.5 will that make any difference? Should i try earlier version of libguestfs ??? On Tue, Oct 11, 2011 at 2:09 PM, Richard W.M. Jones <rjones@redhat.com>wrote:
On Tue, Oct 11, 2011 at 01:43:38PM +0530, vipul borikar wrote:
ok. Thank you. We wait for your reply.
Actually, looking more closely I see the package is OK.
Did you read the README file?
http://libguestfs.org/download/binaries/rhel5-packages/README.txt
You could try setting up a qemu wrapper yourself as described there.
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
-- 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 03:20:03PM +0530, vipul borikar wrote:
If you read my second mail i have created the wrapper. Still it gives error.
You really need to read the README file carefully. It explains what's going on.
Did you read the README file?
http://libguestfs.org/download/binaries/rhel5-packages/README.txt
Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
I installed the qemu from source and wrote a wrapper script is given in doc. # virt-list-partitions vm01.scilab qemu: could not load PC BIOS 'bios.bin' unexpected end of file when reading from daemon at /usr/bin/virt-list-partitions line 162. I google the above error but of no use. On Tue, Oct 11, 2011 at 4:30 PM, Richard W.M. Jones <rjones@redhat.com>wrote:
On Tue, Oct 11, 2011 at 03:20:03PM +0530, vipul borikar wrote:
If you read my second mail i have created the wrapper. Still it gives error.
You really need to read the README file carefully. It explains what's going on.
Did you read the README file?
http://libguestfs.org/download/binaries/rhel5-packages/README.txt
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
-- 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 06:39:24PM +0530, vipul borikar wrote:
I installed the qemu from source and wrote a wrapper script is given in doc.
# virt-list-partitions vm01.scilab
qemu: could not load PC BIOS 'bios.bin'
... and libguestfs-test-tool output is ...? Please read the README file all the way to the end. It explains how to test this and how to collect enough information to diagnose problems. http://libguestfs.org/download/binaries/rhel5-packages/README.txt Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
Following is the output of test tool # libguestfs-test-tool ===== Test starts here ===== LIBGUESTFS_QEMU=/tmp/qemu.wrapper LIBGUESTFS_DEBUG=1 new guestfs handle 0x116ac80 library version: 1.9.10 guestfs_get_append: (null) guestfs_get_autosync: 1 guestfs_get_memsize: 500 guestfs_get_path: /usr/lib64/guestfs guestfs_get_qemu: /tmp/qemu.wrapper guestfs_get_verbose: 1 Launching appliance, timeout set to 120 seconds. [00000ms] febootstrap-supermin-helper --verbose -f checksum '/usr/lib64/guestfs/supermin.d' x86_64 supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = (null), initrd = (null), appliance = (null) supermin helper [00000ms] inputs[0] = /usr/lib64/guestfs/supermin.d checking modpath /lib/modules/2.6.18-194.el5 is a directory picked vmlinuz-2.6.18-194.el5 because modpath /lib/modules/2.6.18-194.el5 exists supermin helper [00000ms] finished creating kernel supermin helper [00001ms] visiting /usr/lib64/guestfs/supermin.d supermin helper [00001ms] visiting /usr/lib64/guestfs/supermin.d/base.img supermin helper [00001ms] visiting /usr/lib64/guestfs/supermin.d/daemon.img supermin helper [00001ms] visiting /usr/lib64/guestfs/supermin.d/hostfiles supermin helper [00055ms] visiting /usr/lib64/guestfs/supermin.d/init.img supermin helper [00208ms] finished creating appliance [00215ms] begin testing qemu features [00236ms] finished testing qemu features [00236ms] /tmp/qemu.wrapper \ -drive file=/tmp/libguestfs-test-tool-sda-uJh9of,cache=off,format=raw,if=virtio \ -drive file=/tmp/libguestfs-test-tool-iso-AZrF4K,snapshot=on,format=raw,if=virtio \ -nodefaults \ -nographic \ -m 500 \ -no-reboot \ -no-hpet \ -device virtio-serial \ -serial stdio \ -chardev socket,path=/tmp/libguestfs2dlHJJ/sock,id=channel0 \ -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \ -kernel /var/tmp/.guestfs-0/kernel.13124accept_from_daemon: 0x116ac80 g->state = 1 \ -initrd /var/tmp/.guestfs-0/initrd.13124 \ -append 'panic=1 console=ttyS0 udevtimeout=300 noapic acpi=off printk.time=1 cgroup_disable=memory selinux=0 guestfs_verbose=1 TERM=xterm ' \ -drive file=/var/tmp/.guestfs-0/root.13124,snapshot=on,if=virtio,cache=writeback qemu: could not load PC BIOS 'bios.bin' recv_from_daemon: 0x116ac80 g->state = 1, size_rtn = 0x7fff807f395c, buf_rtn = 0x7fff807f3920 libguestfs: error: unexpected end of file when reading from daemon child_cleanup: 0x116ac80: child process died libguestfs-test-tool: failed to launch appliance closing guestfs handle 0x116ac80 (state 0) On Tue, Oct 11, 2011 at 6:54 PM, Richard W.M. Jones <rjones@redhat.com>wrote:
On Tue, Oct 11, 2011 at 06:39:24PM +0530, vipul borikar wrote:
I installed the qemu from source and wrote a wrapper script is given in doc.
# virt-list-partitions vm01.scilab
qemu: could not load PC BIOS 'bios.bin'
... and libguestfs-test-tool output is ...? Please read the README file all the way to the end. It explains how to test this and how to collect enough information to diagnose problems.
http://libguestfs.org/download/binaries/rhel5-packages/README.txt
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
-- 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 Wed, Oct 12, 2011 at 11:02:51AM +0530, vipul borikar wrote:
LIBGUESTFS_QEMU=/tmp/qemu.wrapper [...] [00236ms] /tmp/qemu.wrapper \ [...] qemu: could not load PC BIOS 'bios.bin'
Your qemu wrapper is not working for some reason. There should be a '-L' option being passed to qemu, to a directory that contains 'bios.bin', but one of those things isn't happening. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/
Ok now i changed the wrapper to pint to bios file : #!/bin/sh qemudir=/opt/qemu/ exec $qemudir/bin/qemu-system-x86_64 -L /opt/qemu/share/qemu/ "$@" The error is gone. Then it was giving error of virtio-serial not supported error. I was using qemu 0.12.5 version. So installed 0.13.0 which is having virtio-serial support ( i guess) . Now its giving me some other error. I have attached the output of libguestfs-test-tool . On Wed, Oct 12, 2011 at 2:54 PM, Richard W.M. Jones <rjones@redhat.com>wrote:
On Wed, Oct 12, 2011 at 11:02:51AM +0530, vipul borikar wrote:
LIBGUESTFS_QEMU=/tmp/qemu.wrapper [...] [00236ms] /tmp/qemu.wrapper \ [...] qemu: could not load PC BIOS 'bios.bin'
Your qemu wrapper is not working for some reason. There should be a '-L' option being passed to qemu, to a directory that contains 'bios.bin', but one of those things isn't happening.
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/
-- 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 Wed, Oct 12, 2011 at 04:03:49PM +0530, vipul borikar wrote:
Now its giving me some other error. I have attached the output of libguestfs-test-tool .
It's not too much fun acting as a proxy between your questions and the README file which, yet again, answers your question if only you would read it. http://libguestfs.org/download/binaries/rhel5-packages/README.txt Quote: " Requirements ------------ (1) RHEL 5.6 is required. RHEL <= 5.5 *will not work*. CentOS <= 5.5 *will not work*. " The kernel you are using is from RHEL 5.5. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
OK. OS version i mentioned in my first mail. No worries. I will try to install older packages now. Thanks for the help.. On Wed, Oct 12, 2011 at 4:43 PM, Richard W.M. Jones <rjones@redhat.com>wrote:
On Wed, Oct 12, 2011 at 04:03:49PM +0530, vipul borikar wrote:
Now its giving me some other error. I have attached the output of libguestfs-test-tool .
It's not too much fun acting as a proxy between your questions and the README file which, yet again, answers your question if only you would read it.
http://libguestfs.org/download/binaries/rhel5-packages/README.txt
Quote:
" Requirements ------------
(1) RHEL 5.6 is required. RHEL <= 5.5 *will not work*. CentOS <= 5.5 *will not work*. "
The kernel you are using is from RHEL 5.5.
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
-- 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."
participants (2)
-
Richard W.M. Jones -
vipul borikar