[lxc-devel] [lxc-dev]how to use lxc directly in kernel

2011-10-26 Thread yinxb
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

[lxc-devel] 回复 :Re: [lxc-dev]how to use lxc directly in kernel

2011-11-06 Thread yinxb
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 日期: 星

[lxc-devel] IPC between containers

2011-11-07 Thread yinxb
Hi Is there a way to communicate between containers? As far as I know,process in differnt namespace cannot communicate with each other. Thanks in advance! --- Confidentiality Notice: The

[lxc-devel] 回复 :Re: IPC between containers

2011-11-07 Thread yinxb
Hi Jeff Thanks for you quick reply. We are developing a framework to integrate different apps which are running in linux container(for isolation and safety). In some case,the framework(running in another linux container)needs the apps information such as state or resource occupied. So the

[lxc-devel] How to change to lxc internal PID to system wide PID

2011-12-11 Thread yinxb
Hi all These days I encouter a problem. When I use the lxc to running my app,the getpid() system call returns 2.But in my platform, I need the system wide PID instead for some purpose,such as integrade with native app(not running in lxc). (I want to integrade the lxc app in my platform

[lxc-devel] 回复 :Re: How to change to lxc internal PID to system wide PID

2011-12-11 Thread yinxb
Hi Yanhai Thanks for your kind reply. I will try your advise,but it seems I need to change my flatform mechanism. It is not a easy work. Anyway ,thanks. - 原邮件 - 从: Zhu Yanhai 日期: 星期一, 十二月 12日, 2011 下午1:14 主题: Re: [lxc-devel] How to change to lxc internal PID to system wide

[lxc-devel] 回复 :Re: How to change to lxc internal PID to system wide PID

2011-12-12 Thread yinxb
Hi Gregory Kurz From the google search,SCM_CREDENTIALS contains the PID of the sender process,in the sender's PID namespace. So if the lxc App acts as the sender, the PID is 2 which is also invalid for the host. (lxc has its own PID namesapce) Correct me if wrong,thanks. Cheers Xiaobi

[lxc-devel] 回复 :Re: 回复 :Re: How to change to lxc internal PID to system wide PID

2011-12-13 Thread yinxb
Hi Thanks,It is exactly what I want. - 原邮件 - 从: Cedric Le Goater 日期: 星期二, 十二月 13日, 2011 下午4:10 主题: Re: [lxc-devel] 回复 :Re: How to change to lxc internal PID to system wide PID > On 12/13/2011 02:49 AM, yi...@neusoft.com wrote: > > Hi Gregory Kurz > > > >From the google search,

[lxc-devel] 回复 :Re: 回复 :Re: How to change to lxc internal PID to system wide PID

2011-12-13 Thread yinxb
Got it .This is just the thing. Thanks indeed. - 原邮件 - 从: Greg Kurz 日期: 星期二, 十二月 13日, 2011 下午4:21 主题: Re: 回复:Re: [lxc-devel] How to change to lxc internal PID to system wide PID > On Tue, 2011-12-13 at 09:49 +0800, yi...@neusoft.com wrote: > > Hi Gregory Kurz > > > >From the google

[lxc-devel] IPC sync between two containers

2011-12-21 Thread yinxb
Hi All Thanks for the help befor.Now another problem strike me for days. Is there a way to do sync between two processes running in its own container? I need this to do UI sync between my lxc app and UX. Semaphore is proved failed.So will dbus have the capability?or I have to use sock