<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Jan 23, 2014, at 1:54 PM, Richard W.M. Jones <<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Please keep libguestfs mailing list in the CC.<br></div></blockquote><div><br></div>Sorry I realized that just after I sent it.<br><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br>On Thu, Jan 23, 2014 at 01:44:46PM -0800, Tim Fall wrote:<br><blockquote type="cite"><br>On Jan 23, 2014, at 4:47 AM, Richard W.M. Jones <<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>> wrote:<br><br><blockquote type="cite">On Thu, Jan 23, 2014 at 12:22:43AM -0800, Tim Fall wrote:<br><blockquote type="cite">Running libguestft-test-tool yields:<br><br><br>   ************************************************************<br>   *                    IMPORTANT NOTICE<br>   *<br>   * When reporting bugs, include the COMPLETE, UNEDITED<br>   * output below in your bug report.<br>   *<br>   ************************************************************<br>PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin<br>SELinux: sh: 1: getenforce: not found<br>library version: 1.22.4<br>guestfs_get_append: (null)<br>guestfs_get_backend: direct<br>guestfs_get_autosync: 1<br>guestfs_get_cachedir: /var/tmp<br>guestfs_get_direct: 0<br>guestfs_get_memsize: 500<br>guestfs_get_network: 0<br>guestfs_get_path: /usr/lib/guestfs<br>guestfs_get_pgroup: 0<br>guestfs_get_program: libguestfs-test-tool<br>guestfs_get_qemu: /usr/bin/qemu-system-x86_64<br>guestfs_get_recovery_proc: 1<br>guestfs_get_selinux: 0<br>guestfs_get_smp: 1<br>guestfs_get_tmpdir: /tmp<br>guestfs_get_trace: 0<br>guestfs_get_verbose: 1<br>host_cpu: x86_64<br>Launching appliance, timeout set to 600 seconds.<br>libguestfs: launch: backend=direct<br>libguestfs: launch: tmpdir=/tmp/libguestfsH1o0hZ<br>libguestfs: launch: umask=0022<br>libguestfs: launch: euid=0<br>libguestfs: command: run: supermin-helper<br>libguestfs: command: run: \ --verbose<br>libguestfs: command: run: \ -f checksum<br>libguestfs: command: run: \ /usr/lib/guestfs/supermin.d<br>libguestfs: command: run: \ x86_64<br>supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64,<br>kernel = (null), initrd = (null), appliance = (null)<br>supermin helper [00000ms] inputs[0] = /usr/lib/guestfs/supermin.d<br>checking modpath /lib/modules/3.11.0-15-generic is a directory<br>picked vmlinuz-3.11.0-15-generic because modpath<br>/lib/modules/3.11.0-15-generic exists<br>supermin helper [00000ms] finished creating kernel<br>supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d<br>supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d/base.img<br>supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d/daemon.img<br>supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d/hostfiles<br>supermin helper [00024ms] visiting /usr/lib/guestfs/supermin.d/init.img<br>supermin helper [00024ms] visiting<br>/usr/lib/guestfs/supermin.d/udev-rules.img<br>supermin helper [00024ms] adding kernel modules<br>supermin helper [00036ms] finished creating appliance<br>libguestfs: checksum of existing appliance:<br>9b64713489581d48f30dd83cc66458a1ef2d1a86dbc27d385cac945d7491f121<br>libguestfs: [00040ms] begin testing qemu features<br>libguestfs: command: run: /usr/bin/qemu-system-x86_64<br>libguestfs: command: run: \ -nographic<br>libguestfs: command: run: \ -help<br>libguestfs: command: run: /usr/bin/qemu-system-x86_64<br>libguestfs: command: run: \ -nographic<br>libguestfs: command: run: \ -version<br>libguestfs: qemu version 1.5<br>libguestfs: command: run: /usr/bin/qemu-system-x86_64<br>libguestfs: command: run: \ -nographic<br>libguestfs: command: run: \ -machine accel=kvm:tcg<br>libguestfs: command: run: \ -device ?<br>libguestfs: [00145ms] finished testing qemu features<br>[00145ms] /usr/bin/qemu-system-x86_64 \<br>  -global virtio-blk-pci.scsi=off \<br>  -nodefconfig \<br>  -nodefaults \<br>  -nographic \<br>  -device virtio-scsi-pci,id=scsi \<br>  -drive<br>file=/tmp/libguestfs-test-tool-sda-r1GMFw,cache=none,format=raw,id=hd0,if=none<br>\<br>  -device scsi-hd,drive=hd0 \<br>  -drive<br>file=/var/tmp/.guestfs-0/root.2492,snapshot=on,id=appliance,if=none,cache=unsafe<br>\<br>  -device scsi-hd,drive=appliance \<br>  -machine accel=kvm:tcg \<br>  -m 500 \<br>  -no-reboot \<br>  -no-hpet \<br>  -device virtio-serial \<br>  -serial stdio \<br>  -device sga \<br>  -chardev socket,path=/tmp/libguestfsH1o0hZ/guestfsd.sock,id=channel0 \<br>  -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \<br>  -kernel /var/tmp/.guestfs-0/kernel.2492 \<br>  -initrd /var/tmp/.guestfs-0/initrd.2492 \<br>  -append 'panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off<br>printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0<br>guestfs_verbose=1 TERM=xterm'\x1b[1;256r\x1b[256;256H\x1b[6n<br>Google, Inc.<br>Serial Graphics Adapter 06/09/13<br>SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $ (buildd@allspice)<br>Sun Jun  9 17:23:53 UTC 2013<br>Term: 80x24<br>4 0<br>SeaBIOS (version 1.7.3-20130708_231806-aatxe)<br>Booting from ROM...<br>\x1b[2J[    0.000000] Initializing cgroup subsys cpuset<br>libguestfs: error: appliance closed the connection unexpectedly, see<br>earlier error messages<br>libguestfs: child_cleanup: 0x19a9580: child process died<br>libguestfs: sending SIGTERM to process 2502<br>libguestfs: error: guestfs_launch failed, see earlier error messages<br>libguestfs-test-tool: failed to launch appliance<br>libguestfs: closing guestfs handle 0x19a9580 (state 0)<br>libguestfs: command: run: rm<br>libguestfs: command: run: \ -rf /tmp/libguestfsH1o0hZ<br></blockquote><br>Certainly looks like qemu is crashing.<br><br>If you enable core dumps, do you get any core files, and which process<br>is core dumping and what is the stack trace?<br></blockquote><br>I’ve enabled core dumps, but I’m not getting anything when qemu quits. Qemu also seems to operate correctly when doing virt-install.<br>If it’s important this is a Ubuntu VM.<br><blockquote type="cite"><br>libguestfs-test-tool works for me, with:<br><br>seabios          1.7.3-1<br>qemu             1.5.0+dfsg-3ubuntu5.2<br>libguestfs-tools 1:1.22.4-1ubuntu1<br>vmlinuz-3.11.0-15-generic<br><br>Which qemu & kernel are you using?<br></blockquote><br>qemu:<br> Installed: 1.5.0+dfsg-3ubuntu5.2<br> Candidate: 1.5.0+dfsg-3ubuntu5.2<br> Version table:<br>*** 1.5.0+dfsg-3ubuntu5.2 0<br>       500 <a href="http://archive.ubuntu.com/ubuntu/">http://archive.ubuntu.com/ubuntu/</a> saucy-updates/universe amd64 Packages<br>       100 /var/lib/dpkg/status<br>    1.5.0+dfsg-3ubuntu5 0<br>       500 <a href="http://archive.ubuntu.com/ubuntu/">http://archive.ubuntu.com/ubuntu/</a> saucy/universe amd64 Packages<br><br><br>Kernel:<br>3.11.0-15-generic #23-Ubuntu<br></blockquote><br>It seems to be the same as mine so I don't know why it's failing.<br>Perhaps strace qemu to see how it quits?<br></div></blockquote><div><br></div>Here’s the strace from libguestfs-test-tool.</div><div><br></div><div><a href="http://hastebin.com/gowayehowu.tex">http://hastebin.com/gowayehowu.tex</a></div><div><br><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br><a href="http://libguestfs.org/libguestfs-test-tool.1.html#trying-out-a-different-version-of-qemu">http://libguestfs.org/libguestfs-test-tool.1.html#trying-out-a-different-version-of-qemu</a><br><br>Rich.<br><br>--<span class="Apple-converted-space"> </span><br>Richard Jones, Virtualization Group, Red Hat<span class="Apple-converted-space"> </span><a href="http://people.redhat.com/~rjones">http://people.redhat.com/~rjones</a><br>virt-top is 'top' for virtual machines.  Tiny program with many<br>powerful monitoring features, net stats, disk stats, logging, etc.<br><a href="http://people.redhat.com/~rjones/virt-top">http://people.redhat.com/~rjones/virt-top</a></div></blockquote></div><br></body></html>