Re: [Lxc-users] What should 'uptime' say inside an lxc container?

2012-09-11 Thread Jäkel , Guido
Dear Dan, As a workaround you may use the following perl script written by Ullrich Horlacher. It also demonstrates the basic idea where to get a containers uptime from. Here he use a well known file, but I think one may also use the information related to the containers init process.

Re: [Lxc-users] What should 'uptime' say inside an lxc container?

2012-09-11 Thread Dan Kegel
On Mon, Sep 10, 2012 at 11:39 PM, Jäkel, Guido g.jae...@dnb.de wrote: As a workaround you may use the following perl script written by Ullrich Horlacher. It also demonstrates the basic idea where to get a containers uptime from. Here he use a well known file, but I think one may also use the

[Lxc-users] What should 'uptime' say inside an lxc container?

2012-09-10 Thread Dan Kegel
'uptime' seems to be the uptime of the host, not of the guest. Is that intended? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how

Re: [Lxc-users] What should 'uptime' say inside an lxc container?

2012-09-10 Thread Stéphane Graber
On 12-09-10 02:02 PM, Dan Kegel wrote: 'uptime' seems to be the uptime of the host, not of the guest. Is that intended? uptime reads /proc/uptime which is gets you the time since the kernel was started. There are a few ways of fixing that issue: - Implement a new time namespace allowing us