Re: [Lxc-users] lxcbr0 MAC addr issue

2013-06-10 Thread Hans Feldt
On 06/05/2013 02:40 PM, Serge Hallyn wrote: Now my question, could not lxc (at boot) setup a fixed MAC addr for the host port? Yeah, given how bad this was for libvirt/qemu I'm surprised I've not seen this happen in lxc - but I haven't, and noone else has reported it. Since you mention

Re: [Lxc-users] lxcbr0 MAC addr issue

2013-06-10 Thread Hans Feldt
On 06/05/2013 06:26 PM, Serge Hallyn wrote: BUT I just did some testing, and even as I watch lxcbr0's addr go down when starting a new container, my ssh to the container which had the higher macaddr doesn't hiccough. the problem appears in the other direction, container to host /Hans

Re: [Lxc-users] lxcbr0 MAC addr issue

2013-06-10 Thread Serge Hallyn
Quoting Hans Feldt (hans.fe...@ericsson.com): open a bug at https://bugs.launchpad.net/ubuntu/+source/lxc/+filebug as it should be trivially fixable in /etc/init/lxc-net.conf. OK will do. Cool, thanks, I'll track it there.

[Lxc-users] lxcbr0 MAC addr issue

2013-06-05 Thread Hans Feldt
It is a fact that the bridge takes the lowest MAC address from the attached ports for the host port. See for example http://backreference.org/2010/07/28/linux-bridge-mac-addresses-and-dynamic-ports/ Thus if a container is restarted, the host port can potentially change its MAC address and

Re: [Lxc-users] lxcbr0 MAC addr issue

2013-06-05 Thread Serge Hallyn
Now my question, could not lxc (at boot) setup a fixed MAC addr for the host port? Yeah, given how bad this was for libvirt/qemu I'm surprised I've not seen this happen in lxc - but I haven't, and noone else has reported it. Since you mention lxcbr0, I assume you're using ubuntu? Until we

Re: [Lxc-users] lxcbr0 MAC addr issue

2013-06-05 Thread Michael H. Warfield
On Wed, 2013-06-05 at 07:40 -0500, Serge Hallyn wrote: Now my question, could not lxc (at boot) setup a fixed MAC addr for the host port? Yeah, given how bad this was for libvirt/qemu I'm surprised I've not seen this happen in lxc - but I haven't, and noone else has reported it.

Re: [Lxc-users] lxcbr0 MAC addr issue

2013-06-05 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): On Wed, 2013-06-05 at 07:40 -0500, Serge Hallyn wrote: Now my question, could not lxc (at boot) setup a fixed MAC addr for the host port? Yeah, given how bad this was for libvirt/qemu I'm surprised I've not seen this happen in lxc -

Re: [Lxc-users] lxcbr0 MAC addr issue

2013-06-05 Thread Michael H. Warfield
On Wed, 2013-06-05 at 09:30 -0500, Serge Hallyn wrote: Quoting Michael H. Warfield (m...@wittsend.com): On Wed, 2013-06-05 at 07:40 -0500, Serge Hallyn wrote: Now my question, could not lxc (at boot) setup a fixed MAC addr for the host port? Yeah, given how bad this was for

[Lxc-users] lxcbr0 MAC addr issue

2013-06-05 Thread Jäkel , Guido
yes and it does this. The point is that lxcbr0 is not tied to any physical nic. So the first container you start, however high the macaddr is, lxcbr0 takes its mac. If the next container gets a lower macaddr, lxcbr0's macaddr drops. This lxcbr0 is special to Ubuntu, right? And if not to a

Re: [Lxc-users] lxcbr0 MAC addr issue

2013-06-05 Thread Michael H. Warfield
On Wed, 2013-06-05 at 15:17 +, Jäkel, Guido wrote: yes and it does this. The point is that lxcbr0 is not tied to any physical nic. So the first container you start, however high the macaddr is, lxcbr0 takes its mac. If the next container gets a lower macaddr, lxcbr0's macaddr drops.

Re: [Lxc-users] lxcbr0 MAC addr issue

2013-06-05 Thread Michael H. Warfield
Crap... Bumped the keyboard and this one got away from me prematurely. On Wed, 2013-06-05 at 11:23 -0400, Michael H. Warfield wrote: On Wed, 2013-06-05 at 15:17 +, Jäkel, Guido wrote: yes and it does this. The point is that lxcbr0 is not tied to any physical nic. So the first

Re: [Lxc-users] lxcbr0 MAC addr issue

2013-06-05 Thread Michael H. Warfield
On Wed, 2013-06-05 at 06:23 +, Hans Feldt wrote: It is a fact that the bridge takes the lowest MAC address from the attached ports for the host port. See for example http://backreference.org/2010/07/28/linux-bridge-mac-addresses-and-dynamic-ports/ Thus if a container is restarted, the

Re: [Lxc-users] lxcbr0 MAC addr issue

2013-06-05 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): Crap... Bumped the keyboard and this one got away from me prematurely. On Wed, 2013-06-05 at 11:23 -0400, Michael H. Warfield wrote: On Wed, 2013-06-05 at 15:17 +, Jäkel, Guido wrote: yes and it does this. The point is that lxcbr0

Re: [Lxc-users] lxcbr0 MAC addr issue

2013-06-05 Thread Michael H. Warfield
On Wed, 2013-06-05 at 11:26 -0500, Serge Hallyn wrote: Quoting Michael H. Warfield (m...@wittsend.com): Crap... Bumped the keyboard and this one got away from me prematurely. On Wed, 2013-06-05 at 11:23 -0400, Michael H. Warfield wrote: On Wed, 2013-06-05 at 15:17 +, Jäkel, Guido

Re: [Lxc-users] lxcbr0 MAC addr issue

2013-06-05 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): On Wed, 2013-06-05 at 11:26 -0500, Serge Hallyn wrote: Quoting Michael H. Warfield (m...@wittsend.com): Crap... Bumped the keyboard and this one got away from me prematurely. On Wed, 2013-06-05 at 11:23 -0400, Michael H. Warfield