[Lxc-users] freeze/suspend?

Ulli Horlacher framstag at rus.uni-stuttgart.de
Sat May 7 07:21:43 UTC 2011


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?

-- 
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