PCIe Sound Card Passthrough

Hi,
I am new to lxc and lxd community and am trying to setup an Alexa Container with their AVS SDK environment.
One of the necessities of the environment is to have a sound card available for interaction. I was wondering how I can pass my PCIe sound card to the container?

So what you’d normally do is just pass the unix-char devices for that soundcard.
The host kernel should have the driver loaded which causes devices to show up in /dev/snd/, you’ll then use the unix-char device type in LXD to have them show up in the container.

Another alternative is to use something like pulseaudio on the host which can be forwarded to the container using a disk device or a proxy device, effectively forwarding the pulseaudio socket. @simos has guides for GUI apps that show you how to do that.

Hi,
Thank you for the reply
I haven’t tried it yet, but I will soon. :slight_smile: