So I just created a Debian LXC container in a Proxmox machine. I mapped a LIRC-compatible USB device into tge LXC, then installed LIRC with apt, but the device failed to function.
I then run apt install lirc on the host, then the device worked inside the LXC.
This got me curious: is it true that (in general) the driver must be installed on both the host and the LXC for a mapped device to function properly inside the LXC? (I recall Docker is similar, but I might be wrong)
If your remote control requires a DKMS driver to be loaded, this has to be loaded on the host. You cannot load it from within the container.
I am not sure about LXC. But on Incus you can specify which kernel modules are required to be loaded before a container is started. Then, when your container starts, the kernel module will load automatically.
Most likely it’s just the kernel module that gets loaded on the host. The rest of the configuration of the LIRC package on the host should not affect the container.