Hi,
I am trying to use this for a Proxmox LXC on my Raspberry Pi 4 based on this solution:
https://github.com/pimox/pimox7
This works fine, but in LXC containers I get no sound. Any idea what I could do to make this work?
What I did:
- Using Proxmox 7 (Pimox7) on Raspberry Pi 4 2GB ("HyperVi")
- Setup a privileged Proxmox LXC ("MediaCenter") via the web interface using a Debian template
- On the host, aplay sees my 2 HDMI connectors as audio devices and speaker-test gives an output through the speakers
- On the LXC, aplay does not see any audio device
HDMI "soundcards" are showing in the container under proc:
**nano /etc/pve/lxc/100.conf on the host:**
I am trying to use this for a Proxmox LXC on my Raspberry Pi 4 based on this solution:
https://github.com/pimox/pimox7
This works fine, but in LXC containers I get no sound. Any idea what I could do to make this work?
What I did:
- Using Proxmox 7 (Pimox7) on Raspberry Pi 4 2GB ("HyperVi")
- Setup a privileged Proxmox LXC ("MediaCenter") via the web interface using a Debian template
- On the host, aplay sees my 2 HDMI connectors as audio devices and speaker-test gives an output through the speakers
- On the LXC, aplay does not see any audio device
Bash:
root@HyperVi:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
Bash:
root@MediaCenter:~# aplay -l
aplay: device_list:274: no soundcards found...
Bash:
root@HyperVi:~# ls -lash /dev/snd
total 0
0 drwxr-xr-x 3 root root 180 Dec 1 22:53 .
0 drwxr-xr-x 18 root root 4.1K Dec 1 22:54 ..
0 drwxr-xr-x 2 root root 80 Dec 1 22:54 by-path
0 crw-rw---- 1 root audio 116, 0 Dec 1 22:53 controlC0
0 crw-rw---- 1 root audio 116, 32 Dec 1 22:54 controlC1
0 crw-rw---- 1 root audio 116, 16 Dec 1 22:53 pcmC0D0p
0 crw-rw---- 1 root audio 116, 48 Dec 1 22:54 pcmC1D0p
0 crw-rw---- 1 root audio 116, 1 Dec 1 22:53 seq
0 crw-rw---- 1 root audio 116, 33 Dec 1 22:53 timer
Bash:
root@MediaCenter:~# ls -lash /dev/snd/
total 0
0 drwxr-xr-x 3 root root 180 Dec 1 21:53 .
0 drwxr-xr-x 7 root root 480 Dec 1 21:54 ..
0 drwxr-xr-x 2 root root 80 Dec 1 21:54 by-path
0 crw-rw---- 1 root audio 116, 0 Dec 1 21:53 controlC0
0 crw-rw---- 1 root audio 116, 32 Dec 1 21:54 controlC1
0 crw-rw---- 1 root audio 116, 16 Dec 1 21:53 pcmC0D0p
0 crw-rw---- 1 root audio 116, 48 Dec 1 21:54 pcmC1D0p
0 crw-rw---- 1 root audio 116, 1 Dec 1 21:53 seq
0 crw-rw---- 1 root audio 116, 33 Dec 1 21:53 timer
HDMI "soundcards" are showing in the container under proc:
Bash:
root@MediaCenter:~# cat /proc/asound/cards
0 [vc4hdmi0 ]: vc4-hdmi - vc4-hdmi-0
vc4-hdmi-0
1 [vc4hdmi1 ]: vc4-hdmi - vc4-hdmi-1
vc4-hdmi-1
**nano /etc/pve/lxc/100.conf on the host:**
Bash:
arch: arm64
cores: 2
hostname: MediaCenter
memory: 512
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=EA:4D:1D:968:29,ip=dhcp,type=veth
onboot: 0
ostype: debian
rootfs: local:100/vm-100-disk-0.raw,size=8G
swap: 512
lxc.mount.entry: /dev/snd dev/snd none bind,create=dir 0 0
lxc.mount.entry: /dev/dri dev/dri none bind,create=dir 0 0
lxc.mount.entry: /dev/video10 dev/video10 none bind,create=file 0 0
lxc.mount.entry: /dev/video11 dev/video11 none bind,create=file 0 0
lxc.mount.entry: /dev/video12 dev/video12 none bind,create=file 0 0
lxc.mount.entry: /dev/vchiq dev/vchiq none bind,create=file 0 0
lxc.mount.entry: /dev/shm dev/shm none bind,create=dir 0 0
lxc.mount.entry: /dev/v4l dev/v4l none bind,create=dir 0 0
lxc.cgroup.devices.allow: c 116:* rwm
lxc.cgroup.devices.allow: c 243:* rwm
lxc.cgroup.devices.allow: c 81:* rwm
lxc.cgroup.devices.allow: c 160:* rwm
lxc.cgroup.devices.allow: c 13:* rwm
lxc.apparmor.profile: unconfined
Last edited: