How to use the hardware soundcard in an OpenVZ container?

tabbi

New Member
Jul 30, 2011
25
0
1
Hi,
I want to use the soundcard of my Proxmox host for music output. Running mpg123 on the host itself works out of the box. But running it in an OpenVZ container (containing Debian 6.0) I get this error:

Code:
[module.c:141] error: Failed to open module esd: file not found
[module.c:141] error: Failed to open module jack: file not found
[module.c:141] error: Failed to open module pulse: file not found
[module.c:141] error: Failed to open module nas: file not found
[module.c:141] error: Failed to open module arts: file not found
[audio.c:180] error: Unable to find a working output module in this list: alsa,oss,esd,jack,pulse,nas,arts
[audio.c:527] error: Failed to open audio output module
[mpg123.c:847] error: Failed to initialize output, goodbye.

I already followed the instructions from this site, but it didn´t change anything :-(

Do you have an idea how to get access to the hardware soundcard from an OpenVZ container?
 
Now I can answer the question myself. I used the following command on Proxmox for every entry I found with ls /dev/snd:

Code:
vzctl set [VMID] --devnodes snd/[ENTRY]:rw --save

Then it worked :)
 

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!