FS#65590 - [qemu-headless] add support for -audiodev pa (libpulse)?

Attached to Project: Arch Linux
Opened by Francisco J. Vazquez (Fran) - Saturday, 22 February 2020, 14:39 GMT
Last edited by David Thurstenson (thurstylark) - Saturday, 16 July 2022, 11:37 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Anatol Pomozov (anatolik)
David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

I decided to replace qemu-4.2.0-2 with qemu-headless-4.2.0-2, since I only use qemu with VGA passthrough. Everything works fine except I have no sound in the VM. I get an error on start:

audio: Unknown audio driver `pa'

I then noticed that qemu-headless does not depend on libpulse, so "-audiodev pa" obviously does not work.

Can you add support for pulseaudio on qemu-headless? Seems to me pulseaudio is not related to the package being "-headless".
This task depends upon

Closed by  David Thurstenson (thurstylark)
Saturday, 16 July 2022, 11:37 GMT
Reason for closing:  Fixed
Additional comments about closing:  qemu 7.0.0
Comment by Josef Mutzenbacher (Joe2020) - Wednesday, 12 August 2020, 11:25 GMT
Not a good idea. In fact, qemu-headless is intended to use on headless hosts, e.g. servers hosting hundreds of qemu instances. Your usecase is still "personal computer/desktop". Either revert to "qemu" or transport sound from the guest to the host via module-native-protocol-tcp.
Comment by Ivan Shapovalov (intelfx) - Saturday, 12 June 2021, 17:31 GMT
qemu brings in a lot of useless dependencies compared to qemu-headless, so it's not a good fit.

I'm not sure if headless/headed split is supposed to be based on amount of instances or overhead or anything. Instead, it's more like "whether the host has a video output or not". Namely: "QEMU without GUI", from qemu-headless package description.
Comment by David Runge (dvzrv) - Friday, 22 April 2022, 06:38 GMT
While the pulseaudio driver could be added, do note that with qemu >= 7.0.0 (currently in [staging]) you will be able to install all components separately: e.g. `sudo pacman -S qemu-audio-pa` in addition to qemu-base (which replaces qemu-headless).
Comment by David Runge (dvzrv) - Monday, 02 May 2022, 15:53 GMT
@Fran: Does the suggested installation of the additional driver fix your issue?
Comment by Francisco J. Vazquez (Fran) - Tuesday, 03 May 2022, 09:57 GMT
Yes, I enabled [testing] and installed qemu-system-x86 + qemu-audio-pa + a couple other drivers and everything works fine, so this bug will be obsolete when qemu 7.0 leaves [testing].

Loading...