Errors Running on Ubuntu 13.10
I'm trying to use virt-sysprep on an Ubuntu 13.10 vm running on OpenStack. I've followed the command "gotchas" from the FAQ and still not had any luck. *What are you trying to do?* Attempting to use virt-sysprep on a qcow2 image made with virt-install *What commands?* I've run virt-sysprep (with both -d and -a options) and gotten the following error: Fatal error: exception Guestfs.Error("guestfs_launch failed. This usually means the libguestfs appliance failed to start or crashed. See http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs or run 'libguestfs-test-tool' and post the *complete* output into a bug report I then went through the FAQ and followed the recommended steps. 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 *Version information:* libguestfs-tools: Installed: 1:1.22.4-1ubuntu1 Candidate: 1:1.22.4-1ubuntu1 Version table: *** 1:1.22.4-1ubuntu1 0 500 http://archive.ubuntu.com/ubuntu/ saucy-updates/universe amd64 Packages 100 /var/lib/dpkg/status 1:1.22.4-1 0 500 http://archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages virtinst: Installed: 0.600.4-2ubuntu2.1 Candidate: 0.600.4-2ubuntu2.1 Version table: *** 0.600.4-2ubuntu2.1 0 500 http://archive.ubuntu.com/ubuntu/ saucy-updates/main amd64 Packages 100 /var/lib/dpkg/status 0.600.4-2ubuntu2 0 500 http://archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages seabios: Installed: 1.7.3-1 Candidate: 1.7.3-1 Version table: *** 1.7.3-1 0 500 http://archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages 100 /var/lib/dpkg/status
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? 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? 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://people.redhat.com/~rjones/virt-df/
On Jan 23, 2014, at 4:47 AM, Richard W.M. Jones <rjones@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
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://people.redhat.com/~rjones/virt-df/
Please keep libguestfs mailing list in the CC. 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@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-ver... 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
On Thu, Jan 23, 2014 at 09:54:01PM +0000, Richard W.M. Jones wrote: [...]
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
FWIW this is a Linux kernel message (so it got as far as the kernel). The next messages should have been: [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 3.11.0-15-generic (buildd@batsu) (gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu8) ) #23-Ubuntu SMP Mon Dec 9 18:17:04 UTC 2013 (Ubuntu 3.11.0-15.23-generic 3.11.10) [ 0.000000] Command line: 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-256color [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] Centaur CentaurHauls [ 0.000000] e820: BIOS-provided physical RAM map: etc. 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 KVM guests. http://libguestfs.org/virt-v2v
On Jan 23, 2014, at 1:54 PM, Richard W.M. Jones <rjones@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@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?
Here’s the strace from libguestfs-test-tool. http://hastebin.com/gowayehowu.tex
http://libguestfs.org/libguestfs-test-tool.1.html#trying-out-a-different-ver...
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
On Thu, Jan 23, 2014 at 02:06:03PM -0800, Tim Fall wrote:
On Jan 23, 2014, at 1:54 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
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?
Here’s the strace from libguestfs-test-tool.
That's not helpful. You need to strace _qemu_ by writing a qemu wrapper: ---------------------------------------------------------------------- #!/bin/bash - exec strace -o /tmp/qemu.log -f -s 1024 /usr/bin/qemu-system-x86_64 "$@" ---------------------------------------------------------------------- chmod +x the script, then point LIBGUESTFS_QEMU at this script. See: http://libguestfs.org/guestfs.3.html#qemu-wrappers Attach the qemu.log to this list. The pastebin link above does not work for me. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
Here’s the trace you requested. I can dump the text if the attachment doesn’t work. On Jan 24, 2014, at 12:44 AM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Thu, Jan 23, 2014 at 02:06:03PM -0800, Tim Fall wrote:
On Jan 23, 2014, at 1:54 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
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?
Here’s the strace from libguestfs-test-tool.
That's not helpful. You need to strace _qemu_ by writing a qemu wrapper:
---------------------------------------------------------------------- #!/bin/bash - exec strace -o /tmp/qemu.log -f -s 1024 /usr/bin/qemu-system-x86_64 "$@" ----------------------------------------------------------------------
chmod +x the script, then point LIBGUESTFS_QEMU at this script.
See: http://libguestfs.org/guestfs.3.html#qemu-wrappers
Attach the qemu.log to this list. The pastebin link above does not work for me.
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
On Fri, Jan 24, 2014 at 12:45:43PM -0800, Tim Fall wrote:
Here’s the trace you requested. I can dump the text if the attachment doesn’t work.
Thanks. It's a mystery why it doesn't work. qemu simply exits (with success), with no indication at all why. There seems to be nothing at that point in the kernel which could cause an exit/reboot either. You're not running out of RAM / swap / disk space / ...? ulimit set too low? 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://people.redhat.com/~rjones/virt-df/
Not that I know of, resource usage seems totally normal. Also, as I mentioned, virt-install and virt-manager can both access and run vm's on qmeu without any trouble. Ulimit is also unset. On Fri, Jan 24, 2014 at 2:42 PM, Richard W.M. Jones <rjones@redhat.com>wrote:
On Fri, Jan 24, 2014 at 12:45:43PM -0800, Tim Fall wrote:
Here’s the trace you requested. I can dump the text if the attachment doesn’t work.
Thanks.
It's a mystery why it doesn't work. qemu simply exits (with success), with no indication at all why. There seems to be nothing at that point in the kernel which could cause an exit/reboot either.
You're not running out of RAM / swap / disk space / ...? ulimit set too low?
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://people.redhat.com/~rjones/virt-df/
On Fri, Jan 24, 2014 at 04:49:24PM -0800, Tim Fall wrote:
Not that I know of, resource usage seems totally normal. Also, as I mentioned, virt-install and virt-manager can both access and run vm's on qmeu without any trouble. Ulimit is also unset.
You can try a different qemu from upstream, which should diagnose whether this is a kernel problem or a qemu problem: ---------------------------------------------------------------------- git clone git://git.qemu.org/qemu.git cd qemu sudo apt-get build-dep qemu ./configure --target-list=x86_64-softmmu make -j2 cat > qemu.wrapper <<EOF #!/bin/bash - qemudir=$(pwd) exec \$qemudir/x86_64-softmmu/qemu-system-x86_64 -L \$qemudir/pc-bios "\$@" EOF chmod +x qemu.wrapper export LIBGUESTFS_QEMU=$(pwd)/qemu.wrapper libguestfs-test-tool ---------------------------------------------------------------------- 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#)
Grabbed the newest qemu. Still crashes. Attached trace. On Jan 24, 2014, at 11:26 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Fri, Jan 24, 2014 at 04:49:24PM -0800, Tim Fall wrote:
Not that I know of, resource usage seems totally normal. Also, as I mentioned, virt-install and virt-manager can both access and run vm's on qmeu without any trouble. Ulimit is also unset.
You can try a different qemu from upstream, which should diagnose whether this is a kernel problem or a qemu problem:
----------------------------------------------------------------------
git clone git://git.qemu.org/qemu.git cd qemu
sudo apt-get build-dep qemu
./configure --target-list=x86_64-softmmu make -j2
cat > qemu.wrapper <<EOF #!/bin/bash - qemudir=$(pwd) exec \$qemudir/x86_64-softmmu/qemu-system-x86_64 -L \$qemudir/pc-bios "\$@" EOF
chmod +x qemu.wrapper
export LIBGUESTFS_QEMU=$(pwd)/qemu.wrapper libguestfs-test-tool
----------------------------------------------------------------------
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#)
This fails in the same way, which suggests something other than qemu is at fault. You could try a different kernel. http://libguestfs.org/guestfs.3.html#environment-variables Also make sure you are not running out of some resource, such as memory, disk, etc (see previous email). 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#)
Richard, I’ve tried with a few kernels now (3.11.0-12, 3.4) and get the same results. Could this because I’m using a relatively new kernel on Ubuntu to work with a CentOS image (that wouldn’t make sense to me, but I thought I’d ask). -Tim On Jan 27, 2014, at 2:23 AM, Richard W.M. Jones <rjones@redhat.com> wrote:
This fails in the same way, which suggests something other than qemu is at fault. You could try a different kernel.
http://libguestfs.org/guestfs.3.html#environment-variables
Also make sure you are not running out of some resource, such as memory, disk, etc (see previous email).
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#)
I think I may have gotten slightly further. Log attached. Here were the pertinent env variables: LIBGUESTFS_TRACE=1 LIBGUESTFS_QEMU=/home/ubuntu/qemu/qemu.wrapper SUPERMIN_KERNEL=/boot/vmlinuz-3.4.0-030400-generic -Tim On Jan 27, 2014, at 2:23 AM, Richard W.M. Jones <rjones@redhat.com> wrote:
This fails in the same way, which suggests something other than qemu is at fault. You could try a different kernel.
http://libguestfs.org/guestfs.3.html#environment-variables
Also make sure you are not running out of some resource, such as memory, disk, etc (see previous email).
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#)
participants (2)
-
Richard W.M. Jones -
Tim Fall