Hi!
There are several ways to access resources from the host inside a container. These are listed at the Device types at https://linuxcontainers.org/lxd/docs/master/instances#device-types
The three main options are unix-char
, unix-hotplug
and usb
.
When testing, you would need to find a simple utility or some way in general that can verify that the device is accessible. Try that on the host to verify it works, then try in the container. If it works in the container, try last in the Coda virtual environment.
In the example with OpenCV it is not clear whether the problem is with the software or with the device initialization.