Thank you very much guys !

On Nov 7, 2013, at 5:59 PM, Serge Hallyn <[email protected]> wrote:

> Quoting Robin Monjo ([email protected]):
>> Thank you, it does set the correct IP but I can't reach internet now. Any 
>> idea ?
> 
> you'll need to set a route and resolv.conf, which lxc doesn't do.  You
> should be able to do that with a lxc.script.up script, though, so
> 
> cat > /usr/share/lxc/hooks/setroute << EOF
> #!/bin/sh
> route add -net default 10.0.3.1
> echo "nameserver 10.0.3.1" > /etc/resolvconf/resolv.conf.d/base
> EOF
> chmod ugo+x /usr/share/lxc/hooks/setroute
> echo "lxc.network.script.up = /usr/share/lxc/hooks/setroute" > 
> /var/lib/lxc/$container/config
> 
> -serge


------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Lxc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to