[Lxc-users] Problem with lxc-attach on Linux v3.1.0
Ulli Horlacher
framstag at rus.uni-stuttgart.de
Fri Nov 4 08:47:57 UTC 2011
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 at 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 at 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 at 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: 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