On 05/07/2011 09:21 AM, Ulli Horlacher wrote: > I want to temporary suspend (no shutdown!) a running container (flupp) > and start another with the same ip (for some tests). > I thought freezing it is the best way, but: > > > root@vms2:/lxc# lxc -l > container size (MB) start-PID status > flupp 33202 1978 running > ubuntu 490 0 stopped > > root@vms2:/lxc# ping -c 1 flupp > PING flupp.rus.uni-stuttgart.de (129.69.1.219) 56(84) bytes of data. > 64 bytes from flupp.rus.uni-stuttgart.de (129.69.1.219): icmp_seq=1 ttl=64 > time=0.028 ms > > --- flupp.rus.uni-stuttgart.de ping statistics --- > 1 packets transmitted, 1 received, 0% packet loss, time 0ms > rtt min/avg/max/mdev = 0.028/0.028/0.028/0.000 ms > > root@vms2:/lxc# lxc-freeze -n flupp > > root@vms2:/lxc# lxc -l > container size (MB) start-PID status > flupp 33202 1978 frozen > ubuntu 490 0 stopped > > root@vms2:/lxc# ping -c 1 flupp > PING flupp.rus.uni-stuttgart.de (129.69.1.219) 56(84) bytes of data. > 64 bytes from flupp.rus.uni-stuttgart.de (129.69.1.219): icmp_seq=1 ttl=64 > time=0.038 ms > > --- flupp.rus.uni-stuttgart.de ping statistics --- > 1 packets transmitted, 1 received, 0% packet loss, time 0ms > rtt min/avg/max/mdev = 0.038/0.038/0.038/0.000 ms > > > The container flupp is still alive via network, so I cannot start the > second container with the same ip. > > Other ideas for a suspend mode?
Isn't it possible to use iptables to drop the packets for a specific veth interface + lxc-freeze ? ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Lxc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lxc-users
