David Konerding
2011-Aug-08 22:55 UTC
[Libguestfs] libguestfs-test-tool on ubuntu: kernel panic
Hi, I am trying to get libguestfs-test-tool working on ubuntu. The first problem I had was that HiveX won't compile on ubuntu to due to some missing symbols (rpl-getopt, I see this has already been reported). Second problem is that if HiveX is not available, guestfish doesn't link because code refers to symbols which aren't compiled into libguestfs (I was able to work around this by #ifdeffing references to those functions). I'm not reporting on either of those problems (yet). While trying to get guestfish running, I noticed it failed to boot the appliance. I ran the suggested libguestfs-test-tool and am providing the output. I think the problem is that it's trying to use the kernel from my (customized) Ubuntu workstation to build a Fedora machine, but I'm not certain what the specific problem is (my experience is these two distributions differ so much in the built-in kernel options there are a host of problems that can occur). I was wondering if there is a way to get a Fedora kernel and boot with that instead of my host kernel. Anyway, including the diagnostic output in case it helps. libguestfs: new guestfs handle 0x12da3c0 libguestfs: [00000ms] febootstrap-supermin-helper --verbose -f checksum '/usr/local/home/dek/sw/libguestfs-1.12.3/lib/guestfs/supermin.d' x86_64 supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = (null), initrd = (null), appliance = (null) supermin helper [00000ms] inputs[0] /usr/local/home/dek/sw/libguestfs-1.12.3/lib/guestfs/supermin.d checking modpath /lib/modules/2.6.32-redacted-generic is a directory picked vmlinuz-2.6.32-redacted-generic because modpath /lib/modules/2.6.32-redacted-generic exists checking modpath /lib/modules/2.6.32-redacted-generic is a directory picked vmlinuz-2.6.32-redacted-generic because modpath /lib/modules/2.6.32-redacted-generic exists supermin helper [00000ms] finished creating kernel supermin helper [00000ms] visiting /usr/local/home/dek/sw/libguestfs-1.12.3/lib/guestfs/supermin.d supermin helper [00000ms] visiting /usr/local/home/dek/sw/libguestfs-1.12.3/lib/guestfs/supermin.d/base.img supermin helper [00000ms] visiting /usr/local/home/dek/sw/libguestfs-1.12.3/lib/guestfs/supermin.d/daemon.img supermin helper [00000ms] visiting /usr/local/home/dek/sw/libguestfs-1.12.3/lib/guestfs/supermin.d/hostfiles supermin helper [00002ms] visiting /usr/local/home/dek/sw/libguestfs-1.12.3/lib/guestfs/supermin.d/init.img supermin helper [00033ms] finished creating appliance libguestfs: [00037ms] begin testing qemu features libguestfs: [00051ms] finished testing qemu features libguestfs: accept_from_daemon: 0x12da3c0 g->state = 1 libguestfs: [00051ms] /home/dek/sw/qemu-kvm-0.14.1/bin//qemu-system-x86_64 \ -drive file=/tmp/libguestfs-test-tool-sda-mte9oJ,cache=off,format=raw,if=virtio \ -nodefconfig \ -enable-kvm \ -nodefaults \ -nographic \ -m 500 \ -no-reboot \ -no-hpet \ -device virtio-serial \ -serial stdio \ -chardev socket,path=/tmp/libguestfsj5iN3r/guestfsd.sock,id=channel0 \ -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \ -kernel /var/tmp/.guestfs-88619/kernel.32581 \ -initrd /var/tmp/.guestfs-88619/initrd.32581 \ -append 'panic=1 console=ttyS0 udevtimeout=300 noapic acpi=off printk.time=1 cgroup_disable=memory selinux=0 guestfs_verbose=1 TERM=rxvt ' \ -drive file=/var/tmp/.guestfs-88619/root.32581,snapshot=on,if=virtio,cache=unsafe [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.32-redacted-generic (redacated) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #redacted-Ubuntu SMP Tue May 24 05:09:12 PDT 2011 (Ubuntu 2.6.32-redacted-generic 2.6.32.38+drm33.16) [ 0.000000] Command line: panic=1 console=ttyS0 udevtimeout=300 noapic acpi=off printk.time=1 cgroup_disable=memory selinux=0 guestfs_verbose=1 TERM=rxvt [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] Centaur CentaurHauls [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009bc00 (usable) [ 0.000000] BIOS-e820: 000000000009bc00 - 00000000000a0000 (reserved) [ 0.000000] BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) [ 0.000000] BIOS-e820: 0000000000100000 - 000000001f3fd000 (usable) [ 0.000000] BIOS-e820: 000000001f3fd000 - 000000001f400000 (reserved) [ 0.000000] BIOS-e820: 00000000feffc000 - 00000000ff000000 (reserved) [ 0.000000] BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved) [ 0.000000] DMI 2.4 present. [ 0.000000] last_pfn = 0x1f3fd max_arch_pfn = 0x400000000 [ 0.000000] PAT not supported by CPU. [ 0.000000] Scanning 1 areas for low memory corruption [ 0.000000] modified physical RAM map: [ 0.000000] modified: 0000000000000000 - 0000000000001000 (usable) [ 0.000000] modified: 0000000000001000 - 0000000000006000 (reserved) [ 0.000000] modified: 0000000000006000 - 000000000009bc00 (usable) [ 0.000000] modified: 000000000009bc00 - 00000000000a0000 (reserved) [ 0.000000] modified: 00000000000f0000 - 0000000000100000 (reserved) [ 0.000000] modified: 0000000000100000 - 000000001f3fd000 (usable) [ 0.000000] modified: 000000001f3fd000 - 000000001f400000 (reserved) [ 0.000000] modified: 00000000feffc000 - 00000000ff000000 (reserved) [ 0.000000] modified: 00000000fffc0000 - 0000000100000000 (reserved) [ 0.000000] init_memory_mapping: 0000000000000000-000000001f3fd000 [ 0.000000] NX (Execute Disable) protection: active [ 0.000000] RAMDISK: 1f2f8000 - 1f3efa00 [ 0.000000] No NUMA configuration found [ 0.000000] Faking a node at 0000000000000000-000000001f3fd000 [ 0.000000] Bootmem setup node 0 0000000000000000-000000001f3fd000 [ 0.000000] NODE_DATA [0000000000009000 - 000000000000dfff] [ 0.000000] bootmap [000000000000e000 - 0000000000011e7f] pages 4 [ 0.000000] (7 early reservations) ==> bootmem [0000000000 - 001f3fd000] [ 0.000000] #0 [0000000000 - 0000001000] BIOS data page ==> [0000000000 - 0000001000] [ 0.000000] #1 [0000006000 - 0000008000] TRAMPOLINE ==> [0000006000 - 0000008000] [ 0.000000] #2 [0001000000 - 0001a423a4] TEXT DATA BSS ==> [0001000000 - 0001a423a4] [ 0.000000] #3 [001f2f8000 - 001f3efa00] RAMDISK ==> [001f2f8000 - 001f3efa00] [ 0.000000] #4 [000009bc00 - 0000100000] BIOS reserved ==> [000009bc00 - 0000100000] [ 0.000000] #5 [0001a43000 - 0001a43049] BRK ==> [0001a43000 - 0001a43049] [ 0.000000] #6 [0000008000 - 0000009000] PGTABLE ==> [0000008000 - 0000009000] [ 0.000000] found SMP MP-table at [ffff8800000fdbf0] fdbf0 [ 0.000000] kvm-clock: cpu 0, msr 0:1859d01, boot clock [ 0.000000] Zone PFN ranges: [ 0.000000] DMA 0x00000000 -> 0x00001000 [ 0.000000] DMA32 0x00001000 -> 0x00100000 [ 0.000000] Normal 0x00100000 -> 0x00100000 [ 0.000000] Movable zone start PFN for each node [ 0.000000] early_node_map[3] active PFN ranges [ 0.000000] 0: 0x00000000 -> 0x00000001 [ 0.000000] 0: 0x00000006 -> 0x0000009b [ 0.000000] 0: 0x00000100 -> 0x0001f3fd [ 0.000000] SFI: Simple Firmware Interface v0.7 http://simplefirmware.org [ 0.000000] Intel MultiProcessor Specification v1.4 [ 0.000000] MPTABLE: OEM ID: BOCHSCPU [ 0.000000] MPTABLE: Product ID: 0.1 [ 0.000000] MPTABLE: APIC at: 0xFEE00000 [ 0.000000] Processor #0 (Bootup-CPU) [ 0.000000] I/O APIC #1 Version 17 at 0xFEC00000. [ 0.000000] Processors: 1 [ 0.000000] SMP: Allowing 1 CPUs, 0 hotplug CPUs [ 0.000000] PM: Registered nosave memory: 0000000000001000 - 0000000000006000 [ 0.000000] PM: Registered nosave memory: 000000000009b000 - 000000000009c000 [ 0.000000] PM: Registered nosave memory: 000000000009c000 - 00000000000a0000 [ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000 [ 0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000 [ 0.000000] Allocating PCI resources starting at 1f400000 (gap: 1f400000:dfbfc000) [ 0.000000] Booting paravirtualized kernel on KVM [ 0.000000] NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:1 nr_node_ids:1 [ 0.000000] PERCPU: Embedded 30 pages/cpu @ffff880001c00000 s91992 r8192 d22696 u2097152 [ 0.000000] pcpu-alloc: s91992 r8192 d22696 u2097152 alloc=1*2097152 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] kvm-clock: cpu 0, msr 0:1c15d01, primary cpu clock [ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 126037 [ 0.000000] Policy zone: DMA32 [ 0.000000] Kernel command line: panic=1 console=ttyS0 udevtimeout=300 noapic acpi=off printk.time=1 cgroup_disable=memory selinux=0 guestfs_verbose=1 TERM=rxvt [ 0.000000] Disabling memory control group subsystem [ 0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes) [ 0.000000] Initializing CPU#0 [ 0.000000] Checking aperture... [ 0.000000] No AGP bridge found [ 0.000000] Memory: 491628k/511988k available (5418k kernel code, 424k absent, 19936k reserved, 3040k data, 888k init) [ 0.000000] SLUB: Genslabs=14, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] NR_IRQS:4352 nr_irqs:256 [ 0.000000] Console: colour dummy device 80x25 [ 0.000000] console [ttyS0] enabled [ 0.000000] Detected 2666.884 MHz processor. [ 0.000000] TSC resynchronization disabled on non-AMD processors [ 0.020000] Calibrating delay loop (skipped) preset value.. 5333.76 BogoMIPS (lpj=26668840) [ 0.020000] Security Framework initialized [ 0.020000] AppArmor: AppArmor initialized [ 0.020000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes) [ 0.020000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes) [ 0.020000] Mount-cache hash table entries: 256 [ 0.020000] Initializing cgroup subsys ns [ 0.020000] Initializing cgroup subsys cpuacct [ 0.020000] Initializing cgroup subsys memory [ 0.020000] Initializing cgroup subsys devices [ 0.020000] Initializing cgroup subsys freezer [ 0.020000] Initializing cgroup subsys net_cls [ 0.020000] CPU: L1 I cache: 32K, L1 D cache: 32K [ 0.020000] CPU: L2 cache: 4096K [ 0.020000] CPU 0/0x0 -> Node 0 [ 0.020000] mce: CPU supports 10 MCE banks [ 0.020000] Performance Events: unsupported p6 CPU model 2 no PMU driver, software events only. [ 0.020000] SMP alternatives: switching to UP code [ 0.036487] Freeing SMP alternatives: 40k freed [ 0.036868] ftrace: converting mcount calls to 0f 1f 44 00 00 [ 0.037294] ftrace: allocating 22510 entries in 89 pages [ 0.060084] Setting APIC routing to flat [ 0.060509] CPU0: Intel QEMU Virtual CPU version 0.14.1 stepping 03 [ 0.180142] Brought up 1 CPUs [ 0.180420] Total of 1 processors activated (5333.76 BogoMIPS). [ 0.181077] devtmpfs: initialized [ 0.181589] regulator: core version 0.5 [ 0.181962] Time: 22:24:15 Date: 08/08/11 [ 0.182346] NET: Registered protocol family 16 [ 0.182875] PCI: Using configuration type 1 for base access [ 0.183873] bio: create slab <bio-0> at 0 [ 0.184298] ACPI: Interpreter disabled. [ 0.184657] vgaarb: loaded [ 0.184970] SCSI subsystem initialized [ 0.185422] usbcore: registered new interface driver usbfs [ 0.185892] usbcore: registered new interface driver hub [ 0.186427] usbcore: registered new device driver usb [ 0.186962] PCI: Probing PCI hardware [ 0.188091] pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI [ 0.188699] pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB [ 0.190467] pci 0000:00:01.0: PIIX/ICH IRQ router [8086:7000] [ 0.191162] NetLabel: Initializing [ 0.191455] NetLabel: domain hash size = 128 [ 0.191820] NetLabel: protocols = UNLABELED CIPSOv4 [ 0.192240] NetLabel: unlabeled traffic allowed by default [ 0.192734] Switching to clocksource kvm-clock [ 0.194632] AppArmor: AppArmor Filesystem Enabled [ 0.195042] pnp: PnP ACPI: disabled [ 0.195493] NET: Registered protocol family 2 [ 0.195910] IP route cache hash table entries: 4096 (order: 3, 32768 bytes) [ 0.196685] TCP established hash table entries: 16384 (order: 6, 262144 bytes) [ 0.197463] TCP bind hash table entries: 16384 (order: 6, 262144 bytes) [ 0.198174] TCP: Hash tables configured (established 16384 bind 16384) [ 0.198743] TCP reno registered [ 0.199067] NET: Registered protocol family 1 [ 0.199446] pci 0000:00:00.0: Limiting direct PCI/PCI transfers [ 0.199948] pci 0000:00:01.0: PIIX3: Enabling Passive Release [ 0.200000] pci 0000:00:01.0: Activating ISA DMA hang workarounds [ 0.200000] platform rtc_cmos: registered platform RTC device (no PNP device found) [ 0.200000] Scanning for low memory corruption every 60 seconds [ 0.200000] audit: initializing netlink socket (disabled) [ 0.200000] type=2000 audit(1312842256.197:1): initialized [ 0.206962] Trying to unpack rootfs image as initramfs... [ 0.208967] Freeing initrd memory: 990k freed [ 0.209521] HugeTLB registered 2 MB page size, pre-allocated 0 pages [ 0.211015] VFS: Disk quotas dquot_6.5.2 [ 0.211416] Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.212498] fuse init (API version 7.13) [ 0.212959] msgmni has been set to 962 [ 0.213485] alg: No test for stdrng (krng) [ 0.213872] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) [ 0.214489] io scheduler noop registered [ 0.214820] io scheduler anticipatory registered [ 0.215206] io scheduler deadline registered [ 0.215605] io scheduler cfq registered (default) [ 0.216045] pci_hotplug: PCI Hot Plug PCI Core version: 0.5 [ 0.216533] pciehp: PCI Express Hot Plug Controller Driver version: 0.4 [ 0.217996] Linux agpgart interface v0.103 [ 0.218381] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.219080] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [ 0.220456] brd: module loaded [ 0.221081] loop: module loaded [ 0.221412] input: Macintosh mouse button emulation as /devices/virtual/input/input0 [ 0.222300] scsi0 : ata_piix [ 0.222642] scsi1 : ata_piix [ 0.222927] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14 [ 0.223507] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15 [ 0.224454] Fixed MDIO Bus: probed [ 0.224772] PPP generic driver version 2.4.2 [ 0.225170] tun: Universal TUN/TAP device driver, 1.6 [ 0.225606] tun: (C) 1999-2004 Max Krasnyansky <maxk at qualcomm.com> [ 0.226187] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 0.226748] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 0.227271] uhci_hcd: USB Universal Host Controller Interface driver [ 0.227843] PNP: No PS/2 controller found. Probing ports directly. [ 0.228779] serio: i8042 KBD port at 0x60,0x64 irq 1 [ 0.229202] serio: i8042 AUX port at 0x60,0x64 irq 12 [ 0.229908] mice: PS/2 mouse device common for all mice [ 0.230592] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1 [ 0.231505] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0 [ 0.232078] rtc0: alarms up to one day, 114 bytes nvram [ 0.232592] device-mapper: uevent: version 1.0.3 [ 0.233076] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel at redhat.com [ 0.233851] device-mapper: multipath: version 1.1.0 loaded [ 0.234315] device-mapper: multipath round-robin: version 1.0.0 loaded [ 0.234971] cpuidle: using governor ladder [ 0.235325] cpuidle: using governor menu [ 0.235868] TCP cubic registered [ 0.236282] NET: Registered protocol family 10 [ 0.236981] lo: Disabled Privacy Extensions [ 0.237508] NET: Registered protocol family 17 [ 0.237992] registered taskstats version 1 [ 0.238536] Magic number: 7:322:451 [ 0.238902] rtc_cmos rtc_cmos: setting system clock to 2011-08-08 22:24:15 UTC (1312842255) [ 0.239598] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found [ 0.240131] EDD information not available. [ 0.380353] Freeing unused kernel memory: 888k freed [ 0.381017] Write protecting the kernel read-only data: 7752k febootstrap: mounting /proc febootstrap: uptime: 0.38 0.18 febootstrap: ext2 mini initrd starting up febootstrap: mounting /sys febootstrap: internal insmod libcrc32c.ko insmod: init_module: libcrc32c.ko: Unknown symbol in module febootstrap: internal insmod crc32c-intel.ko insmod: init_module: crc32c-intel.ko: No such device febootstrap: internal insmod crc-itu-t.ko febootstrap: internal insmod crc32c.ko febootstrap: internal insmod crc-ccitt.ko febootstrap: internal insmod crc7.ko febootstrap: internal insmod scsi_transport_spi.ko febootstrap: internal insmod sym53c8xx.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_ring.ko febootstrap: internal insmod virtio_pci.ko [ 0.401786] virtio-pci 0000:00:02.0: found PCI INT A -> IRQ 10 [ 0.403044] virtio-pci 0000:00:03.0: found PCI INT A -> IRQ 11 [ 0.404030] vda: unknown partition table [ 0.405451] virtio-pci 0000:00:04.0: found PCI INT A -> IRQ 11 [ 0.406442] vdb: unknown partition table febootstrap: internal insmod virtio_balloon.ko febootstrap: picked /sys/block/vdb/dev as root device febootstrap: creating /dev/root as block special 251:16 febootstrap: mounting new root on /root febootstrap: chroot /proc/uptime: No such file or directory execl: /init: No such file or directory febootstrap: debug: listing directory / 2 d . 040755 4096 88619:5000 2 d .. 040755 4096 88619:5000 11 d lost+found 040700 16384 0:0 12 d bin 040750 4096 23083:5000 13 d boot 040750 4096 23083:5000 14 d etc 040750 4096 23083:5000 109 d lib 040750 4096 23083:5000 156 d sbin 040750 4096 23083:5000 157 d usr 040750 4096 23083:5000 534 d var 040750 4096 23083:5000 690 - init 100750 3264 23083:5000 febootstrap: debug: listing directory /bin 12 d . 040750 4096 23083:5000 2 d .. 040755 4096 88619:5000 540 l rbash 120777 4 0:0 -> bash 541 l sh 120777 9 0:0 -> /bin/bash febootstrap: debug: listing directory /lib 109 d . 040750 4096 23083:5000 2 d .. 040755 4096 88619:5000 110 d cryptsetup 040750 4096 23083:5000 113 d firmware 040750 4096 23083:5000 145 d init 040750 4096 23083:5000 146 d modules 040750 4096 23083:5000 147 d security 040750 4096 23083:5000 148 d udev 040750 4096 23083:5000 551 l libaio.so.1 120777 15 0:0 -> libaio.so.1.0.1 552 l libbsd.so.0 120777 15 0:0 -> libbsd.so.0.2.0 553 l libdbus-1.so.3 120777 18 0:0 -> libdbus-1.so.3.4.0 554 l libdrm_intel.so.1 120777 21 0:0 -> libdrm_intel.so.1.0.0 555 l libdrm_nouveau.so.1 120777 23 0:0 -> libdrm_nouveau.so.1.0.0 556 l libdrm_radeon.so.1 120777 22 0:0 -> libdrm_radeon.so.1.0.0 557 l libfuse.so.2 120777 16 0:0 -> libfuse.so.2.8.1 558 l libgcrypt.so.11 120777 19 0:0 -> libgcrypt.so.11.5.2 559 l libglib-2.0.so.0 120777 23 0:0 -> libglib-2.0.so.0.2400.1 560 l libnih-dbus.so.1 120777 20 0:0 -> libnih-dbus.so.1.0.0 561 l libnih.so.1 120777 15 0:0 -> libnih.so.1.0.0 562 - libntfs-3g.so.75.0.0 100644 266616 0:0 563 l libntfs-3g.so.75 120777 20 0:0 -> libntfs-3g.so.75.0.0 564 l libparted.so.0 120777 18 0:0 -> libparted.so.0.0.1 565 l libpcre.so.3 120777 17 0:0 -> libpcre.so.3.12.1 566 l libply-boot-client.so.2 120777 27 0:0 -> libply-boot-client.so.2.0.0 567 l libply-splash-core.so.2 120777 27 0:0 -> libply-splash-core.so.2.0.0 568 l libply-splash-graphics.so.2 120777 31 0:0 -> libply-splash-graphics.so.2.0.0 569 l libply.so.2 120777 15 0:0 -> libply.so.2.0.0 570 l libpng12.so.0 120777 18 0:0 -> libpng12.so.0.42.0 571 l libpopt.so.0 120777 16 0:0 -> libpopt.so.0.0.0 572 l libslang.so.2 120777 17 0:0 -> libslang.so.2.2.2 573 l libss.so.2 120777 12 0:0 -> libss.so.2.0 574 l libudev.so.0 120777 16 0:0 -> libudev.so.0.6.1 575 l libulockmgr.so.1 120777 20 0:0 -> libulockmgr.so.1.0.1 576 l libusb-0.1.so.4 120777 19 0:0 -> libusb-0.1.so.4.4.4 febootstrap: debug: listing directory /lib64 /lib64: No such file or directory [ 0.437284] Kernel panic - not syncing: Attempted to kill init! [ 0.437873] Pid: 1, comm: init Not tainted 2.6.32-redacted-generic #redacted-Ubuntu [ 0.438573] Call Trace: [ 0.438826] [<ffffffff81540282>] panic+0x78/0x14b [ 0.439306] [<ffffffff8106988d>] forget_original_parent+0x30d/0x320 [ 0.440101] [<ffffffff81068cb4>] ? put_files_struct+0xc4/0xf0 [ 0.440686] [<ffffffff810698bb>] exit_notify+0x1b/0x1b0 [ 0.441208] [<ffffffff8106b300>] do_exit+0x1c0/0x390 [ 0.441715] [<ffffffff8106b525>] do_group_exit+0x55/0xd0 [ 0.442245] [<ffffffff8106b5b7>] sys_exit_group+0x17/0x20 [ 0.442795] [<ffffffff810121b2>] system_call_fastpath+0x16/0x1b [ 0.443434] Rebooting in 1 seconds..libguestfs: error: unexpected end of file when reading from daemon. See earlier debug messages. Or you can run 'libguestfs-test-tool' and post the complete output into a bug report or message to the libguestfs mailing list. libguestfs: child_cleanup: 0x12da3c0: child process died libguestfs-test-tool: failed to launch appliance libguestfs: closing guestfs handle 0x12da3c0 (state 0) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libguestfs/attachments/20110808/e9a63c11/attachment.htm>
Richard W.M. Jones
2011-Aug-09 09:08 UTC
[Libguestfs] libguestfs-test-tool on ubuntu: kernel panic
On Mon, Aug 08, 2011 at 03:55:07PM -0700, David Konerding wrote:> Hi, > > I am trying to get libguestfs-test-tool working on ubuntu. The first > problem I had was that HiveX won't compile on ubuntu to due to some missing > symbols (rpl-getopt, I see this has already been reported). Second problem > is that if HiveX is not available, guestfish doesn't link because code > refers to symbols which aren't compiled into libguestfs (I was able to work > around this by #ifdeffing references to those functions).Which version of Ubuntu is this? hivex should be in Ubuntu already, thanks to Hilko Bengen: http://packages.ubuntu.com/oneiric/libhivex-dev The problem with missing hivex/pcre causing libguestfs builds to break is known: https://bugzilla.redhat.com/show_bug.cgi?id=723474> Anyway, including the diagnostic output in case it helps.[...]> execl: /init: No such file or directory > febootstrap: debug: listing directory / > 2 d . 040755 4096 88619:5000 > 2 d .. 040755 4096 88619:5000 > 11 d lost+found 040700 16384 0:0 > 12 d bin 040750 4096 23083:5000 > 13 d boot 040750 4096 23083:5000 > 14 d etc 040750 4096 23083:5000 > 109 d lib 040750 4096 23083:5000 > 156 d sbin 040750 4096 23083:5000 > 157 d usr 040750 4096 23083:5000 > 534 d var 040750 4096 23083:5000 > 690 - init 100750 3264 23083:5000 > febootstrap: debug: listing directory /bin > 12 d . 040750 4096 23083:5000 > 2 d .. 040755 4096 88619:5000 > 540 l rbash 120777 4 0:0 -> bash > 541 l sh 120777 9 0:0 -> /bin/bash > febootstrap: debug: listing directory /lib > 109 d . 040750 4096 23083:5000 > 2 d .. 040755 4096 88619:5000 > 110 d cryptsetup 040750 4096 23083:5000 > 113 d firmware 040750 4096 23083:5000 > 145 d init 040750 4096 23083:5000 > 146 d modules 040750 4096 23083:5000 > 147 d security 040750 4096 23083:5000 > 148 d udev 040750 4096 23083:5000 > 551 l libaio.so.1 120777 15 0:0 -> libaio.so.1.0.1 > 552 l libbsd.so.0 120777 15 0:0 -> libbsd.so.0.2.0 > 553 l libdbus-1.so.3 120777 18 0:0 -> libdbus-1.so.3.4.0 > 554 l libdrm_intel.so.1 120777 21 0:0 -> libdrm_intel.so.1.0.0 > 555 l libdrm_nouveau.so.1 120777 23 0:0 -> libdrm_nouveau.so.1.0.0 > 556 l libdrm_radeon.so.1 120777 22 0:0 -> libdrm_radeon.so.1.0.0 > 557 l libfuse.so.2 120777 16 0:0 -> libfuse.so.2.8.1 > 558 l libgcrypt.so.11 120777 19 0:0 -> libgcrypt.so.11.5.2 > 559 l libglib-2.0.so.0 120777 23 0:0 -> libglib-2.0.so.0.2400.1 > 560 l libnih-dbus.so.1 120777 20 0:0 -> libnih-dbus.so.1.0.0 > 561 l libnih.so.1 120777 15 0:0 -> libnih.so.1.0.0 > 562 - libntfs-3g.so.75.0.0 100644 266616 0:0 > 563 l libntfs-3g.so.75 120777 20 0:0 -> libntfs-3g.so.75.0.0 > 564 l libparted.so.0 120777 18 0:0 -> libparted.so.0.0.1 > 565 l libpcre.so.3 120777 17 0:0 -> libpcre.so.3.12.1 > 566 l libply-boot-client.so.2 120777 27 0:0 -> libply-boot-client.so.2.0.0 > 567 l libply-splash-core.so.2 120777 27 0:0 -> libply-splash-core.so.2.0.0 > 568 l libply-splash-graphics.so.2 120777 31 0:0 -> > libply-splash-graphics.so.2.0.0 > 569 l libply.so.2 120777 15 0:0 -> libply.so.2.0.0 > 570 l libpng12.so.0 120777 18 0:0 -> libpng12.so.0.42.0 > 571 l libpopt.so.0 120777 16 0:0 -> libpopt.so.0.0.0 > 572 l libslang.so.2 120777 17 0:0 -> libslang.so.2.2.2 > 573 l libss.so.2 120777 12 0:0 -> libss.so.2.0 > 574 l libudev.so.0 120777 16 0:0 -> libudev.so.0.6.1 > 575 l libulockmgr.so.1 120777 20 0:0 -> libulockmgr.so.1.0.1 > 576 l libusb-0.1.so.4 120777 19 0:0 -> libusb-0.1.so.4.4.4 > febootstrap: debug: listing directory /lib64The problem is that both /bin/bash and libc are completely missing from the appliance. During the build, was febootstrap able to download all the packages it needed? Which version of febootstrap are you using? (Generally speaking, you should always try to use a recent version) Do /bin/bash and /lib/libc.so.* appear in appliance/supermin.d/hostfiles? Do the paths to the programs / libraries in hostfiles match up with what is available on the host filesystem? Have you installed (on the host) all the packages that are listed in appliance/packagelist? Is febootstrap downloading packages which match up with the packages installed on the host? You'll have problems if your apt configuration is significantly different from what is actually installed on your host, eg. if 'unstable' packages are installed on the host, but the unstable repo is disabled in sources.list. 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#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora