[lxc-users] Any experiences with modemmanager in unprivilegied container ?

Nicolas FOURNIL nicolas.fournil at gmail.com
Fri Sep 4 17:40:18 UTC 2020


I'm trying dealing with modemmanager and unprivilived container... what I
have done :
- creating /dev/ttyACM0
- creation /dev/cdc-wdm0
- sysfs entry to host /sys for this USB device

To get the correct udev flags (ID_MM_DEVICE_PROCESS=1 & ID_MM_CANDIDATE=1)
...if there's better you're welcome!) :
udevadm test
udevadm test

Then I had a start of locating modem ... but It failed when trying to
attach mbim interface (wwan0 to cdc-wdm0) :

ModemManager[374]: <debug> [1599237879.432413] Modem (Sierra)
'/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2' completely disposed
ModemManager[374]: <warn>  [1599237879.432446] Couldn't create modem for
device '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2': Failed to find a
net port in the MBIM modem

To my investigations, there's an entry in
/sys/devices/pci0000\:00/0000\:00\:14.0/usb1/1-2/1-2\:1.0/net/wwan0 who is
linked by /sys/class/net/wwan0 ->
../../devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/net/wwan0/ and this
is what modem manager is seeking.

And I haven't found how to import this network interface (wwan0 is like an
ethernet device) directly inside the container without broke this link (yes
tried to simply attach wwan0 to container of course... and is totaly ignore
because not udev flagged and not "real" wwan0 but macvlan...)

Thanks for your help

Nicolas F.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20200904/23b4c387/attachment.htm>

More information about the lxc-users mailing list