No audio with SPICE + pipewire, halts with ALSA, Qemu pipewire unsupported

The reply indicates that there might be something wrong with our KVM XML configuration files.

The comment states that,

-device virtio-sound-pci,audiodev=system -audiodev pipewire,id=system

works with QEMU command line

We however are using libvirt, which is a wrapper, which then runs QEMU with similar options. At time of writing, we are using:

    <sound model='ich9'>
      <codec type='output'/>
    </sound>

Looking at the libvirt manual chapter sound…

    <sound model='virtio'>
      <codec type='output'/>
    </sound>

Could you try that please?

We might also have to delete <codec type='output'/>.

We might also have to set type=.

    <sound model='virtio'>
        <codec type='output'/>
        <backend type='pipewire'/>
    </sound>

But I hope this won’t be necessary. It would be more compatible if QEMU / KVM can autodetect this.

1 Like