Make audio played in VM come out of server audio jack

Dec 23, 2021
3
0
6
23
Hi!

We recently placed an unused Optiplex PC in our office to use it as a testing bench / radio. Proxmox is ideal for this, because we could make multiple virtual windows test benches that we can access without interfering each other. But we would also like to migrate our Ubuntu radio server running Mopidy into Proxmox. Is it possible to play audio on a virtual Ubuntu server and have it come out of the speakers (1/8 audio jack) connected to the Optiplex running Proxmox?
 
If you want to use physical hardware inside a VM you need to use PCI passthrough. But keep in mind that passing through onboard devices won't work most of the time because the device you want to passthrough needs to be alone in its own IOMMU group.
With an Ubuntu LXC that might be easier because of the missing isolation. But you still would need to edit the config files to allow the LXC to use the hosts hardware.
 
  • Like
Reactions: semanticbeeng
Ubuntu uses PulseAudio, which can send audio via a ethernet network. I don't have any personal experience with it, but people have used it to redirect the sound from one VM to another. I assume that installing PulseAudio on Proxmox (Debian) is also possible.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!