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@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@zoo:~# lxc -b flupp

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

root@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@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@zoo:~# lxc -x shutdown -h now


-- 
Ullrich Horlacher              Server- und Arbeitsplatzsysteme
Rechenzentrum                  E-Mail: [email protected]
Universitaet Stuttgart         Tel:    ++49-711-685-65868
Allmandring 30                 Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.rus.uni-stuttgart.de/

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

Reply via email to