Hello everybody,
I'm using Proxmox since a year, and I can't figure out what I am missing in my configuration.
I want to play audio files into a unprivileged container.
What I done :
1) Allowing access to the onboard soundcard in the container file :
After that I can see the card on my LXC container :
Now I'm stuck.
I understand that I should map UID and GID... But i'm completely lost with it.
Both users are root, so the UID and GID are 0.
Thanks in advance for the help
I'm using Proxmox since a year, and I can't figure out what I am missing in my configuration.
I want to play audio files into a unprivileged container.
What I done :
1) Allowing access to the onboard soundcard in the container file :
Code:
lxc.cgroup2.devices.allow: c 116:* rwm
lxc.mount.entry: /dev/snd dev/snd none bind,optional,create=dir
After that I can see the card on my LXC container :
Code:
total 0
drwxr-xr-x 3 nobody nogroup 300 Dec 17 20:46 .
drwxr-xr-x 7 root root 500 Dec 17 21:29 ..
drwxr-xr-x 2 nobody nogroup 60 Dec 17 20:46 by-path
crw-rw---- 1 nobody nogroup 116, 11 Dec 17 20:46 controlC0
crw-rw---- 1 nobody nogroup 116, 9 Dec 17 20:46 hwC0D0
crw-rw---- 1 nobody nogroup 116, 10 Dec 17 20:46 hwC0D2
crw-rw---- 1 nobody nogroup 116, 3 Dec 17 20:46 pcmC0D0c
crw-rw---- 1 nobody nogroup 116, 2 Dec 17 21:00 pcmC0D0p
crw-rw---- 1 nobody nogroup 116, 4 Dec 17 20:46 pcmC0D2c
crw-rw---- 1 nobody nogroup 116, 5 Dec 17 20:46 pcmC0D3p
crw-rw---- 1 nobody nogroup 116, 6 Dec 17 20:46 pcmC0D7p
crw-rw---- 1 nobody nogroup 116, 7 Dec 17 20:46 pcmC0D8p
crw-rw---- 1 nobody nogroup 116, 8 Dec 17 20:46 pcmC0D9p
crw-rw---- 1 nobody nogroup 116, 1 Dec 17 20:46 seq
crw-rw---- 1 nobody nogroup 116, 33 Dec 17 20:46 timer
I understand that I should map UID and GID... But i'm completely lost with it.
Both users are root, so the UID and GID are 0.
Thanks in advance for the help
Last edited: