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

Andrea Bolognani abologna at redhat.com
Tue Mar 14 19:18:22 UTC 2017

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 \
    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'>
    <memory unit='KiB'>2097152</memory>
    <currentMemory unit='KiB'>2097152</currentMemory>
    <vcpu placement='static'>1</vcpu>
      <type arch='ppc64' machine='pseries'>hvm</type>
      <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'/>
      <controller type='scsi' model='virtio-scsi'/>
      <controller type='usb' model='nec-xhci'/>
      <interface type='network'>
        <source network='default'/>
        <model type='virtio'/>
      <console type='pty'/>
      <channel type='unix'>
        <target type='virtio' name='org.qemu.guest_agent.0'/>
        <address type='virtio-serial'/>
      <memballoon model='virtio'/>

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

More information about the libvirt-users mailing list