I've been struggling with various tutorials to hook up my /dev/ttyACM0
in a lxc container.
Basically I've tried adding the following line in my lxc config :
lxc.cgroup.devices.allow = c 166:* rwm
And the following one too (both with relative and full path) :
lxc.mount.entry = /dev/ttyACM0 dev/ttyACM0 none bind,optional
but yet, I can't get a working configuration.
FYI on the host side the modem is working and my host shows up :
$ ll /dev/ttyACM0
crw-rw---T 1 root dialup 166, 0 janv. 29 16:47 /dev/ttyACM0
I don't have a modem, but I tested with my pendrive to connect it direct with the container.
My device on the host:
My container config:
But when try to start it, I got the following error:
Then I tried to create the device file in the container /dev:
When I tried start it again, it worked! In the container console:
Everything as expected.