1 |
On Saturday, 7 May 2022 14:45:06 BST Nikos Chantziaras wrote: |
2 |
> Audio in KVM (qemu) launched through libvirtmanager used to work fine |
3 |
> last time I used it (about 3 months ago.) There has been lots of updates |
4 |
> since then, including a switch from Pulseaudio to Pipewire, and |
5 |
> something along the way broke it. Now I get no sound whatsoever. qemu |
6 |
> doesn't even show up as an application in the audio mixer, nor in the |
7 |
> output of "pw-top". |
8 |
> |
9 |
> If I launch the VM directly through qemu with: |
10 |
> |
11 |
> qemu-system-x86_64 [...] -audiodev id=audio1,driver=pa |
12 |
> |
13 |
> then it works fine. But if I launch it through libvirtmanager, it |
14 |
> doesn't. Even if I force the use of "-audiodev id=audio1,driver=pa" in |
15 |
> the XML of the VM in /etc/libvirt/qemu/, it still doesn't work. There's |
16 |
> no error anywhere, no warning, nothing in the logs. |
17 |
> |
18 |
> Does anyone have any idea what to do? |
19 |
|
20 |
I don't use libvirt, but use QEMU from a console. For the last couple of |
21 |
versions I have been getting these sort of notices when I launch a Win10 VM: |
22 |
|
23 |
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.6.1/work/alsa-lib-1.2.6.1/ |
24 |
src/pcm/pcm.c:8568:(snd_pcm_recover) underrun occurred |
25 |
|
26 |
I don't have pulseaudio on this PC, only alsa modules and pipewire with |
27 |
default settings. The VM audio works, but it clips. I haven't looked into it |
28 |
yet, because audio in VM is less of an issue for my use case, hence I have no |
29 |
useful suggestions (yet). :-) |