Set up a Debian container and want to run a python program that accesses the audio hardware to play sounds and a USB serial connection. For now I am just working on the audio. Got audio working on host. I made a user on the LXC system and added it to sudo and audio groups. I added this to conf file on host:
I can see the devices in the container at /dev/snd owned by nobody. Am confused by the mapping needed and seen conflicting information. I think this is the user info needed to set that up.
What do I need to put in the config file to properly map the audio to the LXC?
If it matters here is the device info shown by lspci:
00:1f.3 Audio device: Intel Corporation 100 Series/C230 Series Chipset Family HD Audio Controller (rev 31)
Code:
lxc.cgroup2.devices.allow: c 116:* rwm
lxc.mount.entry: /dev/snd dev/snd none bind,optional,create=dir
Code:
root@proxmox1:~# grep audio /etc/group
audio:x:29:root
root@proxmox1:~# id -g root
0
On Debian (103) lxc:
jim@Debian:~$ id -g jim
1000
jim@Debian:~$ id -g root
0
If it matters here is the device info shown by lspci:
00:1f.3 Audio device: Intel Corporation 100 Series/C230 Series Chipset Family HD Audio Controller (rev 31)