[Lxc-users] /proc/<process id>/ns is not found

Greg Kurz gkurz at fr.ibm.com
Thu Nov 3 20:52:41 UTC 2011


On Thu, 2011-11-03 at 13:08 -0700, Dong-In David Kang wrote:
> Hello,
> 
>  I'm trying to use lxc-attach.
> The kernel I'm running is 2.6.38.8.
> I'm using lxc-0.7.5.
> When I run lxc-attach it tries to open /proc/<process id>/ns/...,
> but I cannot find it.
> Did I configure the Linux kernel in a wrong way?
> 
>  I could run an lxc instance.
> But I cannot use lxc-attach at the host.
> 
>  Any help?
> 

Hi,

For lxc-attach to work, you need to patch your kernel with:

http://lxc.sourceforge.net/patches/linux/2.6.38/2.6.38.2-lxc1/patches/

If you're running application containers (AKA. with lxc-execute(1)), you
can give a try to the lxc patches discussed in this thread:

https://sourceforge.net/mailarchive/message.php?msg_id=28283923

They introduce a userland only solution to run an extra commands in an
already running container.

>  Thanks,
> 
>  David.
> 
> ----------------------
> Dr. Dong-In "David" Kang
> Computer Scientist
> USC/ISI
> 
> 
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users
> 

-- 
Gregory Kurz                                     gkurz at fr.ibm.com
Software Engineer @ IBM/Meiosys                  http://www.ibm.com
Tel +33 (0)534 638 479                           Fax +33 (0)561 400 420

"Anarchy is about taking complete responsibility for yourself."
        Alan Moore.





More information about the lxc-users mailing list