Hi Thanks Guido Trotter and Daniel Smith . I just find a lxc rpm and untar the package to the corresponding dirctory. and make a little modify of the script. Lxc works fine except lxc-ps(a wrapper of ps command) which depends on perl.
ps:kernel 2.6.35 ----- 原邮件 ----- 从: Daniel Smith <viscous.liq...@gmail.com> 日期: 星期六, 十一月 5日, 2011 上午2:09 主题: Re: [lxc-devel] [lxc-dev]how to use lxc directly in kernel > On 11/4/2011 12:42 PM, Guido Trotter wrote: > > On Thu, Oct 27, 2011 at 6:35 AM,<yi...@neusoft.com> wrote: > > > > Hi, > > > >> Hi > >> > >> I am a newbie to Linux container. > >> Recently,I decide to using lxc derectly on linux kernel,but > find it > >> hard to install. > >> (so far as I know,lxc tools is based on GUI Linux distribution). > >> Anyone has this experience? > >> or give me a hint on how to use the lxc directly on linux kernel > >> without the lxc tools? > >> > > That requires programming in C and calling syscalls. It's not quite > > easier than using "lxc" :) > > > > Thanks, > > > > Guido > > > I think the poster should clarify what they mean by using lxc > directly > on the kernel. If they just want the namespace isolation they can > use > the unshare utility in a shell script to wrap the target program. > CGroups can easily be managed in a similar fashion. You could even > provide an alternative rootfs through the chroot utility. As I > type > this, I think it would be an interesting challenge to see how much > of > lxc could be recreated as a shell script(s) using these utilities. > > v/r, > Daniel > > > ------------------------------------------------------------------- > ----------- > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Lxc-devel mailing list > Lxc-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/lxc-devel > --------------------------------------------------------------------------------------------------- Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and may be confidential and/or privileged of Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying is strictly prohibited, and may be unlawful.If you have received this communication in error,please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you. --------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel