On Thu 2011-09-08 (10:05), Nikhil Handigol wrote: > As an additional datapoint, lxc-attach (from lxc-0.7.2) had worked for me > with linux-2.6.35 with the corresponding setns patches (attached). > > Now I need to upgrade the kernel (ideally, to 2.6.38 or 3.0) and I've been > unable to get lxc-attach to work with the newer kernel.
Instead of hassling with patching (every time) the kernel you can instead use my lxc script (*) which can execute commands inside a running container with: lxc -x container command options... Example: root@vms1:/lxc# lxc -L container disk (MB) RAM (MB) start-PID status bunny 552 0 0 stopped fex 42372 0 0 stopped ubuntu 0 0 0 stopped vmtest1 552 5 22304 running vmtest8 552 0 0 stopped root@vms1:/lxc# uname -a Linux vms1 2.6.38-12-server #51~lucid1-Ubuntu SMP Thu Sep 29 20:09:53 UTC 2011 x86_64 GNU/Linux root@vms1:/lxc# lxc -x vmtest1 uname -a Linux vmtest1 2.6.38-12-server #51~lucid1-Ubuntu SMP Thu Sep 29 20:09:53 UTC 2011 x86_64 GNU/Linux (*) http://fex.rus.uni-stuttgart.de/lxc.html -- 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/ ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users