Your message dated Wed, 23 Nov 2022 08:07:58 +0300
with message-id <[email protected]>
and subject line Re: Bug#1024607: update
has caused the Debian Bug report #1024607,
regarding Passing audio from virtual machine to host via PulseAudio
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1024607: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024607
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: qemu-system-x86
Version: 1:5.2+dfsg-11+deb11u2
===Error message===
Error changing VM configuration: unsupported configuration: unknown audio type
'pulseaudio'
===Steps to reproduce===
1) Create a VM.
2) Remove the default sound card.
3) Edit VM config to use the following anywhere in <devices>:
<sound model='ich9'>
<codec type='micro'/>
<audio id='1'/>
</sound>
<audio id='1' type='pulseaudio' serverName='/run/user/1000/pulse/native'/>
I thought setting it to 'pa' would work but it didn't. I tried 'pulseaudio',
'pulse', and 'pa'. Neither worked.
I was using this article as a general guide. (Section 8.2: Passing audio from
virtual machine to host via PulseAudio)
https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF#Passing_audio_from_virtual_machine_to_host_via_PulseAudio
==Additional information==
$ qemu-system-x86_64 -audio-help
Environment variable based configuration deprecated.
Please use the new -audiodev option.
Equivalent -audiodev to your current environment variables:
(Since you didn't specify QEMU_AUDIO_DRV, I'll list all possibilities)
-audiodev id=pa,driver=pa
-audiodev id=alsa,driver=alsa
-audiodev id=oss,driver=oss
-audiodev id=none,driver=none
$ ls /usr/lib/x86_64-linux-gnu/qemu/audio-pa.so
/usr/lib/x86_64-linux-gnu/qemu/audio-pa.so
$ neofetch --stdout
user@desktop
-------------
OS: Debian GNU/Linux 11 (bullseye) x86_64
Host: Z390 UD
Kernel: 5.10.0-19-amd64
Uptime: 2 hours, 36 mins
Packages: 2519 (dpkg)
Shell: bash 5.1.4
Resolution: 1920x1080
DE: Xfce 4.16
WM: Xfwm4
WM Theme: Default
Theme: Adwaita-dark [GTK2/3]
Icons: Tango [GTK2/3]
Terminal: xfce4-terminal
Terminal Font: Monospace Semi-Condensed 12
CPU: Intel i3-9100 (4) @ 4.200GHz
GPU: Intel CoffeeLake-S GT2 [UHD Graphics 630]
GPU: AMD ATI Radeon R9 285/380
Memory: 2171MiB / 15748MiB
RHEL(I used AlmaLinux 9) has a separate package named "qemu-kvm-audio-pa". I
installed it and tried to make a VM and it works there but not under Debian.
This problem seems to be Debian specific.
--- End Message ---
--- Begin Message ---
23.11.2022 00:41, [email protected] wrote:
I installed qemu and virt-manager from bullseye-backports and the issue went
away. I did not try to replicate this issue on bookworm or sid but I think it's
okay to assume that this issue doesn't affect them because their qemu version
is newer.
There's no issue to begin with.
The module you're trying to use is in qemu-system-gui package.
This is a package which is recommended by other qemu-system-*
packages.
When you initially installed qemu you didn't install qemu-system-gui,
most likely due to APT::Install-Recommends=false in effect. When
you upgraded it, this setting wasn't in effect anymore, and hence
qemu-system-gui has been installed. Or maybe something else happened
which caused this package to be installed.
Basically, when you turn off installing of recommends, it is assumed
you know what you're doing.
Thanks,
/mjt
--- End Message ---