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