[Lxc-users] Failed to move phys interface, invalid argument (Linux 3.1.0, lxc 0.7.5)

Ivan Vilata i Balaguer ivan at selidor.net
Mon Nov 21 12:20:54 UTC 2011


Hi all.  I'm having trouble moving a physical, unused WiFi interface in my
computer to a container, which uses a network configuration like this::

  ## Network
  lxc.network.type      = veth
  lxc.network.flags     = up
  lxc.network.hwaddr    = 00:FF:33:44:55:66
  lxc.network.link      = br0
  lxc.network.mtu       = 1500
  lxc.network.name      = eth0
  lxc.network.veth.pair = veth-sidtest

  ## Network
  lxc.network.type      = phys
  lxc.network.flags     = up
  lxc.network.link      = wlan0
  lxc.network.name      = wifi0

When invoking "lxc-start -n sidtest" I get these error messages::

  lxc-start: failed to move 'wlan0' to the container : Invalid argument
  lxc-start: failed to create the configured network
  lxc-start: failed to spawn 'sidtest'
  lxc-start: Device or resource busy - failed to remove cgroup '/sys/fs/cgroup/sidtest'

I'm using Debian unstable's current 3.1.0 Linux kernel with LXC version 0.7.5.
Using a dummy interface instead of wlan0 works as expected (though the
interface vanishes after stopping the container), and using only the veth
interface also works.

Is this not supported yet?  Am I missing some configuration issue?

Thanks a lot!
-- 
Ivan Vilata i Balaguer -- https://elvil.net/




More information about the lxc-users mailing list