[lxc-users] Any experiences with modemmanager in unprivilegied container ?
nicolas.fournil at gmail.com
Mon Sep 7 13:38:29 UTC 2020
I think I get all working with this setup :
in lxc config :
then in container (for each reboot):
service ModemManager stop
udevadm test /sys/class/net/wwan0
service ModemManager start
Off course you had to adapte the usb path with your environement, maybe a
special hook in usb dev ?!
and it seems ok (detection is a little slow)... I'm starting my tests on
this setup (LTE Connect OK, SMS Ok).
Le ven. 4 sept. 2020 à 19:40, Nicolas FOURNIL <nicolas.fournil at gmail.com> a
> 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: <debug> [1599237879.432413] Modem (Sierra)
> '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2' completely disposed
> ModemManager: <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...
More information about the lxc-users