[ovs-discuss] LXC and Open Vswitch compatibility
Gerard Petersen
gerardjp at me.com
Tue Jun 12 11:32:16 UTC 2012
Hi All,
I'm trying to set up some LXC containers combined with OVS on a Ubuntu 12.04 Server.
I apt-get installed OVS and configured a lxcbr0 switch. When I start the container I end up with the following error:
# lxc-start --logpriority=DEBUG -n srvaa
lxc-start: failed to attach 'veth1KDOho' to the bridge 'lxcbr0' : Operation not supported
lxc-start: failed to create netdev
lxc-start: failed to create the network
lxc-start: failed to spawn 'srvaa'
lxc-start: No such file or directory - failed to remove cgroup '/sys/fs/cgroup/cpuset//lxc/srvaa'
The interesting part is the "Operation not supported". I've found another angle where this is reproduced:
# brctl showmacs lxcbr0
read of forward table failed: Operation not supported
As I've read it seems OVS has an abstraction layer (or emulation if you will) build in so the brctl command (among others) keeps working.
Should I tell LXC somehow to 'hook up' differently with the network. The container's network related config looks like this:
lxc.utsname = srvaa
lxc.network.type = veth
lxc.network.link = lxcbr0
lxc.network.flags = up
# ovs-vsctl show
83dbcb63-03c1-4995-9199-cc34f30d5b0d
Bridge "lxcbr0"
Port "lxcbr0"
Interface "lxcbr0"
type: internal
Port "p100"
Interface "p100"
ovs_version: "1.4.0+build0"
# ip a s lxcbr0
4: lxcbr0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
link/ether be:f1:a7:7c:64:4d brd ff:ff:ff:ff:ff:ff
Any pointers are highly appreciated.
Kind regards,
Gerard.
More information about the discuss
mailing list