I've set up a CentOS 8 host and am using QEMU to run a Windows 10 VM with passthrough of a dedicated GPU. Everything works nicely except for sound: I can't manage to get any sound to play. The Windows guest seems to think there is a working sound device, everything inside the guest looks fine and there is a volume control there too. However, no sound plays on the host. PulseAudio Volume Control does not list a playback device for the corresponding VM.

I should add that on the same host, I am also running three Linux guests. All of those guests are listed as playback streams in PulseAudio Volume Control and produce sound output without problems. It appears to me it must either be the fact that this is a Windows guest, the fact that it uses GPU passthrough instead of a virtual display, or an interplay of both that creates this issue.

I've googled a lot already and tried all the solutions I came across:

Tried switching between the available virtual audio devices AC97, ich6 and ich9

lists all the available audio drivers and PulseAudio is not listed. After some more searching (see e.g. https://forum.level1techs.com/t/kvm-qem ... dio/135350), it seems that a package called "qemu-audio-pa" needs to be installed first, but this doesn't seem to be available for CentOS 8? Possibly, it's not compatible with the QEMU version that comes with CentOS 8?

Looks like I might have to resort to a hardware solution, i.e. get an extra sound card to pass through to the VM and connect to the line-in of the existing sound card.