Comment 7 for bug 1317987

Revision history for this message
john.d@servergy.com (john-d-0) wrote :

Hi
 I do get further with full pathnames for the kernel,initrd, and disk image; However there are issues with
the xml file that was generated from the args file:

(trusty)root@jade-rev4:/home2/qemu# cat go14.04.args
qemu-system-ppc -M ppce500 -nographic -kernel /home2/qemu/jade-kernel-2.0.bin -initrd /home2/qemu/jade-initrd-2.0.bin -m 1024 -enable-kvm -drive file=/home2/qemu/jade-ubuntu-14.04.qcow2.netinstall,if=virtio -append "console=ttyS0" -no-shutdown -no-reboot -name Ubuntu-VM01

(trusty)root@jade-rev4:/home2/qemu#

virsh domxml-from-native qemu-argv go14.04.args > vm01.xml

(trusty)root@jade-rev4:/home2/qemu# virsh -c qemu:///system
Welcome to virsh, the virtualization interactive terminal.

Type: 'help' for help with commands
       'quit' to quit

virsh # define vm01.xml
Domain Ubuntu-VM01 defined from vm01.xml

virsh # start Ubuntu-VM01
error: Failed to start domain Ubuntu-VM01
error: internal error: early end of file from monitor: possible problem:
Can't open directory /proc/device-tree/cpus/
qemu-system-ppc: -device piix3-usb-uhci,id=usb,bus=pci,addr=0x1: Bus 'pci' not found

virsh # exit

(trusty)root@jade-rev4:/home2/qemu# ls /proc/device-tree/
#address-cells dcsr@f00000000 name
aliases fsl,dpaa pcie@ffe200000
bman-portals@ff4000000 interrupt-parent pcie@ffe201000
chosen localbus@ffe124000 qman-portals@ff4200000
compatible memory #size-cells
cpus model soc@ffe000000

(trusty)root@jade-rev4:/home2/qemu# ls /proc/device-tree/cpus
#address-cells PowerPC,e500mc@1 PowerPC,e500mc@4 PowerPC,e500mc@7
name PowerPC,e500mc@2 PowerPC,e500mc@5 #size-cells
PowerPC,e500mc@0 PowerPC,e500mc@3 PowerPC,e500mc@6

What is the root cause of the PCI config error ?