Is it possible to create virtual audio in an LXC container?
I used the snd-aloop module on the host, mounted the kernel modules folder in the container, but neither aplay nor arecord show devices. /dev/snd is not created, but loopback is present in /proc/asound/devices.
How to get virtual audio?
I used the snd-aloop module on the host, mounted the kernel modules folder in the container, but neither aplay nor arecord show devices. /dev/snd is not created, but loopback is present in /proc/asound/devices.
How to get virtual audio?
Code:
root@3ed:~# modprobe snd-aloop
root@3ed:~# aplay -l
aplay: device_list:274: no soundcards found...
root@3ed:~# ls /dev/
.lxc-boot-id core full initctl lxc/ null pts/ shm/ stdin tty tty2 zero
console fd/ hugepages/ log mqueue/ ptmx random stderr stdout tty1 urandom
root@3ed:~# cat /proc/asound/
Loopback/ card0/ cards devices modules oss/ pcm seq/ timers version
root@3ed:~# cat /proc/asound/cards
0 [Loopback ]: Loopback - Loopback
Loopback 1
root@3ed:~# cat /proc/asound/devices
2: [ 0- 0]: digital audio playback
3: [ 0- 0]: digital audio capture
4: [ 0- 1]: digital audio playback
5: [ 0- 1]: digital audio capture
6: [ 0] : control
33: : timer