我正在尝试使用wlan0
以下配置将接口从主机移动到容器,
lxc.network.type = phys
lxc.network.link = wlan0
lxc.network.hwaddr = ab:cd:ef:gh:ij
lxc.network.flags = up
它与我的外部 TP-Link wifi 适配器完美配合,我可以wlan0
通过运行看到容器内可用的接口ifconfig
但我也有一个集成的 ALPS wifi 芯片,相同的容器配置将无法工作,并且会失败并出现以下错误。
lxc-start 20170704134254.641 ERROR lxc_conf - conf.c:lxc_assign_network:3102 - failed to move 'wlan0' to the container : Operation not permitted
lxc-start 20170704134254.641 ERROR lxc_start - start.c:lxc_spawn:1199 - Failed to create the configured network.
lxc-start 20170704134254.641 INFO lxc_conf - conf.c:lxc_delete_network:2926 - Interface "eth0" with index 6 already deleted or existing in different network namespace.
lxc-start 20170704134254.710 INFO lxc_conf - conf.c:lxc_delete_network:2961 - Removed interface "vethQVT9W2" from host.
lxc-start 20170704134254.711 ERROR lxc_start - start.c:__lxc_start:1338 - Failed to spawn container "my-cont".
lxc-start 20170704134254.779 WARN lxc_commands - commands.c:lxc_cmd_rsp_recv:172 - command get_cgroup failed to receive response
lxc-start 20170704134259.784 ERROR lxc_start_ui - lxc_start.c:main:360 - The container failed to start.
lxc-start 20170704134259.784 ERROR lxc_start_ui - lxc_start.c:main:362 - To get more details, run the container in foreground mode.
lxc-start 20170704134259.784 ERROR lxc_start_ui - lxc_start.c:main:364 - Additional information can be obtained by setting the --logfile and --logpriority options.
我还找到了一个线其中说,直到sysfs
虚拟化尚未完成时,内核才会有此限制。
如果是这样的话,它对我的外部 WiFi 适配器如何工作?
还是我还缺少其他东西?