[lxc-devel] [PATCH] call lxc_container_put when appropriate

2013-10-03 Thread S . Çağlar Onur
Signed-off-by: S.Çağlar Onur --- src/lxc/lxc_cgroup.c | 1 + src/lxc/lxc_clone.c| 1 + src/lxc/lxc_console.c | 4 src/lxc/lxc_destroy.c | 1 + src/lxc/lxc_freeze.c | 1 + src/lxc/lxc_info.c | 2 ++ src/lxc/lxc_snapshot.c | 1 + src/lxc/lxc_unfreeze.c | 1 + src/lxc/lxc_wait.c

Re: [lxc-devel] [PATCH 1/1] templates/lxc-fedora Rework for distro independence.

2013-10-03 Thread Michael H. Warfield
On Thu, 2013-10-03 at 20:49 -0500, Serge Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > On Thu, 2013-10-03 at 16:58 -0500, Serge Hallyn wrote: > > > Quoting Michael H. Warfield (m...@wittsend.com): > > > > On Wed, 2013-10-02 at 23:39 -0500, Serge Hallyn wrote: > > > > > Quo

[lxc-devel] [PATCH] lxc-ubuntu: Remove trim option

2013-10-03 Thread Stéphane Graber
Container trimming is a bad idea in general, Ubuntu since 12.04 allows standard systems to run in containers and we've got separate code to deal with 10.04, so let's just drop trim. Signed-off-by: Stéphane Graber --- templates/lxc-ubuntu.in | 96 ++---

[lxc-devel] [lxc/lxc] 449989: templates/lxc-fedora Rework for distro independenc...

2013-10-03 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 449989ac38e07080c6b951de31ccba82753058b7 https://github.com/lxc/lxc/commit/449989ac38e07080c6b951de31ccba82753058b7 Author: Michael H. Warfield Date: 2013-10-03 (Thu, 03 Oct 2013) Changed paths: M templat

Re: [lxc-devel] [PATCH 1/1] templates/lxc-fedora Rework for distro independence.

2013-10-03 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): > This patch reworks the Fedora template to operate in the most "distro > agnostic" manner possible. It should even run on distros where rpm and > yum are not present and not available or may be incompatible. It > depends on the most basic set of s

Re: [lxc-devel] [PATCH 1/1] templates/lxc-fedora Rework for distro independence.

2013-10-03 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): > On Thu, 2013-10-03 at 16:58 -0500, Serge Hallyn wrote: > > Quoting Michael H. Warfield (m...@wittsend.com): > > > On Wed, 2013-10-02 at 23:39 -0500, Serge Hallyn wrote: > > > > Quoting Michael H. Warfield (m...@wittsend.com): > > > > > +mount

Re: [lxc-devel] [PATCH 1/1] lxc/conf.c Heuristic determination of autodev condition...

2013-10-03 Thread Michael H. Warfield
On Thu, 2013-10-03 at 23:30 +0100, Christian Seiler wrote: > Hi there, > > > The initial heuristic, in this case, is the existence > > of /etc/systemd/system in the container to enable autodev. This is > > the > > heuristic used in the lxc-fedora template but it applicable to all > > systemd co

Re: [lxc-devel] [PATCH 1/1] lxc/conf.c Heuristic determination of autodev condition...

2013-10-03 Thread Christian Seiler
Hi there, > The initial heuristic, in this case, is the existence > of /etc/systemd/system in the container to enable autodev. This is > the > heuristic used in the lxc-fedora template but it applicable to all > systemd containers, as far as I can determine. Just a quick note about the specific

Re: [lxc-devel] [PATCH 1/1] templates/lxc-fedora Rework for distro independence.

2013-10-03 Thread Michael H. Warfield
On Thu, 2013-10-03 at 16:58 -0500, Serge Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > On Wed, 2013-10-02 at 23:39 -0500, Serge Hallyn wrote: > > > Quoting Michael H. Warfield (m...@wittsend.com): > > > > +mount -o loop ../LiveOS/squashfs.img squashfs > > > > > Heh, th

Re: [lxc-devel] [PATCH 1/1] templates/lxc-fedora Rework for distro independence.

2013-10-03 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): > On Wed, 2013-10-02 at 23:39 -0500, Serge Hallyn wrote: > > Quoting Michael H. Warfield (m...@wittsend.com): > > > +mount -o loop ../LiveOS/squashfs.img squashfs > > > Heh, this is unfortunate - since I test things inside containers, now I > >

[lxc-devel] [PATCH 1/1] lxc/conf.c Heuristic determination of autodev condition...

2013-10-03 Thread Michael H. Warfield
My second takeaway from the Linux Plumbers conference was to do an automatic heuristic determination when we should enable autodev (mounting of something on /dev/ in the container at startup for things like systemd). If autodev is not enabled when it is required (systemd) the container can cause t

Re: [lxc-devel] [PATCH 1/1] templates/lxc-fedora Rework for distro independence.

2013-10-03 Thread Michael H. Warfield
On Wed, 2013-10-02 at 23:39 -0500, Serge Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > +mount -o loop ../LiveOS/squashfs.img squashfs > Heh, this is unfortunate - since I test things inside containers, now I > have to face the loop device in containers issue :) > For n

Re: [lxc-devel] [PATCH 1/1] templates/lxc-fedora Rework for distro independence.

2013-10-03 Thread Michael H. Warfield
Serge, On Wed, 2013-10-02 at 23:39 -0500, Serge Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > +mount -o loop ../LiveOS/squashfs.img squashfs > Heh, this is unfortunate - since I test things inside containers, now I > have to face the loop device in containers issue :)

[lxc-devel] [lxc/lxc] 025f59: add basic lxc-test-ubuntu (v3)

2013-10-03 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 025f59ab98217b7e9caf6d3ac7e910853d95f621 https://github.com/lxc/lxc/commit/025f59ab98217b7e9caf6d3ac7e910853d95f621 Author: Serge Hallyn Date: 2013-10-03 (Thu, 03 Oct 2013) Changed paths: M configure.ac

[lxc-devel] [lxc/lxc] a5a825: confile.c: cast size_t to prevent compile failure ...

2013-10-03 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: a5a82508547320372b1d935193b85e80884e1e29 https://github.com/lxc/lxc/commit/a5a82508547320372b1d935193b85e80884e1e29 Author: Serge Hallyn Date: 2013-10-03 (Thu, 03 Oct 2013) Changed paths: M src/lxc/confil

Re: [lxc-devel] [PATCH 1/1] templates/lxc-fedora Rework for distro independence.

2013-10-03 Thread Michael H. Warfield
On Wed, 2013-10-02 at 23:39 -0500, Serge Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > +mount -o loop ../LiveOS/squashfs.img squashfs > > Heh, this is unfortunate - since I test things inside containers, now I > have to face the loop device in containers issue :) Yeah,

Re: [lxc-devel] [PATCH 1/1] add basic lxc-test-ubuntu (v3)

2013-10-03 Thread Stéphane Graber
On Wed, Oct 02, 2013 at 10:30:31PM -0500, Serge Hallyn wrote: > Some features of lxc - networking and LSM configuration for instance - > are generally configured by the distro packages. This program > tests the Ubuntu configuration. > > changelog v2: > Switch to lxc-info -i to detect ip address

Re: [lxc-devel] Disable IPv6 for container interfaces. Support for sysctl in containers

2013-10-03 Thread Stéphane Graber
On Thu, Oct 03, 2013 at 09:32:15AM +, Purcareata Bogdan-B43198 wrote: > Hello, > > I am currently running a setup with hundreds of containers starting on the > same Linux host. Each of these containers receive a single virtual interface > eth0 connected to a host interface using macvlan. The

[lxc-devel] [lxc/lxc] 2aa123: add reboot test

2013-10-03 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 2aa123185e055bbe2506a6210e795e0b9375e477 https://github.com/lxc/lxc/commit/2aa123185e055bbe2506a6210e795e0b9375e477 Author: Serge Hallyn Date: 2013-10-03 (Thu, 03 Oct 2013) Changed paths: M src/tests/Make

[lxc-devel] Disable IPv6 for container interfaces. Support for sysctl in containers

2013-10-03 Thread Purcareata Bogdan-B43198
Hello, I am currently running a setup with hundreds of containers starting on the same Linux host. Each of these containers receive a single virtual interface eth0 connected to a host interface using macvlan. These containers only use IPv4, but by default they receive an IPv6 address as well. T

Re: [lxc-devel] Device Namespaces

2013-10-03 Thread Eric W. Biederman
Amir Goldstein writes: > Excellent! let's focus the discussion on a new device driver we want > to write > which is namespace aware. let's call this device driver valarm-dev. > Similarly to Android's alarm-dev, valarm-dev can be used to request > RTC wakeup calls > from user space and get/set RTC

Re: [lxc-devel] Device Namespaces

2013-10-03 Thread Amir Goldstein
On Thu, Oct 3, 2013 at 3:44 AM, Eric W. Biederman wrote: > Amir Goldstein writes: > > > What we really like to see is a setns() style API that can be used to > > add a device in the context of a namespace in either a "shared" or > > "private" mode. > > I think you mean an "ip link set dev FOO net