Re: [lxc-devel] /proc/cpuinfo per cgroup

2013-11-25 Thread Daniel P. Berrange
On Mon, Nov 25, 2013 at 09:09:40AM -0600, Serge Hallyn wrote: > Quoting Marian Marinov (m...@yuhu.biz): > > Hi guys, > > I'm using LXC containers for some of my teaching and I want to have > > /proc/cpuinfo and /proc/memory based on the cgroup > > limits that I have set. > > > > The idea is that

Re: [lxc-devel] [systemd-devel] [PATCH] netns: unix: only allow to find out unix socket in same net namespace

2013-08-21 Thread Daniel P. Berrange
On Wed, Aug 21, 2013 at 11:51:53AM +0200, Kay Sievers wrote: > On Wed, Aug 21, 2013 at 9:22 AM, Gao feng wrote: > > On 08/21/2013 03:06 PM, Eric W. Biederman wrote: > > >> I suspect libvirt should simply not share /run or any other normally > >> writable directory with the host. Sharing /run /va

Re: [lxc-devel] [PATCH 11/17] Use srand/rand instead of initstate/random

2013-08-16 Thread Daniel P. Berrange
On Fri, Aug 16, 2013 at 06:01:25PM +0200, Stéphane Graber wrote: > On Fri, Aug 16, 2013 at 10:36:58AM -0500, Serge Hallyn wrote: > > Quoting Stéphane Graber (stgra...@ubuntu.com): > > > initstate/random doesn't work on bionic, srand/rand works on everything, > > > so let's use that. > > > > Is ran

Re: [lxc-devel] [PATCH 1/1] lxc_create: prepend pretty header to config file

2013-07-12 Thread Daniel P. Berrange
On Fri, Jul 12, 2013 at 11:00:09AM -0500, Serge Hallyn wrote: > Quoting Daniel P. Berrange (berra...@redhat.com): > > Copy+pasting code for encryption algorithms is really not nice. > > It means that instead of distributors of your package being able > > to rely on the fact

Re: [lxc-devel] [PATCH 1/1] lxc_create: prepend pretty header to config file

2013-07-12 Thread Daniel P. Berrange
On Fri, Jul 12, 2013 at 10:27:14AM -0500, Serge Hallyn wrote: > Quoting Stéphane Graber (stgra...@ubuntu.com): > > On Thu, Jul 11, 2013 at 11:51:25PM -0500, Serge Hallyn wrote: > > > Define a sha1sum_file() function in utils.c (which requires configure.ac > > > to check for -lcrypto and -lssl). Us

Re: [lxc-devel] [PATCH] Add mechanism for container to notify host about end of boot

2012-09-14 Thread Daniel P. Berrange
On Fri, Sep 14, 2012 at 12:12:57PM +0100, Christian Seiler wrote: > >>If we want to have a back-channel, we'd need a socket, which > >>makes just > >>doing echo RUNNING > /dev/lxc-notify impossible, you'd need a > >>special > >>program for that. Having the template scripts dump an additional > >>sc

Re: [lxc-devel] [PATCH] Add mechanism for container to notify host about end of boot

2012-09-14 Thread Daniel P. Berrange
On Thu, Sep 13, 2012 at 11:26:39PM +0200, Christian Seiler wrote: > > I like the idea but haven't looked at the implementation yet as the > > patch is really quite large. Quickly scanning through I briefly noticed > > that the copyright headers for the new files are wrong (refer to IBM and > > Dani

Re: [lxc-devel] [PATCH 2/3] lxc-pkgconfig-dir

2012-09-10 Thread Daniel P. Berrange
On Mon, Sep 10, 2012 at 10:39:39AM -0400, Stéphane Graber wrote: > On 12-09-10 10:28 AM, Dwight Engen wrote: > > Put pkg-config .pc file in libdir. > > > > Signed-off-by: Dwight Engen > > --- > > Makefile.am |2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/Ma

[lxc-devel] Libvirt/LXC/SystemD/SELinux Hackfest at Linux Plumbers, San Diego

2012-07-20 Thread Daniel P. Berrange
people from these projects participating, including Dan Walsh, Eric Paris, Daniel P. Berrange, Kay Sievers and myself. Topics we'll cover: making Fedora/Linux boot entirely cleanly in normal containers, teaching systemd's control tools minimal container-awareness (such as being a