Re: [lxc-devel] [PATCH] Add subdir-objects option to AM_INIT_AUTOMAKE

2013-08-15 Thread Alexander Vladimirov
It seems to build fine on older Arch Linux machine with automake 1.13 2013/8/16 Serge Hallyn : > Quoting Alexander Vladimirov (alexander.idkfa.vladimi...@gmail.com): >> Fix build with automake 1.14 and newer, since it requires explicit >> setting now. > > Will this brea

[lxc-devel] [PATCH] Add subdir-objects option to AM_INIT_AUTOMAKE

2013-08-14 Thread Alexander Vladimirov
Fix build with automake 1.14 and newer, since it requires explicit setting now. Signed-off-by: Alexander Vladimirov --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index cdf5290..245df30 100644 --- a/configure.ac +++ b

Re: [lxc-devel] [PATCH/RFC] Add lxc.stopsignal config option

2013-03-13 Thread Alexander Vladimirov
I am unable to reproduce it with my containers, can you show config used to test? 2013/3/14 Stéphane Graber : > On 03/12/2013 09:37 AM, Serge Hallyn wrote: >> Quoting Alexander Vladimirov (alexander.idkfa.vladimi...@gmail.com): >>> I remember discussion about implementing prop

Re: [lxc-devel] [PATCH] Invoke lxc_map_ids only when id_map is not empty

2013-03-13 Thread Alexander Vladimirov
With recent commits this code path prevents containers from starting on vanilla kernels, because there's no /proc//{u,g}id_map support there. If it was intended to make user namespaces support mandatory, then disregard that patch please. 2013/3/13 Serge Hallyn : > Quoting Alexander Vl

[lxc-devel] [PATCH] Invoke lxc_map_ids only when id_map is not empty

2013-03-13 Thread Alexander Vladimirov
Signed-off-by: Alexander Vladimirov --- src/lxc/start.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index 3fdfa04..05646c2 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -823,9 +823,11 @@ int lxc_spawn(struct lxc_handler

[lxc-devel] [PATCH] Update lxc-archlinux template default config to use new options

2013-03-13 Thread Alexander Vladimirov
Signed-off-by: Alexander Vladimirov --- templates/lxc-archlinux.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/lxc-archlinux.in b/templates/lxc-archlinux.in index a542366..75c4d17 100644 --- a/templates/lxc-archlinux.in +++ b/templates/lxc-archlinux.in

Re: [lxc-devel] [PATCH] Add lxc.disable_kmsg option

2013-03-13 Thread Alexander Vladimirov
;s time spent on this, so if you want to stick with > what you sent, just reply with 'ack' and I'll ack and push this > patch. > > thanks, > -serge > > Quoting Alexander Vladimirov (alexander.idkfa.vladimi...@gmail.com): >> well, this is kind of workaround for

Re: [lxc-devel] [PATCH] Add lxc.disable_kmsg option

2013-03-13 Thread Alexander Vladimirov
well, this is kind of workaround for workaround, so I guess this option won't stay there forever anyway 2013/3/13 Michael Tokarev : > 13.03.2013 10:05, Alexander Vladimirov wrote: >> Disables /dev/kmsg symlinking if set to 1. > > Maybe it is better to avoid nega

[lxc-devel] [PATCH] Add lxc.disable_kmsg option

2013-03-12 Thread Alexander Vladimirov
Disables /dev/kmsg symlinking if set to 1. Signed-off-by: Alexander Vladimirov --- doc/lxc.conf.sgml.in | 19 +++ src/lxc/conf.c | 6 -- src/lxc/conf.h | 1 + src/lxc/confile.c| 12 4 files changed, 36 insertions(+), 2 deletions(-) diff --git

[lxc-devel] [PATCH/RFC] Add lxc.stopsignal config option

2013-03-12 Thread Alexander Vladimirov
I remember discussion about implementing proper way to shutdown guests using different signals, so here's a patch proposal. It allows to use specific signal numbers to shutdown guests gracefully, for example SIGRTMIN+4 starts poweroff.target in systemd. Signed-off-by: Alexander Vladi

[lxc-devel] [PATCH] Make /dev/kmsg symlinking optional, add lxc.kmsg option

2013-03-10 Thread Alexander Vladimirov
Had this changeset hanging around for some time, maybe this would be useful until some better solution come up. Signed-off-by: Alexander Vladimirov --- src/lxc/conf.c| 6 -- src/lxc/conf.h| 1 + src/lxc/confile.c | 12 3 files changed, 17 insertions(+), 2 deletions

[lxc-devel] [PATCH] Update lxc-archlinux template.

2013-02-07 Thread Alexander Vladimirov
Add mknod to lxc.cap.drop since udev is conditioned on CAP_MKNOD capability. Update base package list. Signed-off-by: Alexander Vladimirov --- templates/lxc-archlinux.in | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/lxc-archlinux.in b/templates/lxc

Re: [lxc-devel] [PATCH] Final: Remove MAKEDEV call, add autodev hooks, add environment variables for hook scripts.

2013-01-11 Thread Alexander Vladimirov
2013/1/12 Michael H. Warfield : > Ok... > > My patch to deal with the MAKDEV and hook script stuff after discussion > and valuable input from Serge. > > To reiterate - Does several things (that are closely intertwined so > separate patches are not justified)... > > 1) Removes run_makedev() and the

[lxc-devel] [PATCH] Add 'config' option to lxc-archlinux template and fix getopt string

2013-01-11 Thread Alexander Vladimirov
This option allows user to control installation repository and options using alternative pacman configuration file. Also remove unnecessary sed invocation during container configuration. --- templates/lxc-archlinux.in | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/t

Re: [lxc-devel] [PATCH] Support MS_SHARED / - issues calling MAKEDEV

2013-01-09 Thread Alexander Vladimirov
2013/1/9 Michael H. Warfield : > On Tue, 2013-01-08 at 15:40 -0500, Michael H. Warfield wrote: >> On Wed, 2013-01-09 at 04:31 +0800, Alexander Vladimirov wrote: >> > Well, properly placed hook could do all the things MAKEDEV supposed to do. >> >> And would give us

Re: [lxc-devel] [PATCH] Support MS_SHARED / - issues calling MAKEDEV

2013-01-08 Thread Alexander Vladimirov
Well, properly placed hook could do all the things MAKEDEV supposed to do. 2013/1/9 Serge Hallyn : > Quoting Michael H. Warfield (m...@wittsend.com): >> More on the MAKEDEV debacle... > ... >> This whole thing with MAKEDEV is looking more and more like a morass >> with no way to cleanly resolve it

[lxc-devel] [PATCH] Set umask before populating /dev and restore it after.

2013-01-07 Thread Alexander Vladimirov
According to docs, mknod clears each permission bit whose corresponding bit in the process umask is set, so we should fix it before creating device nodes. --- src/lxc/conf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 85d72c9..c0a270f 100644 --- a/s

Re: [lxc-devel] [PATCH] Support MS_SHARED /

2013-01-07 Thread Alexander Vladimirov
2013/1/8 Serge Hallyn : > Quoting Alexander Vladimirov (alexander.idkfa.vladimi...@gmail.com): >> Just like on the host: >> [idkfa@s10 ~]$ ls -la /dev/{null,tty,urandom,zero,full} >> crw-rw-rw- 1 root root 1, 7 янв 6 13:30 /dev/full >> crw-rw-rw- 1 root root 1, 3 янв

Re: [lxc-devel] [PATCH] Support MS_SHARED /

2013-01-07 Thread Alexander Vladimirov
Just like on the host: [idkfa@s10 ~]$ ls -la /dev/{null,tty,urandom,zero,full} crw-rw-rw- 1 root root 1, 7 янв 6 13:30 /dev/full crw-rw-rw- 1 root root 1, 3 янв 6 13:30 /dev/null crw-rw-rw- 1 root tty 5, 0 янв 8 00:03 /dev/tty crw-rw-rw- 1 root root 1, 9 янв 6 13:30 /dev/urandom crw-rw-rw- 1 r

Re: [lxc-devel] [PATCH] Support MS_SHARED /

2013-01-07 Thread Alexander Vladimirov
Sure, I'll do that 2013/1/7 Serge Hallyn : > Quoting Alexander Vladimirov (alexander.idkfa.vladimi...@gmail.com): >> I can confirm it works for Arch Linux with systemd 196 >> >> However I see exactly one message saying: >> sh: /sbin/MAKEDEV: No such file or dir

Re: [lxc-devel] [PATCH] Remove /dev/kmsg symlinking.

2013-01-07 Thread Alexander Vladimirov
has config option to forward messages to console other way around and other logging systems should be able to do that too. 2013/1/7 Serge Hallyn : > Quoting Alexander Vladimirov (alexander.idkfa.vladimi...@gmail.com): >> Symlink cannot resemble /dev/kmsg semantics, so symlinking it is wrong

[lxc-devel] [PATCH] Remove /dev/kmsg symlinking.

2013-01-06 Thread Alexander Vladimirov
Symlink cannot resemble /dev/kmsg semantics, so symlinking it is wrong. Guests probably should not use /dev/kmsg at all. Fixes journald crashes and journal corruption in systemd guests. --- src/lxc/conf.c | 30 -- 1 file changed, 30 deletions(-) diff --git a/src/lxc/co

Re: [lxc-devel] [PATCH] Support MS_SHARED /

2013-01-05 Thread Alexander Vladimirov
crwxr-xr-x 1 root root 1, 9 Jan 6 05:56 /dev/urandom crwxr-xr-x 1 root root 1, 5 Jan 6 05:56 /dev/zero not really sure what could cause this 2013/1/6 Michael H. Warfield : > On Sun, 2013-01-06 at 06:39 +0800, Alexander Vladimirov wrote: >> It is a separate package in Arch Linux and I

Re: [lxc-devel] [PATCH] Support MS_SHARED /

2013-01-05 Thread Alexander Vladimirov
I can confirm it works for Arch Linux with systemd 196 However I see exactly one message saying: sh: /sbin/MAKEDEV: No such file or directory 2013/1/6 Michael H. Warfield : > Hey Serge! > > Took longer for me to test this out on Fedora 18 Beta than I had > expected. I got tangled up trying to

[lxc-devel] [PATCH] Update lxc-archlinux template to work with systemd, use arch-install-scripts for installation

2012-12-13 Thread Alexander Vladimirov
--- templates/lxc-archlinux.in | 359 +++-- 1 file changed, 84 insertions(+), 275 deletions(-) diff --git a/templates/lxc-archlinux.in b/templates/lxc-archlinux.in index cf274d4..53e8e22 100644 --- a/templates/lxc-archlinux.in +++ b/templates/lxc-archlinux.

Re: [lxc-devel] API wishlist

2012-12-11 Thread Alexander Vladimirov
2012/12/11 Jäkel, Guido > Hi all, > > as i'm using a farm of LXC hosts I want to add a network wire feature to > the "API wishlist". In fact, this might be some frontend daemon, which > offers remote network access to local LXC in conjunction with a proxy > client counterpart, which will locall

[lxc-devel] [PATCH 2/2] Update lxc-archlinux template to properly work with systemd and utilize arch-install-scripts for installation

2012-12-09 Thread Alexander Vladimirov
--- templates/lxc-archlinux.in | 285 - 1 file changed, 51 insertions(+), 234 deletions(-) diff --git a/templates/lxc-archlinux.in b/templates/lxc-archlinux.in index 18ec064..c68e502 100644 --- a/templates/lxc-archlinux.in +++ b/templates/lxc-archlinux.

[lxc-devel] [PATCH 1/2] Add mount hook script to provide systemd containers with minimal /dev

2012-12-09 Thread Alexander Vladimirov
--- Makefile.am | 4 ++-- configure.ac | 4 hooks/Makefile.am | 4 hooks/mount.in| 11 +++ 4 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 hooks/Makefile.am create mode 100644 hooks/mount.in diff --git a/Makefile.am b/Makefile.am index 05

[lxc-devel] [PATCH] add lxc-archlinux template

2011-11-02 Thread Alexander Vladimirov
Hi, here's the patch which adds Arch linux container template -- Alexander Vladimirov >From 5a9b41caaeae744c0667c50f7691b9237d5a6f8d Mon Sep 17 00:00:00 2001 From: Alexander Vladimirov Date: Sun, 30 Oct 2011 00:05:46 +0800 Subject: [PATCH] add lxc-archlinux template --- .g