[Lxc-users] lxcbr0 versus virbr0 (Ubuntu)

Serge Hallyn serge.hallyn at canonical.com
Fri Nov 9 14:31:50 UTC 2012


Quoting Ulli Horlacher (framstag at rus.uni-stuttgart.de):
> 
> Prologue: I run LXC successful for nearly 2 years on Ubuntu 10.04, using
> veth / br0. Every container has its own IP address, no NAT. I run
> production services like http://fex.rus.uni-stuttgart.de/ on it, rocksolid.
> 
> I have now set up second server with Ubuntu 12.04 and there have changed a
> lot of things, starting with networking.
> 
> Reading https://help.ubuntu.com/12.04/serverguide/lxc.html it says
> one can use lxcbr0 or virbr0 for bridging, but without further explanation.
> 
> What is "better"? Or is lxcbr0 only for NAT?

virbr0 is the libvirt bridge, it's essentially identical to lxcbr0.  It's
just that older lxc didn't provide lxcbr0.

Since you have a real bridge, it is better to keep using br0.  In fact,
edit /etc/default/lxc to set USE_LXC_BRIDGE="false" to avoid creating
lxcbr0 at all.

-serge




More information about the lxc-users mailing list