public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Audio stopped working in KVM with libvirtmanager
@ 2022-05-07 13:45 Nikos Chantziaras
  2022-05-11 18:33 ` Michael
  0 siblings, 1 reply; 2+ messages in thread
From: Nikos Chantziaras @ 2022-05-07 13:45 UTC (permalink / raw
  To: gentoo-user

Audio in KVM (qemu) launched through libvirtmanager used to work fine 
last time I used it (about 3 months ago.) There has been lots of updates 
since then, including a switch from Pulseaudio to Pipewire, and 
something along the way broke it. Now I get no sound whatsoever. qemu 
doesn't even show up as an application in the audio mixer, nor in the 
output of "pw-top".

If I launch the VM directly through qemu with:

   qemu-system-x86_64 [...] -audiodev id=audio1,driver=pa

then it works fine. But if I launch it through libvirtmanager, it 
doesn't. Even if I force the use of "-audiodev id=audio1,driver=pa" in 
the XML of the VM in /etc/libvirt/qemu/, it still doesn't work. There's 
no error anywhere, no warning, nothing in the logs.

Does anyone have any idea what to do?



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] Audio stopped working in KVM with libvirtmanager
  2022-05-07 13:45 [gentoo-user] Audio stopped working in KVM with libvirtmanager Nikos Chantziaras
@ 2022-05-11 18:33 ` Michael
  0 siblings, 0 replies; 2+ messages in thread
From: Michael @ 2022-05-11 18:33 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1421 bytes --]

On Saturday, 7 May 2022 14:45:06 BST Nikos Chantziaras wrote:
> Audio in KVM (qemu) launched through libvirtmanager used to work fine
> last time I used it (about 3 months ago.) There has been lots of updates
> since then, including a switch from Pulseaudio to Pipewire, and
> something along the way broke it. Now I get no sound whatsoever. qemu
> doesn't even show up as an application in the audio mixer, nor in the
> output of "pw-top".
> 
> If I launch the VM directly through qemu with:
> 
>    qemu-system-x86_64 [...] -audiodev id=audio1,driver=pa
> 
> then it works fine. But if I launch it through libvirtmanager, it
> doesn't. Even if I force the use of "-audiodev id=audio1,driver=pa" in
> the XML of the VM in /etc/libvirt/qemu/, it still doesn't work. There's
> no error anywhere, no warning, nothing in the logs.
> 
> Does anyone have any idea what to do?

I don't use libvirt, but use QEMU from a console.  For the last couple of 
versions I have been getting these sort of notices when I launch a Win10 VM:

ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.6.1/work/alsa-lib-1.2.6.1/
src/pcm/pcm.c:8568:(snd_pcm_recover) underrun occurred

I don't have pulseaudio on this PC, only alsa modules and pipewire with 
default settings.  The VM audio works, but it clips.  I haven't looked into it 
yet, because audio in VM is less of an issue for my use case, hence I have no 
useful suggestions (yet).  :-)

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-11 18:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-07 13:45 [gentoo-user] Audio stopped working in KVM with libvirtmanager Nikos Chantziaras
2022-05-11 18:33 ` Michael

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox