On Thu, Oct 03, 2013 at 09:32:15AM +0000, Purcareata Bogdan-B43198 wrote:
> Hello,
> 
> I am currently running a setup with hundreds of containers starting on the 
> same Linux host. Each of these containers receive a single virtual interface 
> eth0 connected to a host interface using macvlan. These containers only use 
> IPv4, but by default they receive an IPv6 address as well. This causes my 
> kernel to start dumping messages, complaining about IPv6 neighbour table 
> overflow:
> 
> [  558.739929] net_ratelimit: 3833 callbacks suppressed
> [  558.743597] IPv6: Neighbour table overflow
> [  558.746517] IPv6: Neighbour table overflow
> [  558.749426] IPv6: Neighbour table overflow
> [  558.752386] IPv6: Neighbour table overflow
> [  558.755302] IPv6: Neighbour table overflow
> 
> Is there any way to disable IPv6 in containers? I'm thinking about something 
> like lxc.network. ... in the config file, that I don't know about?
> 
> My current solution is to enter the container and issue "echo 1 > 
> /proc/sys/net/ipv6/conf/eth0/disable_ipv6". This made me think that it would 
> be a nice feature to control /proc/sys kernel parameters at runtime using the 
> container config file. I'm thinking some lines that would start with 
> lxc.sysctl and then contain the whole path to the parameter and the value. So 
> for my usecase it would be something like:
> 
> lxc.sysctl.net.ipv6.conf.eth0.disable_ipv6 = 1
> 
> What do you think?
> 
> Bogdan P.


Most distros support a mechanism to set sysctl knobs at boot time, I
don't think it should be LXC's job to do so but instead you should just
update the right config file in your distribution to do that for you.

Something like:
net.ipv6.conf.all.disable_ipv6=1 in /etc/sysctl.conf should do the trick.

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to