On Tue 2011-04-12 (08:27), Serge Hallyn wrote: > Quoting Ulli Horlacher (frams...@rus.uni-stuttgart.de): > > > On Tue 2011-04-12 (09:19), 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))? > > > > Addon: > > > > This was with kernel 2.6.35-25-virtual > > Could you try a newer kernel?
Same problem with 2.6.39-020639rc3-generic: eth1 will not come back after container shutdown. root@zoo:/lxc# uname -a Linux zoo.rus.uni-stuttgart.de 2.6.39-020639rc3-generic #201104120912 SMP Tue Apr 12 09:16:19 UTC 2011 x86_64 GNU/Linux root@zoo:/lxc# grep network ubuntu.cfg lxc.network.type = phys lxc.network.link = eth1 lxc.network.flags = up lxc.network.name = eth0 lxc.network.mtu = 1500 lxc.network.ipv4 = 129.69.1.219/24 root@zoo:/lxc# l /proc/sys/net/ipv4/conf/ dRWX - 2011-04-13 08:15 /proc/sys/net/ipv4/conf/all dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/br0 dRWX - 2011-04-13 08:15 /proc/sys/net/ipv4/conf/default dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/eth0 dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/eth1 dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/eth2 dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/eth3 dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/eth4 dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/eth5 dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/eth6 dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/eth7 dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/eth8 dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/eth9 dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/lo dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/virbr0 root@zoo:/lxc# lxc-start -d -f /lxc/ubuntu.cfg -n ubuntu root@zoo:/lxc# lxc-console -n ubuntu Type <Ctrl+a q> to exit the console root@LXC:~# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:50:56:8e:00:22 inet addr:129.69.1.219 Bcast:129.69.1.255 Mask:255.255.255.0 inet6 addr: fe80::250:56ff:fe8e:22/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:98 errors:0 dropped:0 overruns:0 frame:0 TX packets:20 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:6675 (6.6 KB) TX bytes:1386 (1.3 KB) root@zoo:/lxc# lxc-stop -n ubuntu root@zoo:/lxc# l /proc/sys/net/ipv4/conf/ dRWX - 2011-04-13 08:15 /proc/sys/net/ipv4/conf/all dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/br0 dRWX - 2011-04-13 08:15 /proc/sys/net/ipv4/conf/default dRWX - 2011-04-13 08:20 /proc/sys/net/ipv4/conf/dev3 dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/eth0 dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/eth2 dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/eth3 dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/eth4 dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/eth5 dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/eth6 dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/eth7 dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/eth8 dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/eth9 dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/lo dRWX - 2011-04-13 08:17 /proc/sys/net/ipv4/conf/virbr0 eth1 is now dev3 (How) can I rename it back? Rebooting the host is not a solution :-} -- Ullrich Horlacher Server- und Arbeitsplatzsysteme Rechenzentrum E-Mail: horlac...@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/ ------------------------------------------------------------------------------ Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo _______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users