[Lxc-users] Lxc-attach status update?

Ulli Horlacher framstag at rus.uni-stuttgart.de
Wed Apr 27 21:19:47 UTC 2011


On Wed 2011-04-27 (22:16), Christoph Mitasch wrote:

> BTW, is there another reliable way to initiate a clean shutdown of a
> container running Natty from the Host system except using lxc-attach or
> ssh to the container?

I have written a simple daemon who runs inside the (ubuntu) container and
to which I can communicate with also simple script. It looks like:

root at zoo:~# lxc -h
usage: lxc options container
options: -n  create new container
         -b  boot container
         -c  container console
         -x  execute command in container
         -s  shutdown container
         -l  list

root at zoo:~# lxc -b flupp

root at zoo:~# lxc -l
container              size (MB)   start-PID
egal                         606           0
flupp                        606        2455

root at zoo:~# uname -a
Linux zoo 2.6.39-020639rc3-generic #201104120912 SMP Tue Apr 12 09:16:19 UTC 2011 x86_64 GNU/Linux

root at zoo:~# lxc -x flupp uname -a
Linux flupp 2.6.39-020639rc3-generic #201104120912 SMP Tue Apr 12 09:16:19 UTC 2011 x86_64 GNU/Linux

root at zoo:~# lxc -x shutdown -h now


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