lzy.dev at gmail.com
2011-Dec-30 01:57 UTC
[Libguestfs] libguestfs-test-tool say "child process died" on ubuntu 11.10 x64
Hi all, As title, thanks a lot. My test host configurations: Linux desktop 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:28:43 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux The test tool output as following: xxx at desktop:~$ sudo libguestfs-test-tool [sudo] password for xxx: ===== Test starts here ====LIBGUESTFS_DEBUG=1 TMPDIR=(not set) libguestfs: new guestfs handle 0x16cd0f0 library version: 1.15.11 guestfs_get_append: (null) guestfs_get_attach_method: appliance guestfs_get_autosync: 1 guestfs_get_direct: 0 guestfs_get_memsize: 500 guestfs_get_network: 0 guestfs_get_path: /usr/lib/guestfs guestfs_get_pgroup: 0 guestfs_get_qemu: /usr/bin/kvm guestfs_get_recovery_proc: 1 guestfs_get_selinux: 0 guestfs_get_smp: 1 guestfs_get_trace: 0 guestfs_get_verbose: 1 host_cpu: x86_64 Launching appliance, timeout set to 600 seconds. libguestfs: [00000ms] febootstrap-supermin-helper --verbose -f checksum '/usr/lib/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/lib/guestfs/supermin.d checking modpath /lib/modules/3.0.0-13-generic is a directory picked vmlinuz-3.0.0-13-generic because modpath /lib/modules/3.0.0-13-generic exists checking modpath /lib/modules/3.0.0-14-generic is a directory picked vmlinuz-3.0.0-14-generic because modpath /lib/modules/3.0.0-14-generic exists supermin helper [00000ms] finished creating kernel supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d/base.img supermin helper [00001ms] visiting /usr/lib/guestfs/supermin.d/daemon.img supermin helper [00001ms] visiting /usr/lib/guestfs/supermin.d/hostfiles supermin helper [00031ms] visiting /usr/lib/guestfs/supermin.d/init.img supermin helper [00196ms] finished creating appliance libguestfs: [00201ms] begin building supermin appliance libguestfs: [00203ms] run febootstrap-supermin-helper libguestfs: [00205ms] febootstrap-supermin-helper --verbose -f ext2 /usr/lib/guestfs/supermin.d x86_64 /var/tmp/guestfs.jgetV0/kernel /var/tmp/guestfs.jgetV0/initrd /var/tmp/guestfs.jgetV0/root supermin helper [00000ms] whitelist = (not specified), host_cpu x86_64, kernel = /var/tmp/guestfs.jgetV0/kernel, initrd /var/tmp/guestfs.jgetV0/initrd, appliance /var/tmp/guestfs.jgetV0/root supermin helper [00000ms] inputs[0] = /usr/lib/guestfs/supermin.d checking modpath /lib/modules/3.0.0-13-generic is a directory picked vmlinuz-3.0.0-13-generic because modpath /lib/modules/3.0.0-13-generic exists checking modpath /lib/modules/3.0.0-14-generic is a directory picked vmlinuz-3.0.0-14-generic because modpath /lib/modules/3.0.0-14-generic exists supermin helper [00000ms] finished creating kernel supermin helper [01816ms] finished mke2fs supermin helper [01816ms] visiting /usr/lib/guestfs/supermin.d supermin helper [01817ms] visiting /usr/lib/guestfs/supermin.d/base.img supermin helper [01923ms] visiting /usr/lib/guestfs/supermin.d/daemon.img supermin helper [01932ms] visiting /usr/lib/guestfs/supermin.d/hostfiles supermin helper [07257ms] visiting /usr/lib/guestfs/supermin.d/init.img supermin helper [17331ms] finished creating appliance libguestfs: [17547ms] finished building supermin appliance libguestfs: [17581ms] begin testing qemu features libguestfs: [17611ms] finished testing qemu features libguestfs: accept_from_daemon: 0x16cd0f0 g->state = 1 [17614ms] /usr/bin/kvm \ -drive file=/tmp/libguestfs-test-tool-sda-6OA3hT,cache=off,format=raw,if=virtio \ -nodefconfig \ -machine accel=kvm:tcg \ -nodefaults \ -nographic \ -m 500 \ -no-reboot \ -no-hpet \ -device virtio-serial \ -serial stdio \ -chardev socket,path=/tmp/libguestfsJF88Lr/guestfsd.sock,id=channel0 \ -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \ -kernel /var/tmp/.guestfs-0/kernel.17521 \ -initrd /var/tmp/.guestfs-0/initrd.17521 \ -append 'panic=1 console=ttyS0 udevtimeout=300 no_timer_check acpi=off printk.time=1 cgroup_disable=memory selinux=0 guestfs_verbose=1 TERM=xterm ' \ -drive file=/var/tmp/.guestfs-0/root.17521,snapshot=on,if=virtio,cache=unsafeSupported machines are: pc Standard PC (alias of pc-0.14) pc-0.14 Standard PC (default) pc-0.13 Standard PC pc-0.12 Standard PC pc-0.11 Standard PC, qemu 0.11 pc-0.10 Standard PC, qemu 0.10 isapc ISA-only PC libguestfs: child_cleanup: 0x16cd0f0: child process died libguestfs: error: child process died unexpectedly libguestfs-test-tool: failed to launch appliance libguestfs: closing guestfs handle 0x16cd0f0 (state 0) Zhi Yan, Liu
Wanlong Gao
2011-Dec-30 06:58 UTC
[Libguestfs] libguestfs-test-tool say "child process died" on ubuntu 11.10 x64
On 12/30/2011 09:57 AM, lzy.dev at gmail.com wrote:> Hi all, > > As title, thanks a lot. My test host configurations: > > Linux desktop 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:28:43 UTC > 2011 x86_64 x86_64 x86_64 GNU/Linux > > The test tool output as following: > > xxx at desktop:~$ sudo libguestfs-test-tool > [sudo] password for xxx: > ===== Test starts here ====> LIBGUESTFS_DEBUG=1 > TMPDIR=(not set) > libguestfs: new guestfs handle 0x16cd0f0 > library version: 1.15.11 > guestfs_get_append: (null) > guestfs_get_attach_method: appliance > guestfs_get_autosync: 1 > guestfs_get_direct: 0 > guestfs_get_memsize: 500 > guestfs_get_network: 0 > guestfs_get_path: /usr/lib/guestfs > guestfs_get_pgroup: 0 > guestfs_get_qemu: /usr/bin/kvm > guestfs_get_recovery_proc: 1 > guestfs_get_selinux: 0 > guestfs_get_smp: 1 > guestfs_get_trace: 0 > guestfs_get_verbose: 1 > host_cpu: x86_64 > Launching appliance, timeout set to 600 seconds. > libguestfs: [00000ms] febootstrap-supermin-helper --verbose -f > checksum '/usr/lib/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/lib/guestfs/supermin.d > checking modpath /lib/modules/3.0.0-13-generic is a directory > picked vmlinuz-3.0.0-13-generic because modpath > /lib/modules/3.0.0-13-generic exists > checking modpath /lib/modules/3.0.0-14-generic is a directory > picked vmlinuz-3.0.0-14-generic because modpath > /lib/modules/3.0.0-14-generic exists > supermin helper [00000ms] finished creating kernel > supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d > supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d/base.img > supermin helper [00001ms] visiting /usr/lib/guestfs/supermin.d/daemon.img > supermin helper [00001ms] visiting /usr/lib/guestfs/supermin.d/hostfiles > supermin helper [00031ms] visiting /usr/lib/guestfs/supermin.d/init.imgHere missed "add kernel modules". Did you test 1.15.11-1 here http://libguestfs.org/download/binaries/ubuntu1110-packages/ ? I just tested on ubuntu-11.10 x86_64, but didn't see this error, can you test with the 1.15.11-1 package again and send the result here? Thanks -Wanlong Gao
Wanlong Gao
2011-Dec-30 07:29 UTC
[Libguestfs] libguestfs-test-tool say "child process died" on ubuntu 11.10 x64
On 12/30/2011 03:25 PM, lzy.dev at gmail.com wrote:> On Fri, Dec 30, 2011 at 2:58 PM, Wanlong Gao <wanlong.gao at gmail.com> wrote: >> On 12/30/2011 09:57 AM, lzy.dev at gmail.com wrote: >> >>> Hi all, >>> >>> As title, thanks a lot. My test host configurations: >>> >>> Linux desktop 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:28:43 UTC >>> 2011 x86_64 x86_64 x86_64 GNU/Linux >>> >>> The test tool output as following: >>> >>> xxx at desktop:~$ sudo libguestfs-test-tool >>> [sudo] password for xxx: >>> ===== Test starts here ====>>> LIBGUESTFS_DEBUG=1 >>> TMPDIR=(not set) >>> libguestfs: new guestfs handle 0x16cd0f0 >>> library version: 1.15.11 >>> guestfs_get_append: (null) >>> guestfs_get_attach_method: appliance >>> guestfs_get_autosync: 1 >>> guestfs_get_direct: 0 >>> guestfs_get_memsize: 500 >>> guestfs_get_network: 0 >>> guestfs_get_path: /usr/lib/guestfs >>> guestfs_get_pgroup: 0 >>> guestfs_get_qemu: /usr/bin/kvm >>> guestfs_get_recovery_proc: 1 >>> guestfs_get_selinux: 0 >>> guestfs_get_smp: 1 >>> guestfs_get_trace: 0 >>> guestfs_get_verbose: 1 >>> host_cpu: x86_64 >>> Launching appliance, timeout set to 600 seconds. >>> libguestfs: [00000ms] febootstrap-supermin-helper --verbose -f >>> checksum '/usr/lib/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/lib/guestfs/supermin.d >>> checking modpath /lib/modules/3.0.0-13-generic is a directory >>> picked vmlinuz-3.0.0-13-generic because modpath >>> /lib/modules/3.0.0-13-generic exists >>> checking modpath /lib/modules/3.0.0-14-generic is a directory >>> picked vmlinuz-3.0.0-14-generic because modpath >>> /lib/modules/3.0.0-14-generic exists >>> supermin helper [00000ms] finished creating kernel >>> supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d >>> supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d/base.img >>> supermin helper [00001ms] visiting /usr/lib/guestfs/supermin.d/daemon.img >>> supermin helper [00001ms] visiting /usr/lib/guestfs/supermin.d/hostfiles >>> supermin helper [00031ms] visiting /usr/lib/guestfs/supermin.d/init.img >> >> >> Here missed "add kernel modules". >> >> Did you test 1.15.11-1 here http://libguestfs.org/download/binaries/ubuntu1110-packages/ ? >> I just tested on ubuntu-11.10 x86_64, but didn't see this error, can you test with the >> 1.15.11-1 package again and send the result here? >> >> Thanks >> -Wanlong Gao > > Hi, > > The version of libguestfs I have tested is 1.15.11-1. And there deb > packages are all download from that official site. > Thanks.You can see this error every time?> > Zhi Yan, Liu
Richard W.M. Jones
2011-Dec-30 09:53 UTC
[Libguestfs] libguestfs-test-tool say "child process died" on ubuntu 11.10 x64
On Fri, Dec 30, 2011 at 09:57:36AM +0800, lzy.dev at gmail.com wrote:> library version: 1.15.11[...]> [17614ms] /usr/bin/kvm \ > -drive file=/tmp/libguestfs-test-tool-sda-6OA3hT,cache=off,format=raw,if=virtio > \ > -nodefconfig \ > -machine accel=kvm:tcg \ > -nodefaults \ > -nographic \ > -m 500 \ > -no-reboot \ > -no-hpet \ > -device virtio-serial \ > -serial stdio \ > -chardev socket,path=/tmp/libguestfsJF88Lr/guestfsd.sock,id=channel0 \ > -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \ > -kernel /var/tmp/.guestfs-0/kernel.17521 \ > -initrd /var/tmp/.guestfs-0/initrd.17521 \ > -append 'panic=1 console=ttyS0 udevtimeout=300 no_timer_check > acpi=off printk.time=1 cgroup_disable=memory selinux=0 > guestfs_verbose=1 TERM=xterm ' \ > -drive file=/var/tmp/.guestfs-0/root.17521,snapshot=on,if=virtio,cache=unsafeSupported > machines are: > pc Standard PC (alias of pc-0.14) > pc-0.14 Standard PC (default) > pc-0.13 Standard PC > pc-0.12 Standard PC > pc-0.11 Standard PC, qemu 0.11 > pc-0.10 Standard PC, qemu 0.10 > isapc ISA-only PCThis is a bug in qemu 0.15, fixed in qemu 1.0 (although 1.0 introduced another bug which prevents libguestfs from working out of the box there too). If you recompile libguestfs from source then it will detect this qemu problem at ./configure time and add some code to work around it. However the binaries on the website weren't compiled this way. In Fedora we patch around many qemu bugs, so it's worth keeping an eye on our qemu packages: http://pkgs.fedoraproject.org/gitweb/?p=qemu.git Here is the patch you need to qemu 0.15 which fixes the above bug: http://pkgs.fedoraproject.org/gitweb/?p=qemu.git;a=blob;f=qemu-Allow-to-leave-type-on-default-in-machine.patch;h=e4a8e6ddc6ce825517836c8d595c06584c3126f0;hb=refs/heads/f16 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