[Lxc-users] freeze/suspend?

Daniel Lezcano daniel.lezcano at free.fr
Sat May 7 22:49:25 UTC 2011


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 at vms2:/lxc# lxc -l
> container              size (MB)   start-PID    status
> flupp                      33202        1978   running
> ubuntu                       490           0   stopped
>
> root at 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 at vms2:/lxc# lxc-freeze -n flupp
>
> root at vms2:/lxc# lxc -l
> container              size (MB)   start-PID    status
> flupp                      33202        1978    frozen
> ubuntu                       490           0   stopped
>
> root at 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 ?




More information about the lxc-users mailing list