Hi RIch
Below are the logs updated logs of libguestfs-test-tool on ubuntu powerpc...
libguestfs-test-tool
************************************************************
* IMPORTANT NOTICE
*
* When reporting bugs, include the COMPLETE, UNEDITED
* output below in your bug report.
*
************************************************************
PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin
SELinux: Disabled
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/kvm
guestfs_get_memsize: 768
guestfs_get_network: 0
guestfs_get_path: /usr/local/lib/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: powerpc64
Launching appliance, timeout set to 600 seconds.
libguestfs: launch: program=libguestfs-test-tool
libguestfs: launch: version=1.26.1
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/libguestfskHPB9d
libguestfs: launch: umask=0002
libguestfs: launch: euid=1000
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-1000/lock
libguestfs: command: run: \ --copy-kernel
libguestfs: command: run: \ -f ext2
libguestfs: command: run: \ --host-cpu powerpc64
libguestfs: command: run: \ /usr/local/lib/guestfs/supermin.d
libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d
supermin: version: 5.1.8
supermin: package handler: debian/dpkg
supermin: acquiring lock on /var/tmp/.guestfs-1000/lock
supermin: if-newer: output does not need rebuilding
libguestfs: [00015ms] finished building supermin appliance
libguestfs: [00015ms] begin testing qemu features
libguestfs: command: run: /usr/bin/kvm
libguestfs: command: run: \ -display none
libguestfs: command: run: \ -help
libguestfs: command: run: /usr/bin/kvm
libguestfs: command: run: \ -display none
libguestfs: command: run: \ -version
libguestfs: qemu version 1.4
libguestfs: command: run: /usr/bin/kvm
libguestfs: command: run: \ -display none
libguestfs: command: run: \ -machine accel=kvm:tcg
libguestfs: command: run: \ -device ?
libguestfs: [00072ms] finished testing qemu features
ROOT IS root=/dev/sda
[00074ms] /usr/bin/kvm \
-global virtio-blk-pci.scsi=off \
-nodefconfig \
-enable-fips \
-nodefaults \
-display none \
-M ppce500 \
-machine accel=kvm:tcg \
-m 768 \
-no-reboot \
-rtc driftfix=slew \
-global kvm-pit.lost_tick_policy=discard \
-kernel /var/tmp/.guestfs-1000/appliance.d/kernel \
-initrd /var/tmp/.guestfs-1000/appliance.d/initrd \
-device virtio-scsi-pci,id=scsi \
-drive
file=/tmp/libguestfskHPB9d/scratch.1,cache=unsafe,format=raw,id=hd0,if=none
\
-device scsi-hd,drive=hd0 \
-drive
file=/var/tmp/.guestfs-1000/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none
\
-device scsi-hd,drive=appliance \
-device virtio-serial-pci \
-serial stdio \
-chardev socket,path=/tmp/libguestfskHPB9d/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/sda selinux=0
guestfs_verbose=1 TERM=xterm'
Using QEMU e500 machine description
MMU: Supported page sizes
4 KB as direct
1024 KB as direct
2048 KB as direct
4096 KB as direct
16384 KB as direct
65536 KB as direct
262144 KB as direct
1048576 KB as direct
MMU: Book3E HW tablewalk not supported
Found initrd at 0xc000000003000000:0xc0000000030b0800
bootconsole [udbg0] enabled
CPU maps initialized for 1 thread per core
Starting Linux PPC64 #10 SMP Tue May 27 10:48:24 IST 2014
-----------------------------------------------------
ppc64_pft_size = 0x0
physicalMemorySize = 0x30000000
ppc64_caches.dcache_line_size = 0x40
ppc64_caches.icache_line_size = 0x40
-----------------------------------------------------
Linux version 3.8.13-rt9-QorIQ-SDK-V1.4 (vvdn@openflow1) (gcc version 4.7.2
(GCC) ) #10 SMP Tue May 27 10:48:24 IST 2014
CF000012
Setup Arch
[boot]0012 Setup Arch
qemu_e500_setup_arch()
Zone ranges:
DMA [mem 0x00000000-0x2fffffff]
Normal empty
Movable zone start for each node
Early memory node ranges
node 0: [mem 0x00000000-0x2fffffff]
MMU: Allocated 2112 bytes of context maps for 255 contexts
CF000015
Setup Done
[boot]0015 Setup Done
PERCPU: Embedded 14 pages/cpu @c000000001a00000 s25408 r0 d31936 u1048576
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 193920
Kernel command line: panic=1 console=ttyS0 udevtimeout=600 no_timer_check
acpi=off printk.time=1 cgroup_disable=memory root=/dev/sda selinux=0
guestfs_verbose=1 TERM=xterm
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576
bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288
bytes)
[ 0.000000] Memory: 692292k/786432k available (11800k kernel code,
94140k reserved, 1192k data, 1890k bss, 392k init)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] \tRCU debugfs-based tracing is enabled.
[ 0.000000] \tCONFIG_RCU_FANOUT set to non-default value of 32
[ 0.000000] \tRCU restricting CPUs from NR_CPUS=24 to nr_cpu_ids=1.
[ 0.000000] NR_IRQS:512 nr_irqs:512 16
[ 0.000000] mpic: Setting up MPIC " OpenPIC " version 1.2 at e0040000,
max 1 CPUs
[ 0.000000] mpic: ISU size: 256, shift: 8, mask: ff
[ 0.000000] mpic: Initializing for 256 sources
[ 0.000000] clocksource: timebase mult[18000006] shift[24] registered
[ 0.000000] Console: colour dummy device 80x25
[ 0.003054] pid_max: default: 32768 minimum: 301
[ 0.004316] Mount-cache hash table entries: 256
[ 0.006864] e6500 family performance monitor hardware support registered
[ 0.009259] Brought up 1 CPUs
[ 0.010581] devtmpfs: initialized
[ 0.011938] xor: measuring software checksum speed
[ 0.050112] 8regs : 3397.000 MB/sec
[ 0.090254] 8regs_prefetch: 2978.000 MB/sec
[ 0.130394] 32regs : 3416.000 MB/sec
[ 0.170533] 32regs_prefetch: 3067.000 MB/sec
[ 0.171531] xor: using function: 32regs (3416.000 MB/sec)
[ 0.173469] NET: Registered protocol family 16
[ 0.178003] Found FSL PCI host bridge at 0x00000000e0008000. Firmware
bus number: 0->255
[ 0.180031] PCI host bridge /pci@e0008000 (primary) ranges:
[ 0.181365] MEM 0x00000000c0000000..0x00000000dfffffff ->
0x00000000c0000000
[ 0.183225] IO 0x00000000e1000000..0x00000000e100ffff ->
0x0000000000000000
[ 0.185264] /pci@e0008000: PCICSRBAR @ 0xfff00000
[ 0.186941] EDAC PCI0: Giving out device to module 'MPC85xx_edac'
controller 'mpc85xx_pci_err': DEV 'e0008000.pci' (INTERRUPT)
[ 0.189817] MPC85xx_edac acquired irq 24 for PCI Err
[ 0.191022] MPC85xx_edac PCI err registered
[ 0.193819] fsl-pamu: fsl_pamu_init: fsl-pamu: could not find a PAMU node
[ 0.205939] PCI: Probing PCI hardware
[ 0.207355] fsl-pci e0008000.pci: PCI host bridge to bus 0000:00
[ 0.208798] pci_bus 0000:00: root bus resource [io 0x10000-0x1ffff]
(bus address [0x0000-0xffff])
[ 0.211042] pci_bus 0000:00: root bus resource [mem
0xc0000000-0xdfffffff]
[ 0.212631] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.219804] pci 0000:00:00.0: bridge configuration invalid ([bus
00-00]), reconfiguring
[ 0.222854] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 0.225264] PCI: Cannot allocate resource region 0 of device
0000:00:00.0, will remap
[ 0.227192] PCI: Cannot allocate resource region 0 of device
0000:00:01.0, will remap
[ 0.229195] PCI: Cannot allocate resource region 0 of device
0000:00:02.0, will remap
[ 0.231299] pci 0000:00:00.0: BAR 0: assigned [mem 0xc0000000-0xc00fffff]
[ 0.235514] pci 0000:00:00.0: BAR 8: assigned [mem 0xc0100000-0xc01fffff]
[ 0.237120] pci 0000:00:01.0: BAR 1: assigned [mem 0xc0200000-0xc0200fff]
[ 0.238760] pci 0000:00:02.0: BAR 1: assigned [mem 0xc0201000-0xc0201fff]
[ 0.240585] pci 0000:00:01.0: BAR 0: assigned [io 0x11000-0x1103f]
[ 0.242078] pci 0000:00:02.0: BAR 0: assigned [io 0x11040-0x1105f]
[ 0.243614] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.244871] pci 0000:00:00.0: bridge window [io 0x10000-0x10fff]
[ 0.246514] pci 0000:00:00.0: bridge window [mem 0xc0100000-0xc01fffff]
[ 0.274019] bio: create slab <bio-0> at 0
[ 0.341414] raid6: altivecx1 1458 MB/s
[ 0.409673] raid6: altivecx2 1815 MB/s
[ 0.477900] raid6: altivecx4 2740 MB/s
[ 0.546168] raid6: altivecx8 2824 MB/s
[ 0.615756] raid6: int64x1 454 MB/s
[ 0.683978] raid6: int64x2 828 MB/s
[ 0.752252] raid6: int64x4 1215 MB/s
[ 0.820492] raid6: int64x8 1156 MB/s
[ 0.821308] raid6: using algorithm altivecx8 (2824 MB/s)
[ 0.822588] raid6: using intx1 recovery algorithm
[ 0.825003] vgaarb: loaded
[ 0.826260] SCSI subsystem initialized
[ 0.828405] usbcore: registered new interface driver usbfs
[ 0.829920] usbcore: registered new interface driver hub
[ 0.831385] usbcore: registered new device driver usb
[ 0.833694] No BMan portals available!
[ 0.835552] QMan: Allocated lookup table at 8000000000000000, entry
count 65537
[ 0.837293] No QMan portals available!
[ 0.839553] Switching to clocksource timebase
[ 0.854468] NET: Registered protocol family 2
[ 0.856161] TCP established hash table entries: 8192 (order: 5, 131072
bytes)
[ 0.858151] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[ 0.860016] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.861788] TCP: reno registered
[ 0.862622] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.864043] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.865958] NET: Registered protocol family 1
[ 0.867389] RPC: Registered named UNIX socket transport module.
[ 0.868833] RPC: Registered udp transport module.
[ 0.870008] RPC: Registered tcp transport module.
[ 0.871223] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.873628] Trying to unpack rootfs image as initramfs...
[ 0.879131] Freeing initrd memory: 708k freed
[ 0.883089] audit: initializing netlink socket (disabled)
[ 0.884471] type=2000 audit(0.860:1): initialized
[ 0.887288] HugeTLB registered 1 MB page size, pre-allocated 0 pages
[ 0.888897] HugeTLB registered 4 MB page size, pre-allocated 0 pages
[ 0.890385] HugeTLB registered 16 MB page size, pre-allocated 0 pages
[ 0.891886] HugeTLB registered 64 MB page size, pre-allocated 0 pages
[ 0.893612] HugeTLB registered 256 MB page size, pre-allocated 0 pages
[ 0.895169] HugeTLB registered 1 GB page size, pre-allocated 0 pages
[ 0.899032] NFS: Registering the id_resolver key type
[ 0.900644] Key type id_resolver registered
[ 0.901688] Key type id_legacy registered
[ 0.902737] NTFS driver 2.1.30 [Flags: R/O].
[ 0.903974] jffs2: version 2.2. (NAND) \xc2\xa9 2001-2006 Red Hat, Inc.
[ 0.905732] msgmni has been set to 1484
[ 0.908969] io scheduler noop registered
[ 0.909829] io scheduler deadline registered
[ 0.910918] io scheduler cfq registered (default)
[ 0.913372] virtio-pci 0000:00:01.0: enabling device (0000 -> 0003)
[ 0.920895] virtio-pci 0000:00:02.0: enabling device (0000 -> 0003)
[ 0.928987] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.956597] serial8250.0: ttyS0 at MMIO 0xe0004500 (irq = 42) is a 16550A
[ 0.958382] console [ttyS0] enabled, bootconsole disabled
[ 0.958382] console [ttyS0] enabled, bootconsole disabled
[ 0.962318] ePAPR hypervisor byte channel driver
[ 0.970553] brd: module loaded
[ 0.975187] loop: module loaded
[ 0.976939] nbd: registered device at major 43
[ 0.985441] st: Version 20101219, fixed bufsize 32768, s/g segs 256
[ 0.991404] libphy: Fixed MDIO Bus: probed
[ 0.992749] tun: Universal TUN/TAP device driver, 1.6
[ 0.994003] tun: (C) 1999-2004 Max Krasnyansky <maxk(a)qualcomm.com>
[ 0.996354] Freescale FM module (May 27 2014:10:45:13), FMD API version
21.1.0
[ 1.000907] Freescale FM Ports module (May 16 2014:00:31:38)
[ 1.002342] dpaa_debugfs: FSL DPAA Ethernet debugfs entries ()
[ 1.003957] fsl_mac: mac.c:417:mac_load() fsl_mac: FSL FMan MAC API
based driver ()
[ 1.006326] fsl_dpa: dpaa_eth.c:4321:dpa_load() fsl_dpa: FSL DPAA
Ethernet driver ()
[ 1.008393] fsl_oh: offline_port.c:439:oh_port_load() fsl_oh: FSL FMan
Offline Parsing port driver ()
[ 1.010864] e1000e: Intel(R) PRO/1000 Network Driver - 2.1.4-k
[ 1.012256] e1000e: Copyright(c) 1999 - 2012 Intel Corporation.
[ 1.014497] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.016380] ehci-pci: EHCI PCI platform driver
[ 1.017846] Initializing USB Mass Storage driver...
[ 1.019309] usbcore: registered new interface driver usb-storage
[ 1.020833] USB Mass Storage support registered.
[ 1.022518] i2c /dev entries driver
[ 1.023797] md: raid6 personality registered for level 6
[ 1.025294] md: raid5 personality registered for level 5
[ 1.026604] md: raid4 personality registered for level 4
[ 1.028252] device-mapper: ioctl: 4.23.1-ioctl (2012-12-18) initialised:
dm-devel(a)redhat.com
[ 1.030482] EDAC MC: Ver: 3.0.0
[ 1.031731] Freescale(R) MPC85xx EDAC driver, (C) 2006 Montavista
Software
[ 1.034030] sdhci: Secure Digital Host Controller Interface driver
[ 1.035484] sdhci: Copyright(c) Pierre Ossman
[ 1.036663] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.038870] usbcore: registered new interface driver usbhid
[ 1.040182] usbhid: USB HID core driver
[ 1.041687] No fsl,qman node
[ 1.042686] Freescale USDPAA process driver
[ 1.043761] fsl-usdpaa: no region found
[ 1.044844] Freescale USDPAA process IRQ driver
[ 1.046690] Freescale pme2 db driver
[ 1.047513] PME2: fsl_pme2_db_init: not on ctrl-plane
[ 1.048880] Freescale pme2 scan driver
[ 1.050045] fsl-pme2-scan: device pme_scan registered
[ 1.051552] Freescale hypervisor management driver
[ 1.052814] fsl-hv: no hypervisor found
[ 1.053807] Netfilter messages via NETLINK v0.30.
[ 1.054987] nfnl_acct: registering with nfnetlink.
[ 1.056250] nf_conntrack version 0.5.0 (5937 buckets, 23748 max)
[ 1.058187] ctnetlink v0.93: registering with nfnetlink.
[ 1.059611] NF_TPROXY: Transparent proxy support initialized, version
4.1.0
[ 1.061434] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
[ 1.064252] xt_time: kernel timezone is -0000
[ 1.065602] IPVS: Registered protocols (TCP, UDP, SCTP, AH, ESP)
[ 1.067159] IPVS: Connection hash table configured (size=4096,
memory=64Kbytes)
[ 1.069253] IPVS: Creating netns size=2024 id=0
[ 1.070459] IPVS: ipvs loaded.
[ 1.071183] IPVS: [rr] scheduler registered.
[ 1.072265] IPVS: [wrr] scheduler registered.
[ 1.073429] IPVS: [lc] scheduler registered.
[ 1.074528] IPVS: [wlc] scheduler registered.
[ 1.075638] IPVS: [lblc] scheduler registered.
[ 1.076826] IPVS: [lblcr] scheduler registered.
[ 1.077994] IPVS: [dh] scheduler registered.
[ 1.079107] IPVS: [sh] scheduler registered.
[ 1.080190] IPVS: [sed] scheduler registered.
[ 1.081355] IPVS: [nq] scheduler registered.
[ 1.082520] IPv4 over IPv4 tunneling driver
[ 1.084518] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.086170] ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
[ 1.087750] arp_tables: (C) 2002 David S. Miller
[ 1.089008] TCP: cubic registered
[ 1.089889] Initializing XFRM netlink socket
[ 1.091039] NET: Registered protocol family 10
[ 1.092910] mip6: Mobile IPv6
[ 1.093651] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 1.095122] sit: IPv6 over IPv4 tunneling driver
[ 1.104394] ip6_gre: GRE over IPv6 tunneling driver
[ 1.108909] NET: Registered protocol family 17
[ 1.110903] NET: Registered protocol family 15
[ 1.113058] Bridge firewalling registered
[ 1.114705] Ebtables v2.0 registered
[ 1.116777] 8021q: 802.1Q VLAN Support v1.8
[ 1.118660] Key type dns_resolver registered
[ 1.126368] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 1.131085] Freeing unused kernel memory: 392k freed
supermin: mounting /proc
supermin: uptime: 1.11 184987.52
supermin: ext2 mini initrd starting up: 5.1.8 zlib
supermin: cmdline: panic=1 console=ttyS0 udevtimeout=600 no_timer_check
acpi=off printk.time=1 cgroup_disable=memory root=/dev/sda selinux=0
guestfs_verbose=1 TERM=xterm
supermin: mounting /sys
supermin: internal insmod crc-itu-t.ko
cmdline is panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off
printk.time=1 cgroup_disable=memory root=/dev/sda selinux=0
guestfs_verbose=1 TERM=xterm
supermin: waiting another 1024000000 ns for /sys/block/sda/dev to appear
supermin: waiting another 2048000000 ns for /sys/block/sda/dev to appear
supermin: waiting another 4096000000 ns for /sys/block/sda/dev to appear
supermin: waiting another 8192000000 ns for /sys/block/sda/dev to appear
supermin: waiting another 16384000000 ns for /sys/block/sda/dev to appear
It is stucking at the above logs.
The output of ls ls /sys/block/sda/dev
/sys/block/sda/dev
Please help regarding this.
On Tue, Jun 10, 2014 at 10:32 PM, abhishek jain <ashujain9727(a)gmail.com>
wrote:
Hi Rich
I'm able to solve the problem regarding PAPR in libguestfs on my powerpc
ubuntu.By default the libguestfs was configuring pseries machine and
afterwards I changed it to my original machine i.e ppce500 .The changes are
performed in ./src/guestfs-internal.h file.
Thanks
On Tue, Jun 10, 2014 at 7:58 PM, Richard W.M. Jones <rjones(a)redhat.com>
wrote:
> On Wed, Jun 04, 2014 at 08:36:36PM +0530, abhishek jain wrote:
> > qemu: fatal: This KVM version does not support PAPR
>
> I don't think I sent a reply to this email before, however the error
> above is obviously the problem. The solution is less obvious ...
>
> Here is the code. It seems to be checking a kernel capability which
> is missing on your (host) kernel:
>
> void kvmppc_set_papr(PowerPCCPU *cpu)
> {
> CPUState *cs = CPU(cpu);
> int ret;
>
> ret = kvm_vcpu_enable_cap(cs, KVM_CAP_PPC_PAPR, 0);
> if (ret) {
> cpu_abort(cs, "This KVM version does not support PAPR\n");
> }
>
> /* Update the capability flag so we sync the right information
> * with kvm */
> cap_papr = 1;
> }
>
> I suggest asking on one of the qemu mailing lists.
>
> Rich.
>
> --
> Richard Jones, Virtualization Group, Red Hat
>
http://people.redhat.com/~rjones
> Read my programming and virtualization blog:
http://rwmj.wordpress.com
> 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/
>