[Libguestfs] libguestfs hanging on CentOS 6.2

Richard W.M. Jones rjones at redhat.com
Sun Jan 19 12:58:38 UTC 2014


On Sun, Jan 19, 2014 at 09:22:55AM -0300, Christopher Pereira wrote:
> Just in case, here is also the output after exiting the
> libguestfs-test-tool:
> 
> ...
> febootstrap: internal insmod ext2.ko
> [    0.965626] input: ImExPS/2 Generic Explorer Mouse as
> /devices/platform/i8042/serio1/input/input2

The next line here should be:

  febootstrap: picked /sys/block/vdb/dev as root device

So for whatever reason febootstrap cannot find the appliance disk.  It
is added correctly on the qemu command line.

Versions installed (from IRC chat) were:

  libguestfs-1.20.11-2.el6.x86_64
  libguestfs-winsupport-1.0-7.el6.x86_64 

(ie. from RHEL 6.5)

My suggestion is that you're going to have to upgrade the kernel and
qemu (at least) to the same as from RHEL 6.5, since we don't test
mixed old/new packages.  Given that 18 months passed between 6.2 & 6.5
it could be a bug in just about anything.

Note that libguestfs will use the newest kernel in /boot, so you can
install the newer kernel even if there's some (eg hardware) problem
keeping you on the old host kernel.

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
-------------- next part --------------
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: add_drive "/tmp/libguestfs-test-tool-sda-5seoXz" "format:raw"
libguestfs: trace: add_drive = 0
libguestfs: trace: version
libguestfs: trace: version = <struct guestfs_version *>
libguestfs: trace: get_append
libguestfs: trace: get_append = "NULL"
libguestfs: trace: get_attach_method
libguestfs: trace: get_attach_method = "appliance"
libguestfs: trace: get_autosync
libguestfs: trace: get_autosync = 1
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: trace: get_direct
libguestfs: trace: get_direct = 0
libguestfs: trace: get_memsize
libguestfs: trace: get_memsize = 500
libguestfs: trace: get_network
libguestfs: trace: get_network = 0
libguestfs: trace: get_path
libguestfs: trace: get_path = "/usr/lib64/guestfs"
libguestfs: trace: get_pgroup
libguestfs: trace: get_pgroup = 0
libguestfs: trace: get_qemu
libguestfs: trace: get_qemu = "/usr/libexec/qemu-kvm"
libguestfs: trace: get_recovery_proc
libguestfs: trace: get_recovery_proc = 1
libguestfs: trace: get_selinux
libguestfs: trace: get_selinux = 0
libguestfs: trace: get_smp
libguestfs: trace: get_smp = 1
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: trace: get_trace
libguestfs: trace: get_trace = 1
libguestfs: trace: get_verbose
libguestfs: trace: get_verbose = 1
libguestfs: trace: launch
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: launch: attach-method=appliance
libguestfs: launch: tmpdir=/tmp/libguestfsyFhvw2
libguestfs: launch: umask=0022
libguestfs: launch: euid=0
libguestfs: command: run: febootstrap-supermin-helper
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ -f checksum
libguestfs: command: run: \ /usr/lib64/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/lib64/guestfs/supermin.d
checking modpath /lib/modules/2.6.32-220.el6.x86_64 is a directory
picked vmlinuz-2.6.32-220.el6.x86_64 because modpath /lib/modules/2.6.32-220.el6.x86_64 exists
checking modpath /lib/modules/2.6.32-220.17.1.el6.x86_64 is a directory
picked vmlinuz-2.6.32-220.17.1.el6.x86_64 because modpath /lib/modules/2.6.32-220.17.1.el6.x86_64 exists
supermin helper [00000ms] finished creating kernel
supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d
supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d/base.img
supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d/daemon.img
supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d/hostfiles
supermin helper [00019ms] visiting /usr/lib64/guestfs/supermin.d/init.img
supermin helper [00019ms] visiting /usr/lib64/guestfs/supermin.d/ntfs.hostfiles
supermin helper [00019ms] visiting /usr/lib64/guestfs/supermin.d/ntfs.img
supermin helper [00020ms] visiting /usr/lib64/guestfs/supermin.d/udev-rules.img
supermin helper [00020ms] adding kernel modules
supermin helper [00048ms] finished creating appliance
libguestfs: checksum of existing appliance: fc354338f22127fed50dea8f570dba58b2e0b1e327ad369f694812cf78cca7ad
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: [00050ms] begin testing qemu features
libguestfs: command: run: /usr/libexec/qemu-kvm
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -help
libguestfs: command: run: /usr/libexec/qemu-kvm
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -version
libguestfs: qemu version 0.12
libguestfs: command: run: /usr/libexec/qemu-kvm
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -machine accel=kvm:tcg
libguestfs: command: run: \ -device ?
libguestfs: [00116ms] finished testing qemu features
libguestfs: accept_from_daemon: 0x2303cf0 g->state = 1
[00117ms] /usr/libexec/qemu-kvm \
    -global virtio-blk-pci.scsi=off \
    -nodefconfig \
    -nodefaults \
    -nographic \
    -machine accel=kvm:tcg \
    -cpu host,+kvmclock \
    -m 500 \
    -no-reboot \
    -kernel /var/tmp/.guestfs-0/kernel.8465 \
    -initrd /var/tmp/.guestfs-0/initrd.8465 \
    -device virtio-scsi-pci,id=scsi \
    -drive file=/tmp/libguestfs-test-tool-sda-5seoXz,cache=none,format=raw,id=hd0,if=none \
    -device scsi-hd,drive=hd0 \
    -drive file=/var/tmp/.guestfs-0/root.8465,snapshot=on,id=appliance,if=none,cache=unsafe \
    -device scsi-hd,drive=appliance \
    -device virtio-serial \
    -serial stdio \
    -device sga \
    -chardev socket,path=/tmp/libguestfsyFhvw2/guestfsd.sock,id=channel0 \
    -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
    -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 12/07/11
SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $ (mockbuild at c6b18n1.dev.centos.org) Wed Dec  7 17:04:47 UTC 2011
Term: 80x24
4 0
\x1b[2J
SeaBIOS (version 1.7.1-20130104_044418-bn5.alt.bsys.dev.centos.org)




Probing EDD (edd=off to disable)... ok

\x1b[2J\x1b[2JInitializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-220.el6.x86_64 (mockbuild at c6b18n3.bsys.dev.centos.org) (gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) ) #1 SMP Tue Dec 6 19:48:22 GMT 2011
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
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001f3fe000 (usable)
 BIOS-e820: 000000001f3fe000 - 000000001f400000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
SMBIOS version 2.4 @ 0xFDA20
last_pfn = 0x1f3fe max_arch_pfn = 0x400000000
x86 PAT enabled: cpu 0, old 0x0, new 0x7010600070106
Using GB pages for direct mapping
init_memory_mapping: 0000000000000000-000000001f3fe000
RAMDISK: 1f1af000 - 1f3ef400
No NUMA configuration found
Faking a node at 0000000000000000-000000001f3fe000
Bootmem setup node 0 0000000000000000-000000001f3fe000
  NODE_DATA [0000000000009000 - 000000000003cfff]
  bootmap [000000000003d000 -  0000000000040e7f] pages 4
(7 early reservations) ==> bootmem [0000000000 - 001f3fe000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 000200c7e4]    TEXT DATA BSS ==> [0001000000 - 000200c7e4]
  #3 [001f1af000 - 001f3ef400]          RAMDISK ==> [001f1af000 - 001f3ef400]
  #4 [000009f800 - 0000100000]    BIOS reserved ==> [000009f800 - 0000100000]
  #5 [000200d000 - 000200d059]              BRK ==> [000200d000 - 000200d059]
  #6 [0000008000 - 0000009000]          PGTABLE ==> [0000008000 - 0000009000]
found SMP MP-table at [ffff8800000fda40] fda40
kvm-clock: Using msrs 4b564d01 and 4b564d00
kvm-clock: cpu 0, msr 0:1c1df41, boot clock
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009f
    0: 0x00000100 -> 0x0001f3fe
SFI: Simple Firmware Interface v0.7 http://simplefirmware.org
Intel MultiProcessor Specification v1.4
MPTABLE: OEM ID: BOCHSCPU
MPTABLE: Product ID: 0.1         
MPTABLE: APIC at: 0xFEE00000
Processor #0 (Bootup-CPU)
I/O APIC #0 Version 17 at 0xFEC00000.
Processors: 1
SMP: Allowing 1 CPUs, 0 hotplug CPUs
PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 1f400000 (gap: 1f400000:e0bbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 30 pages/cpu @ffff880002200000 s92696 r8192 d21992 u2097152
pcpu-alloc: s92696 r8192 d21992 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:2215f41, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 126050
Policy zone: DMA32
Kernel 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
[    0.000000] Disabling memory control group subsystem
[    0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[    0.000000] xsave/xrstor: enabled xstate_bv 0x7, cntxt size 0x340
[    0.000000] Checking aperture...
[    0.000000] No AGP bridge found
[    0.000000] AMD-Vi disabled by default: pass amd_iommu=on to enable
[    0.000000] Memory: 484056k/511992k available (5084k kernel code, 392k absent, 27544k reserved, 7229k data, 1244k init)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:33024 nr_irqs:256
[    0.000000] Console: colour dummy device 80x25
[    0.000000] console [ttyS0] enabled
[    0.000000] Detected 2399.700 MHz processor.
[    0.001999] Calibrating delay loop (skipped) preset value.. 4799.40 BogoMIPS (lpj=2399700)
[    0.002495] pid_max: default: 32768 minimum: 301
[    0.003213] Security Framework initialized
[    0.004009] SELinux:  Disabled at boot.
[    0.005501] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.007164] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.008085] Mount-cache hash table entries: 256
[    0.009543] Initializing cgroup subsys ns
[    0.010007] Initializing cgroup subsys cpuacct
[    0.011007] Initializing cgroup subsys memory
[    0.012017] Initializing cgroup subsys devices
[    0.013006] Initializing cgroup subsys freezer
[    0.013766] Initializing cgroup subsys net_cls
[    0.014005] Initializing cgroup subsys blkio
[    0.015010] Initializing cgroup subsys perf_event
[    0.017603] mce: CPU supports 10 MCE banks
[    0.018107] alternatives: switching to unfair spinlock
[    0.025176] SMP alternatives: switching to UP code
[    0.046969] Freeing SMP alternatives: 33k freed
[    0.047010] ftrace: converting mcount calls to 0f 1f 44 00 00
[    0.048006] ftrace: allocating 20776 entries in 82 pages
[    0.051067] Enabling x2apic
[    0.051620] Enabled x2apic
[    0.052005] Setting APIC routing to physical x2apic
[    0.055174] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[    0.056001] CPU0: AMD Opteron(tm) Processor 3280                  stepping 02
[    0.160036] Performance Events: no PMU driver, software events only.
[    0.160999] NMI watchdog disabled (cpu0): hardware events not enabled
[    0.161015] Brought up 1 CPUs
[    0.162002] Total of 1 processors activated (4799.40 BogoMIPS).
[    0.163503] devtmpfs: initialized
[    0.167109] regulator: core version 0.5
[    0.167898] NET: Registered protocol family 16
[    0.170041] PCI: Using configuration type 1 for base access
[    0.171001] PCI: Using configuration type 1 for extended access
[    0.173157] bio: create slab <bio-0> at 0
[    0.174034] ACPI: Interpreter disabled.
[    0.174775] vgaarb: loaded
[    0.175535] SCSI subsystem initialized
[    0.176104] usbcore: registered new interface driver usbfs
[    0.177015] usbcore: registered new interface driver hub
[    0.178020] usbcore: registered new device driver usb
[    0.179082] PCI: Probing PCI hardware
[    0.182341] pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
[    0.183014] pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
[    0.187183] pci 0000:00:01.0: PIIX/ICH IRQ router [8086:7000]
[    0.188245] NetLabel: Initializing
[    0.189002] NetLabel:  domain hash size = 128
[    0.190001] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.190911] NetLabel:  unlabeled traffic allowed by default
[    0.191052] Switching to clocksource kvm-clock
[    0.203061] pnp: PnP ACPI: disabled
[    0.204002] NET: Registered protocol family 2
[    0.204877] IP route cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.206717] TCP established hash table entries: 16384 (order: 6, 262144 bytes)
[    0.208125] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    0.209396] TCP: Hash tables configured (established 16384 bind 16384)
[    0.210588] TCP reno registered
[    0.211259] NET: Registered protocol family 1
[    0.212061] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[    0.213165] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[    0.214271] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[    0.215428] Trying to unpack rootfs image as initramfs...
[    0.218248] Freeing initrd memory: 2305k freed
[    0.219638] platform rtc_cmos: registered platform RTC device (no PNP device found)
[    0.221603] audit: initializing netlink socket (disabled)
[    0.223544] type=2000 audit(1377036102.223:1): initialized
[    0.235509] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.237990] VFS: Disk quotas dquot_6.5.2
[    0.239650] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.241687] msgmni has been set to 950
[    0.242688] alg: No test for stdrng (krng)
[    0.243517] ksign: Installing public key data
[    0.244390] Loading keyring
[    0.244918] - Added public key 3A25C209CBB1D210
[    0.245760] - User ID: CentOS (Kernel Module GPG key)
[    0.246901] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.248310] io scheduler noop registered
[    0.249026] io scheduler anticipatory registered
[    0.249940] io scheduler deadline registered
[    0.250779] io scheduler cfq registered (default)
[    0.251788] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    0.252838] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[    0.254135] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.256684] Non-volatile memory driver v1.3
[    0.257481] Linux agpgart interface v0.103
[    0.258302] crash memory driver: version 1.1
[    0.259082] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
\xff[    0.504591] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.507025] brd: module loaded
[    0.508168] loop: module loaded
[    0.508792] input: Macintosh mouse button emulation as /devices/virtual/input/input0
[    0.510258] Fixed MDIO Bus: probed
[    0.510919] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.512143] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.513297] uhci_hcd: USB Universal Host Controller Interface driver
[    0.514542] PNP: No PS/2 controller found. Probing ports directly.
[    0.516628] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.517561] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.518587] mice: PS/2 mouse device common for all mice
[    0.519961] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
[    0.521866] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[    0.523164] rtc0: alarms up to one day, 114 bytes nvram
[    0.524036] cpuidle: using governor ladder
[    0.529012] cpuidle: using governor menu
[    0.530026] usbcore: registered new interface driver hiddev
[    0.531076] usbcore: registered new interface driver usbhid
[    0.532059] usbhid: v2.6:USB HID core driver
[    0.532968] TCP cubic registered
[    0.533588] Initializing XFRM netlink socket
[    0.534398] NET: Registered protocol family 17
[    0.535321] registered taskstats version 1
[    0.536536] rtc_cmos rtc_cmos: setting system clock to 2014-01-19 11:34:46 UTC (1390131286)
[    0.538095] Initalizing network drop monitor service
[    0.539038] Freeing unused kernel memory: 1244k freed
[    0.540277] Write protecting the kernel read-only data: 10240k
[    0.541573] Freeing unused kernel memory: 1040k freed
[    0.542857] Freeing unused kernel memory: 1760k freed
febootstrap: mounting /proc
febootstrap: uptime: 0.54 0.29
febootstrap: ext2 mini initrd starting up: 3.21 zlib
febootstrap: cmdline: 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
febootstrap: mounting /sys
febootstrap: internal insmod libcrc32c.ko
febootstrap: internal insmod crc32c-intel.ko
febootstrap: internal insmod crc-itu-t.ko
febootstrap: internal insmod crc-t10dif.ko
febootstrap: internal insmod crc-ccitt.ko
febootstrap: internal insmod crc7.ko
febootstrap: internal insmod mbcache.ko
febootstrap: internal insmod cdrom.ko
febootstrap: internal insmod sr_mod.ko
febootstrap: internal insmod ata_piix.ko
[    0.583606] scsi0 : ata_piix
[    0.584262] scsi1 : ata_piix
[    0.584823] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc060 irq 14
[    0.586074] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc068 irq 15
febootstrap: internal insmod scsi_transport_spi.ko
febootstrap: internal insmod sym53c8xx.ko
febootstrap: internal insmod sd_mod.ko
febootstrap: internal insmod virtio_ring.ko
febootstrap: internal insmod virtio.ko
febootstrap: internal insmod virtio-rng.ko
febootstrap: internal insmod virtio_console.ko
febootstrap: internal insmod virtio_blk.ko
febootstrap: internal insmod virtio_net.ko
febootstrap: internal insmod virtio_pci.ko
[    0.785342] virtio-pci 0000:00:02.0: PCI->APIC IRQ transform: INT A -> IRQ 10
[    0.786114] virtio-pci 0000:00:03.0: PCI->APIC IRQ transform: INT A -> IRQ 11
febootstrap: internal insmod virtio_balloon.ko
febootstrap: internal insmod jbd2.ko
febootstrap: internal insmod ext4.ko
febootstrap: internal insmod ext2.ko
[    0.961692] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input2
...HANGS!


More information about the Libguestfs mailing list