[Pkg-libvirt-maintainers] Bug#775761: libguestfs incorrectly detects host CPU architecture

Rogier rogier777 at gmail.com
Mon Jan 19 18:09:39 UTC 2015


Source: libguestfs
Version: 1:1.26.9-1
Severity: important

Dear Maintainer,

When trying to use virt-sparsify, I got the failure message:
	libguestfs error: guestfs_launch failed
Running libguestfs-test-tool shows that libguestfs incorrectly detects
the CPU type / architecture. It mentions:
	This kernel requires an x86-64 CPU, but only detected an i686 CPU.
	Unable to boot - please use a kernel appropriate for your CPU.
See below for the full libguestfs-test-tool output.

Both my CPU and my kernel are 64-bit (see below). Virtualisation is also
enabled and works fine - I frequently run both 32-bit and 64-bit virtual
machines (using: 'qemu-system-x86_64 -enable-kvm')

Both qemu-system-i386 and qemu-system-x86_64 are installed on my
system.

Kind regards,

Rogier.

(As an aside, on my system, libguestfs-test-tool does not seem to
 terminate. After printing the messages below, it just hangs.
 Similarly, virt-ls also seems to hang indefinitely, without
 producing any output.)


libguestfs-test-tool output:
----------------------------------------------------------------------
debian:root ~ 1 # uname -a
Linux debian 3.16-2-amd64 #1 SMP Debian 3.16.3-2 (2014-09-20) x86_64 GNU/Linux
debian:root ~ 2 # which qemu-system-x86_64 
/usr/bin/qemu-system-x86_64
debian:root ~ 3 # libguestfs-test-tool
     ************************************************************
     *                    IMPORTANT NOTICE
     *
     * When reporting bugs, include the COMPLETE, UNEDITED
     * output below in your bug report.
     *
     ************************************************************
PATH=/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SELinux: sh: 1: getenforce: not found
guestfs_get_append: (null)
guestfs_get_autosync: 1
guestfs_get_backend: direct
guestfs_get_backend_settings: []
guestfs_get_cachedir: /var/tmp
guestfs_get_direct: 0
guestfs_get_hv: /usr/bin/qemu-system-i386
guestfs_get_memsize: 500
guestfs_get_network: 0
guestfs_get_path: /usr/lib/i386-linux-gnu/guestfs
guestfs_get_pgroup: 0
guestfs_get_program: libguestfs-test-tool
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: i586
Launching appliance, timeout set to 600 seconds.
libguestfs: launch: program=libguestfs-test-tool
libguestfs: launch: version=1.26.9
libguestfs: launch: backend registered: unix
libguestfs: launch: backend registered: uml
libguestfs: launch: backend registered: libvirt
libguestfs: launch: backend registered: direct
libguestfs: launch: backend=direct                                                                                                                                                  
libguestfs: launch: tmpdir=/tmp/libguestfsOEAmDG                                                                                                                                    
libguestfs: launch: umask=0022                                                                                                                                                      
libguestfs: launch: euid=0                                                                                                                                                          
libguestfs: [00000ms] begin building supermin appliance                                                                                                                             
libguestfs: [00000ms] run supermin                                                                                                                                                  
libguestfs: command: run: /usr/bin/supermin                                                                                                                                         
libguestfs: command: run: \ --build                                                                                                                                                 
libguestfs: command: run: \ --verbose                                                                                                                                               
libguestfs: command: run: \ --if-newer                                                                                                                                              
libguestfs: command: run: \ --lock /var/tmp/.guestfs-0/lock                                                                                                                         
libguestfs: command: run: \ --copy-kernel                                                                                                                                           
libguestfs: command: run: \ -f ext2
libguestfs: command: run: \ --host-cpu i586
libguestfs: command: run: \ /usr/lib/i386-linux-gnu/guestfs/supermin.d
libguestfs: command: run: \ -o /var/tmp/.guestfs-0/appliance.d
supermin: version: 5.1.10
supermin: package handler: debian/dpkg
supermin: acquiring lock on /var/tmp/.guestfs-0/lock
supermin: if-newer: output does not need rebuilding
libguestfs: [00006ms] finished building supermin appliance
libguestfs: [00006ms] begin testing qemu features
libguestfs: command: run: /usr/bin/qemu-system-i386
libguestfs: command: run: \ -display none
libguestfs: command: run: \ -help
libguestfs: command: run: /usr/bin/qemu-system-i386
libguestfs: command: run: \ -display none
libguestfs: command: run: \ -version
libguestfs: qemu version 2.1
libguestfs: command: run: /usr/bin/qemu-system-i386
libguestfs: command: run: \ -display none
libguestfs: command: run: \ -machine accel=kvm:tcg
libguestfs: command: run: \ -device ?
libguestfs: [00122ms] finished testing qemu features
[00123ms] /usr/bin/qemu-system-i386 \
    -global virtio-blk-pci.scsi=off \
    -nodefconfig \
    -enable-fips \
    -nodefaults \
    -display none \
    -machine accel=kvm:tcg \
    -m 500 \
    -no-reboot \
    -rtc driftfix=slew \
    -no-hpet \
    -global kvm-pit.lost_tick_policy=discard \
    -kernel /var/tmp/.guestfs-0/appliance.d/kernel \
    -initrd /var/tmp/.guestfs-0/appliance.d/initrd \
    -device virtio-scsi-pci,id=scsi \
    -drive file=/tmp/libguestfsOEAmDG/scratch.1,cache=unsafe,format=raw,id=hd0,if=none \
    -device scsi-hd,drive=hd0 \
    -drive file=/var/tmp/.guestfs-0/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none \
    -device scsi-hd,drive=appliance \
    -device virtio-serial-pci \
    -serial stdio \
    -device sga \
    -chardev socket,path=/tmp/libguestfsOEAmDG/guestfsd.sock,id=channel0 \
    -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
    -append 'panic=1 noapic console=ttyS0 udevtimeout=6000 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 12/07/13
SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $ (mjt at gandalf) Sat Dec  7 15:39:53 UTC 2013
Term: 80x24
4 0
SeaBIOS (version 1.7.5-20140531_083030-gandalf)
Booting from ROM...
This kernel requires an x86-64 CPU, but only detected an i686 CPU.
Unable to boot - please use a kernel appropriate for your CPU.
^C
----------------------------------------------------------------------

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (x86_64)

Kernel: Linux 3.16-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



More information about the Pkg-libvirt-maintainers mailing list