Thank you both Greg and Stephenie. (But still problem....) I could build Linux 2.6.83.2 with lxc patches. I could make lxc-0.7.4 work with it. (lxc-0.7.5 did not work.) I mean it doesn't complain any more.
However, I'm not sure if it really works. I did the follwoing: $ lxc-attach -n foo -- /bin/cat /etc/fstab But it shows host's /etc/fstab (not foo's /etc/fstab). I did a few other things. But the outputs are the host's (not the container's). Did I do something wrong? David. ---------------------- Dr. Dong-In "David" Kang Computer Scientist USC/ISI ----- Original Message ----- From: "Greg Kurz" <[email protected]> To: "Dong-In David Kang" <[email protected]> Cc: [email protected] Sent: Thursday, November 3, 2011 4:52:41 PM Subject: Re: [Lxc-users] /proc/<process id>/ns is not found 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 > [email protected] > https://lists.sourceforge.net/lists/listinfo/lxc-users > -- Gregory Kurz [email protected] 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. ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Lxc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lxc-users
