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)"lxc config device add container wlan0 nic nictype=physical parent=wlan0" or
"lxc config device add container phy0 nic nictype=physical parent=phy0"
Thanks!