[Lxc-users] lxc-start "eats" eth1

Ulli Horlacher framstag at rus.uni-stuttgart.de
Tue Apr 12 13:35:13 UTC 2011


On Tue 2011-04-12 (15:24), Daniel Lezcano wrote:
> On 04/12/2011 09:19 AM, Ulli Horlacher wrote:
> 
> > I use lxc with physical eth1.
> > I can start the container, connect to it, etc. Everything looks ok. But
> > when I stop the container and try to restart it, eth1 is no more availble.
> > Looks lxc "eats" this interface. How can I free it (without rebooting the
> > host (zoo))?
> 
> It is probable it was renamed by the kernel when the container exited.

Shouldn't I see it under another name then?

I see only:

root at zoo:~# ll /proc/sys/net/ipv4/conf/
dr-xr-xr-x root     root                   - 2011-04-12 13:33:12 /proc/sys/net/ipv4/conf/all
dr-xr-xr-x root     root                   - 2011-04-12 15:30:22 /proc/sys/net/ipv4/conf/br0
dr-xr-xr-x root     root                   - 2011-04-12 13:33:12 /proc/sys/net/ipv4/conf/default
dr-xr-xr-x root     root                   - 2011-04-12 15:31:17 /proc/sys/net/ipv4/conf/dev3
dr-xr-xr-x root     root                   - 2011-04-12 15:30:22 /proc/sys/net/ipv4/conf/eth0
dr-xr-xr-x root     root                   - 2011-04-12 15:30:22 /proc/sys/net/ipv4/conf/eth2
dr-xr-xr-x root     root                   - 2011-04-12 15:30:22 /proc/sys/net/ipv4/conf/eth3
dr-xr-xr-x root     root                   - 2011-04-12 15:30:22 /proc/sys/net/ipv4/conf/eth4
dr-xr-xr-x root     root                   - 2011-04-12 15:30:22 /proc/sys/net/ipv4/conf/eth5
dr-xr-xr-x root     root                   - 2011-04-12 15:30:22 /proc/sys/net/ipv4/conf/eth6
dr-xr-xr-x root     root                   - 2011-04-12 15:30:22 /proc/sys/net/ipv4/conf/eth7
dr-xr-xr-x root     root                   - 2011-04-12 15:30:22 /proc/sys/net/ipv4/conf/eth8
dr-xr-xr-x root     root                   - 2011-04-12 15:30:22 /proc/sys/net/ipv4/conf/eth9
dr-xr-xr-x root     root                   - 2011-04-12 15:30:22 /proc/sys/net/ipv4/conf/lo


> I think it was fixed by:
> 
> http://lxc.git.sourceforge.net/git/gitweb.cgi?p=lxc/lxc;a=commit;h=d472214b8342a0b705ed40e358cf9caff427042a
> 
> This fix is available in the 0.7.4.1 version

I use lxc provided by Ubuntu 10.04

Must I patch the kernel?


-- 
Ullrich Horlacher              Server- und Arbeitsplatzsysteme
Rechenzentrum                  E-Mail: horlacher at rus.uni-stuttgart.de
Universitaet Stuttgart         Tel:    ++49-711-685-65868
Allmandring 30                 Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.rus.uni-stuttgart.de/




More information about the lxc-users mailing list