I wanted to use an LXContainer to act as access point for my WiFi with hostapd.
I put these values into the config.
lsusb successfully recognized the WiFi adapter. But it still didn't create the wlan0 interface..
Running lshw -C network also showed, that the WiFi adapter wasn't recognized as network interface.
What did I do wrong? Do I also need another mount?
I also set up a virtual machine where I passed through the WiFi adapter and it worked fine with hostapd as AP. But I really would prefer using a container for this, because of resources and latency since the passthrough of USB devices is much more complex on KVM than it is with LXC.
I put these values into the config.
Code:
lxc.cgroup.devices.allow = c 189:* rwm
lxc.mount.entry = /dev/bus/usb/005/001 dev/bus/usb/005/001 none bind,optional,create=dir
lsusb successfully recognized the WiFi adapter. But it still didn't create the wlan0 interface..
Running lshw -C network also showed, that the WiFi adapter wasn't recognized as network interface.
What did I do wrong? Do I also need another mount?
I also set up a virtual machine where I passed through the WiFi adapter and it worked fine with hostapd as AP. But I really would prefer using a container for this, because of resources and latency since the passthrough of USB devices is much more complex on KVM than it is with LXC.