On Thu 2011-05-26 (09:34), Jäkel, Guido wrote: > something related to the "Howto detect we're a LXC Container" is the > question: "Howto detect from inside a container the name (or something > equivalent) of the machine we're hosted on?"
My lxc meta-script creates /lxc/hostname inside the container at startup: root@vms2:/lxc# lxc -b vmtest8 root@vms2:/lxc# lxc -x vmtest8 "uname -a; cat /lxc/hostname" Linux vmtest8 2.6.32-31-server #61-Ubuntu SMP Fri Apr 8 19:44:42 UTC 2011 x86_64 GNU/Linux vms2 -- Ullrich Horlacher Server- und Arbeitsplatzsysteme Rechenzentrum E-Mail: horlac...@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/ ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users