Hi,

I’m new lxc and was wondering if it’s possible at all to pass either the wlan0 
interface (wireless usb dongle) to the container or the actual usb device 
associated with wlan0. For the latter case, I’ve done the following:

In my container config file:

lxc.cgroup.devices.allow = c 189:* rwm
lxc.mount.entry = /dev/bus/usb/001 dev/bus/usb/001 none bind,optional,create=dir

From host:

root@host:/var/lib/lxc/aphost# lsusb
Bus 001 Device 004: ID 0951:1642 Kingston Technology DT101 G2
Bus 001 Device 006: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless 
Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 13d3:3362 IMC Networks 
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

where the wifi usb dongle is on bus 001 device 006.

Once the container is booted, I can see the usb interface and the driver is 
loaded on the host (rt2800usb) but there’s no wlan* interfaces inside the 
container. Any help would be greatly appreciated.

Thanks!
_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to