<div class="gmail_quote">On Sat, May 14, 2011 at 1:34 AM, Serge Hallyn <span dir="ltr"><<a href="mailto:serge.hallyn@canonical.com">serge.hallyn@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">
</div>Immediately I assume that your problem is that the mac addresses<br>
assigned to your containers are lower than that of the bridge.  The<br>
bridge always takes on the lowest mac of any of its nics, so it'll<br>
change its mac address, which will temporarily drop the host's<br>
network connection if it's also part of that bridge.<br>
<br>
If I'm not mistaken you can specify a macaddr for your container<br>
using<br>
<br>
lxc.network.hwaddr=$x<br>
<br>
where x is a mac address - just make sure it's higher than the<br>
host's.<br></blockquote><div><br>Your diagnosis looks right to me, all the symptoms match with a mac addr change, and I've seen the br0 mac address change between the 2 ifaces on some tests.<br>However, forcing kvm to assign the host a macaddr of 00:... and even seting that ip to the bridge in the hosts network/interfaces did not seem to solve the problem, I haven't seen the bridge changing mac addr anymore, but the 20-30 second hang is still there, so I don't know what to think, I've find few webs in the internet detailing the problem and solving it like that, but apparently it does not work for me.<br>
So, with a bridge with the lower macaddr I still experiment network hangs when starting containers, and even worse, when using the network from the container it hangs as well with a simple "apt-get update" on my ssh link laptop->host->guest.<br>
<br>Somehow each time the container uses the network the host networking hangs, I suspect the guest has no problem with it though I can't see it because my ssh connection goes through the host and hangs there.<br><br>
Apart from that, I discovered that lxc.network.hwaddr= sets the internal macaddr of the container, but not the in-host generated interface that gets added to the bridge.<br><br>Thanks<br><br>Arkaitz<br></div></div>