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.