epoch1970
Posts: 5132
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Ubuntu 16.04 LTS - LXD export of bcm wifi iface fails

Fri Jul 01, 2016 5:38 pm

FYI, exporting the physical wifi interface of Pi 3 to an LXD container fails.
I'm playing with LXD on a Pi 3 with an ubuntu distro: Ubuntu 16.04 LTS (GNU/Linux 4.4.0-1016-raspi2 armv7l)

I can't get the Broadcom wifi interface to emerge into a container, but I was surprised it would work with an Edimax EW-7811Un USB card:

Code: Select all

root@berck:~# iw phy phy0 set netns 16099
command failed: Operation not supported (-95)
root@berck:~# iw phy phy1 set netns 16099
root@berck:~# lxc exec again bash

root@again:~# ifconfig -a
[SNIP]
wlx74da38010101 Link encap:Ethernet  HWaddr 74:da:38:01:01:01
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
In addition the "iw phy" rigmarole is sub-optimal; You have to run it from the host, once the guest has started... I would love if in the future I could simply configure once and for all my container with something like:
"lxc config device add container wlan0 nic nictype=physical parent=wlan0" or
"lxc config device add container phy0 nic nictype=physical parent=phy0"

Thanks!
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

Return to “Other”