[libvirt-users] MIPS emulation broken - No PCI buses available

I am trying to create a QEMU MIPS guest, so that I can test some code for big-endian safety. Every attempt to create a MIPS guest is giving me an error: Unable to complete install: 'XML error: No PCI buses available' It seems like this is a known issue. https://www.redhat.com/archives/libvir-list/2016-May/msg00197.html However, I am still getting this on a fully updated Fedora 25 system with libvirt-2.2.0-2.fc25.x86_64. -- ======================================================================== Ian Pilcher arequipeno@gmail.com -------- "I grew up before Mark Zuckerberg invented friendship" -------- ========================================================================

On Mon, Mar 13, 2017 at 04:23:38PM -0500, Ian Pilcher wrote:
I am trying to create a QEMU MIPS guest, so that I can test some code for big-endian safety.
You are probably better off using PPC64 which is big-endian and much more widely tested in libvirt than MIPS, so actually likely to work reliably.
Every attempt to create a MIPS guest is giving me an error:
Unable to complete install: 'XML error: No PCI buses available'
It seems like this is a known issue.
https://www.redhat.com/archives/libvir-list/2016-May/msg00197.html
However, I am still getting this on a fully updated Fedora 25 system with libvirt-2.2.0-2.fc25.x86_64.
It seems that patch you quote was never applied to libvirt. There was some debate in the thread that follows and it seems it was never resolved. Please do file a bug against libvirt so this doesn't get lost again. Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://entangle-photo.org -o- http://search.cpan.org/~danberr/ :|

On 03/14/2017 05:59 AM, Daniel P. Berrange wrote:
You are probably better off using PPC64 which is big-endian and much more widely tested in libvirt than MIPS, so actually likely to work reliably.
I did try that, but I wasn't able to get past errors about the machine type not supporting IDE (or something like that). I finally just gave up and use qemu-system-ppc directly, along with an older Debian QCOW image that I found somewhere.
Please do file a bug against libvirt so this doesn't get lost again.
https://bugzilla.redhat.com/show_bug.cgi?id=1432101 -- ======================================================================== Ian Pilcher arequipeno@gmail.com -------- "I grew up before Mark Zuckerberg invented friendship" -------- ========================================================================

On Tue, 2017-03-14 at 09:18 -0500, Ian Pilcher wrote:
You are probably better off using PPC64 which is big-endian and much more widely tested in libvirt than MIPS, so actually likely to work reliably. I did try that, but I wasn't able to get past errors about the machine type not supporting IDE (or something like that). I finally just gave up and use qemu-system-ppc directly, along with an older Debian QCOW image that I found somewhere.
You keep referring to ppc instead of ppc64, so I'm not sure you're trying exactly the same thing, but you can create a ppc64 guest with recent software quite easily by using virt-builder: $ virt-builder \ fedora-25 \ --arch ppc64 \ --output f25-ppc64.qcow2 \ --format qcow2 \ --root-password password:dangerzone This is a minimal guest XML that will allow you to import the image generated above into libvirt: <domain type='qemu'> <name>f25-ppc64</name> <memory unit='KiB'>2097152</memory> <currentMemory unit='KiB'>2097152</currentMemory> <vcpu placement='static'>1</vcpu> <os> <type arch='ppc64' machine='pseries'>hvm</type> </os> <devices> <emulator>/usr/bin/qemu-system-ppc64</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2'/> <source file='/var/lib/libvirt/images/f25-ppc64.qcow2'/> <target dev='sda' bus='scsi'/> <address type='drive'/> </disk> <controller type='scsi' model='virtio-scsi'/> <controller type='usb' model='nec-xhci'/> <interface type='network'> <source network='default'/> <model type='virtio'/> </interface> <console type='pty'/> <channel type='unix'> <target type='virtio' name='org.qemu.guest_agent.0'/> <address type='virtio-serial'/> </channel> <memballoon model='virtio'/> </devices> </domain> I just tried the steps on my Fedora 24/x86_64 laptop and I didn't run into any issues: if the experience is not quite as seamless for you, I'd be interested in having the details. -- Andrea Bolognani / Red Hat / Virtualization

On 03/14/2017 02:18 PM, Andrea Bolognani wrote:
You keep referring to ppc instead of ppc64, so I'm not sure you're trying exactly the same thing, but you can create a ppc64 guest with recent software quite easily by using virt-builder:
Perfect! I was unaware that this existed. Thank you! -- ======================================================================== Ian Pilcher arequipeno@gmail.com -------- "I grew up before Mark Zuckerberg invented friendship" -------- ========================================================================
participants (3)
-
Andrea Bolognani
-
Daniel P. Berrange
-
Ian Pilcher