-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Description
Is your proposal related to a problem?
Access per RDP is very fast and reliable, but unfortunately there is no way to pass-through sound devices.
I have a windows application that needs to see sound devices (not the "remote input"/"remote output", but the mainly microphone itself to capture sound).
One solution would be to connect to the VM through spice, but this seems to be deactivated in the container.
Eg. when I add to the stack:
-spice port=5930,addr=0.0.0.0,disable-ticketing
I get
❯ ERROR: qemu-system-x86_64: -spice port=5930,addr=0.0.0.0,disable-ticketing: There is no option group 'spice' qemu-system-x86_64: -spice port=5930,addr=0.0.0.0,disable-ticketing: Perhaps you want to install qemu-system-modules-spice package?
Even though this would have been possible -→ inside the container:
root@1a40a1697bf9:/# qemu-system-x86_64 --version qemu-system-x86_64 --help | grep spice QEMU emulator version 10.0.3 (Debian 1:10.0.3+ds-0+deb13u1) Copyright (c) 2003-2025 Fabrice Bellard and the QEMU Project developers -audiodev spice,id=id[,prop[=value][,...]] -display spice-app[,gl=on|off] -spice [port=port][,tls-port=secured-port][,x509-dir=
Could you please enable the possibility of access through spice when you build the VM?
Is there any way to enable this a posteriori?
Describe the solution you'd like.
access to the container kvm through spice → Enable spice in the kvm vm that is built by the container
any other way to expose the microphone inside the container (NB I can expose a usb microphone as described in the instructions, and it is visible in the Device manager, but the related audio stream does not pass through rdp, so this is useless for my purpose)
Describe alternatives you've considered.
As an alternative: in order to access the VM with exposure of audio devices one could,
- e.g. install a server in windows and use the respective client on the Linux side, but this is way worse then rdp (I have tried Nomachine -> has a lot of lag; Anydesk: no access possible etc).
- I am now booting the disk with a separate kvm vm (with spice enabled) over the command line, but I would prefer the ease of a container.
- if you know of any way to pass-through audio devices (speaker + microphone) over rdp, please let me know - this would be best (because rdp appears to be the fastest)
Additional context
please see above