[Lxc-users] lxc-attach can't work

Ward, David - 0663 - MITLL david.ward at ll.mit.edu
Sun Apr 1 14:06:58 UTC 2012


On 03/27/2012 09:59 PM, Sam Wang wrote:
> I've tried using lxc-attach to run a process in a running
> container,but it didn't work.The command I use is as follow:
> lxc-execute -n test /home/lisperl/forever
> lxc-attach -n test /bin/bash
>
> The error is :
> lxc-attach: No such file or directory - failed to open '/proc/2540/ns/pid'
> lxc-attach: failed to enter the namespace
>

You have to run a patched kernel to use lxc-attach. The patches are at:

http://lxc.sourceforge.net/patches/linux/

David


More information about the lxc-users mailing list