Re: [Lxc-users] help regarding lxc

2011-08-31 Thread Serge Hallyn
Quoting nishant mungse (nishantmun...@gmail.com): > hi all > > when i write create commnd it shows this output:: > lxc-create -n ubuntu -t lucid -f /home/nishant/ubuntu.conf > > debootstrap is /usr/sbin/debootstrap > Checking cache download in /var/cache/lxc/lucid/rootfs- > i386 ... > Downloadi

Re: [Lxc-users] lxc-start fails when / is a shared mount

2011-09-19 Thread Serge Hallyn
Quoting Marios Titas (redneb8...@gmail.com): > Hi list, > > I just ran into this problem: If you do > # mount --make-shared / > to mark / as a shared mount then lxc-start fails when you have > specified a lxc.rootfs in the configuration file. The error that > lxc-start gives is the following:

Re: [Lxc-users] how to mount inside of running container

2011-09-22 Thread Serge Hallyn
Quoting Arie Skliarouk (sklia...@gmail.com): > Hi, > > Thank you for the instructions, but looks I did something wrong. Sorry, no, my instructions weren't quite right. I'm going to spend a bit of time right now whipping up some tested directions, and will get back to you. -serge --

Re: [Lxc-users] how to mount inside of running container

2011-09-22 Thread Serge Hallyn
Quoting Serge Hallyn (serge.hal...@canonical.com): > Quoting Arie Skliarouk (sklia...@gmail.com): > > Hi, > > > > Thank you for the instructions, but looks I did something wrong. > > Sorry, no, my instructions weren't quite right. I'm going to spend a bit

Re: [Lxc-users] how to mount inside of running container

2011-09-22 Thread Serge Hallyn
Quoting Arie Skliarouk (sklia...@gmail.com): > I managed to mount the partition! For that the procedure looks as follows: Excellent. >1. On the master: > > >mkdir /share/containerX >mkdir /var/lib/lxc/containerX/rootfs/share >mount -t tmpfs share /share/containerX >mount --m

Re: [Lxc-users] New LXC Creation Script: lxc-ubuntu-x

2011-10-06 Thread Serge Hallyn
Quoting Brian K. White (br...@aljex.com): > Ideally, for the stated purpose, we need something not named ubuntu. I almost didn't create the page for that reason, but then decided the content can always get moved if/when someone gets a better domain name. I don't think we should hold off on collect

Re: [Lxc-users] Launching init in a container as non-root

2011-10-20 Thread Serge Hallyn
Quoting Daniel Smith (viscous.liq...@gmail.com): > On 10/18/2011 12:51 PM, Serge E. Hallyn wrote: > > Quoting Papp Tamas (tom...@martos.bme.hu): > >> On 10/18/2011 04:47 PM, Serge E. Hallyn wrote: > >>> http://wiki.ubuntu.com/UserNamespace > >>> > >>> I've got a few patches to send yet for tighteni

Re: [Lxc-users] Dependencies Use Cases

2011-11-04 Thread Serge Hallyn
Quoting Daniel Baumann (daniel.baum...@progress-technologies.net): > On 11/04/2011 01:16 PM, Huang Liang wrote: > > Check out toft: https://github.com/exceedhl/toft. It provides rpm and > > deb packages which already handles the dependencies on centos and > > ubuntu. > > why would one want this in

Re: [Lxc-users] Dependencies Use Cases

2011-11-04 Thread Serge Hallyn
Quoting Alex Eagar (alexea...@gmail.com): > Can LXC use cgroups without libcgroup? For that matter, just to be > clear, can LXC use cgroups without cgroup-bin? LXC doesn't need anything from cgroup-bin, and, if it did, cgroup-bin could not deliver. (see below) > In what use case would > using LX

[Lxc-users] [PATCH 1/1] ubuntu template: use -updates and -security (v2)

2011-11-14 Thread Serge Hallyn
from chroot. Signed-off-by: Serge Hallyn --- templates/lxc-ubuntu.in | 31 +-- 1 files changed, 29 insertions(+), 2 deletions(-) diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in index 2be8680..2b2488d 100644 --- a/templates/lxc-ubuntu.in +++ b/template

[Lxc-users] [PATCH 1/1] ubuntu template: use -updates and -security (v3)

2011-11-15 Thread Serge Hallyn
from chroot. Nov 15: use security.ubuntu.com, not mirror. (stgraber) Signed-off-by: Serge Hallyn --- templates/lxc-ubuntu.in | 31 +-- 1 files changed, 29 insertions(+), 2 deletions(-) diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in index 2b

Re: [Lxc-users] Downgrade disk IO PRIORITY automatically

2011-12-06 Thread Serge Hallyn
Quoting Arie Skliarouk (sklia...@gmail.com): > Hi, > > I understand that this is not the quite appropriate mailing list to ask the > question, but the question is related to the LXC tech we use on the server, > so here it goes: > > Most of the time the LXC containers on our servers work properly,

[Lxc-users] [PATCH] Cgroup cleanups: play more nicely with others, and support nesting

2011-12-09 Thread Serge Hallyn
e old cgroup up. Whereas without this patch, container o1's cgroup would be /sys/fs/cgroup//o1, it now becomes /sys/fs/cgroup///lxc/o1 so if init is in cgroup '/' then o1's freezer cgroup would be: /sys/fs/

Re: [Lxc-users] [PATCH] Cgroup cleanups: play more nicely with others, and support nesting

2011-12-09 Thread Serge Hallyn
Quoting Derek Simkowiak (de...@simkowiak.net): > Serge, > Could you please elaborate on this comment? > > (Of course, the containers must be on a different subnet) > > > Do you mean a TCP/IP subnet? If so, why does this limitation exist? No I just mean that you have to make sure

Re: [Lxc-users] lxc-destroy does not destroy cgroup

2011-12-12 Thread Serge Hallyn
Quoting Gordon Henderson (gor...@drogon.net): > On Thu, 8 Dec 2011, Arie Skliarouk wrote: > > > When I tried to restart the vserver, it did not came up. Long story short, > > I found that lxc-destroy did not destroy the cgroup of the same name as the > > server. The cgroup remains visible in the /

Re: [Lxc-users] lxc and guest /proc/kcore access restriction

2011-12-13 Thread Serge Hallyn
Quoting Fiedler Roman (roman.fied...@ait.ac.at): > Hello List, > > I have problems finding information about lxc with system virtualization and > access restriction to /proc/kcore. In my setup, root in guest can read > /proc/kcore, data from host shows up in container kcore, so kcore is not > s

Re: [Lxc-users] lxc and guest /proc/kcore access restriction

2011-12-14 Thread Serge Hallyn
Quoting Fiedler Roman (roman.fied...@ait.ac.at): > Hi Serge, > > > -Ursprüngliche Nachricht----- > > Von: Serge Hallyn [mailto:serge.hal...@canonical.com] > > An: Fiedler Roman > > Cc: lxc-users@lists.sourceforge.net > > Betreff: Re: [Lxc-users] lxc and

Re: [Lxc-users] Broken pipe when ssh from host to container

2011-12-15 Thread Serge Hallyn
Quoting Verdi March (cincaipat...@gmx.net): > As additional info, the network configuration of the container is as > follows: > > lxc.network.type = veth > > lxc.network.flags = up

Re: [Lxc-users] Broken pipe when ssh from host to container

2011-12-18 Thread Serge Hallyn
Quoting Verdi March (cincaipat...@gmx.net): ... > ifconfig br0 198.55.32.143 promisc up ... That all looks fine... The fact that it works fine when logging in from another machine but fails from the host itself must be relevant, but how... So your LAN is 198.55.32.X, and your containers are on

Re: [Lxc-users] lxc-destroy does not destroy cgroup

2011-12-20 Thread Serge Hallyn
Quoting Arie Skliarouk (sklia...@gmail.com): > I don't have the /cgroup directory mounted. Somehow, the directory is > mounted automatically onto the /sys/fs/cgroup > > *root@mf:~# df | grep cgroup > cgroup12368328 0 12368328 0% /sys/fs/cgroup > root@mf:~# ls /sys/fs/cgr

Re: [Lxc-users] Can not write log, openpty() failed

2012-01-24 Thread Serge Hallyn
Quoting christian mueller (christian.muell...@gmx.de): > Hi, > > i wanted to try out LXC and tried to create an LXC instance on ubuntu 11.10. > > To do so I followed this guide: > > http://wiki.debian.org/LXC > > and finally executed: > > lxc-create -n myfirstcontainer -f lxc.conf -t ubuntu --

Re: [Lxc-users] Can not write log, openpty() failed

2012-01-25 Thread Serge Hallyn
Quoting christian mueller (christian.muell...@gmx.de): > Hi Serge, > > thanks for your reply and your work. > > > > > I assume you did '--path=/home/chm/lxc/myfirstcontainer/', not > > '- path=/home/chm/lxc/myfirstcontainer/'? > > > > yes, you are right. > > > > Would you mind opening a bug o

Re: [Lxc-users] Can not write log, openpty() failed

2012-01-26 Thread Serge Hallyn
Quoting christian mueller (christian.muell...@gmx.de): > Hi Serge, > > > For now, I recommend you do it the old fashioned way: either symlink or > > bind mount /home/chm/lxc to /var/lib/lxc: > > > > rm -rf /var/lib/lxc > > mkdir -p /home/chm/lxc > > ln -s /home/chm/lxc /var/lib/lxc >

Re: [Lxc-users] host fstab, boot error at cgconfig ...

2012-01-27 Thread Serge Hallyn
Quoting István Király - LaKing (d...@yahoo.com): > Hi folks. > > I accidentally zero-ed out my original fstab generated by anaconda on my > CentOs 6 box. > After recreation it looks like this: > UUID=5c4ef826-7786-43f7-8ebd-775f230e2e25 /   ext4    > defaults    1 1 > UUI

Re: [Lxc-users] Doesn't auditd work on an LXC instance?

2012-01-30 Thread Serge Hallyn
> On Thu, Jan 19, 2012 at 11:00 AM, David Kang wrote: > > > > > Hi, > > > > I'm trying to run auditd on an LXC instance. > > First of all, I cannot make kauditd start. > > And "$ service auditd start" always fails. > > Does it mean auditd does not work on an LXC instance? > > I'll appreciate yo

Re: [Lxc-users] LXC with multiple cgroup mount points

2012-02-03 Thread Serge Hallyn
Quoting Ramez Hanna (rha...@informatiq.org): > On Sat, Jan 28, 2012 at 2:56 PM, Jimmy THRASIBULE > wrote: > > Hi, > > > > I'm running Fedora 16 and I'm trying to run an LXC container. I think > > that my problem comes from how Fedora mount the different cgroup > > subsystems. Each subsystem is mou

Re: [Lxc-users] minimum fstab?

2012-02-06 Thread Serge Hallyn
Quoting Gary Ballantyne (gary.ballant...@haulashore.com): > Hello List > > Various templates have differing fstab definitions (at least for > ubuntu). For example, [1] includes only /proc and /sys, [2] further adds > /dev/pts, You don't need devpts in there. Lxc sets that up itself regardless

Re: [Lxc-users] LXC from lxc.sf.net vs. Libvirt-lxc

2012-02-08 Thread Serge Hallyn
Quoting Shweta Shinde (shwetasshind...@gmail.com): > I tried out LXC sf.net for creating containers. It works well. > > According to following link, RHEL 6.2 will support LXC libvirt API. > http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html-single/6.2_Technical_Notes/index.html > It

Re: [Lxc-users] Container start unmounts shared bind mounts

2012-02-09 Thread Serge Hallyn
Quoting Ivan Vilata i Balaguer (i...@selidor.net): > Hi all. I'm running Debian's LXC 0.7.5 under Linux 3.2.0. I've set up > a shared mountpoint to dynamically export some host directories into one > container, like this:: > > # mkdir -p /lxc-shared > # mount --bind /lxc-shared /lxc-shared >

[Lxc-users] notes on the /var/lib/lxc-becomes-readonly problem

2012-02-09 Thread Serge Hallyn
During my testing I ran back into the issue of lxc-stop marking /var/lib/lxc read-only. So here is the deal. When a container shuts down, it tries to remount its / readonly. That doesn't work if the mount is busy (i.e. a file is held open for write). If /var/lib/lxc is on the same fs as '/', or

Re: [Lxc-users] Container start unmounts shared bind mounts

2012-02-10 Thread Serge Hallyn
Quoting Ivan Vilata i Balaguer (i...@selidor.net): > Serge Hallyn (2012-02-09 19:30:29 +0100) wrote: > > > Quoting Ivan Vilata i Balaguer (i...@selidor.net): > >> Hi all. I'm running Debian's LXC 0.7.5 under Linux 3.2.0. I've set up > >> a shar

Re: [Lxc-users] Container start unmounts shared bind mounts

2012-02-10 Thread Serge Hallyn
Quoting Ivan Vilata i Balaguer (i...@selidor.net): > Serge Hallyn (2012-02-10 16:05:19 +0100) wrote: > > > Quoting Ivan Vilata i Balaguer (i...@selidor.net): > >> Serge Hallyn (2012-02-09 19:30:29 +0100) wrote: > >> > >> > Quoting Ivan Vilata i Balague

Re: [Lxc-users] Container start unmounts shared bind mounts

2012-02-13 Thread Serge Hallyn
Quoting Ivan Vilata i Balaguer (i...@selidor.net): > Serge Hallyn (2012-02-11 00:08:10 +0100) wrote: > > > Quoting Ivan Vilata i Balaguer (i...@selidor.net): > >> Serge Hallyn (2012-02-10 16:05:19 +0100) wrote: > >> > >> > mv /usr/bin/lxc-start /usr/b

Re: [Lxc-users] fedora 16 under lxc

2012-02-14 Thread Serge Hallyn
Quoting Ramez Hanna (rha...@informatiq.org): > On Mon, Feb 13, 2012 at 10:34 PM, Ramez Hanna wrote: > > hei > > I have been able to get some form of f16 under lxc running but some quirks > > so steps (untill i make a patch or a new script) > > use the current lxc-fedora to create a container > > c

Re: [Lxc-users] lxc-console and indents

2012-02-17 Thread Serge Hallyn
Quoting Whit Blauvelt (w...@transpect.com): > Hi, > > Running 0.7.5 compiled and running on Debian Squeeze, with a Debian Squeeze > container, when I use lxc-console and view a configuration file for a daemon > which uses indents as part of its syntax, the file is displayed with each > line at the

Re: [Lxc-users] how to use system container

2012-02-20 Thread Serge Hallyn
Quoting allen (allen303al...@gmail.com): > HI ALL: > My aim is to run a Graphical application in a container, then an > user connect to the container with a GUI interface, so that he can see > and operate the application. > As I want to separate all resources, I think I'll need a system > c

Re: [Lxc-users] how to use system container

2012-02-21 Thread Serge Hallyn
Quoting allen (allen303al...@gmail.com): > 2012/2/20 Serge Hallyn : > > Quoting allen (allen303al...@gmail.com): > >> HI ALL: > >>     My aim is to run a Graphical application in a container, then an > >> user connect to the container with a GUI interface, so

Re: [Lxc-users] Squeeze Template fix?

2012-02-21 Thread Serge Hallyn
Quoting Terry--gmail (terry.kemme...@gmail.com): > Debian Squeeze Host > > It appears the template in the sources lxc package is lenny and I > have solved what needs to be done to get networking working > correctly with this lenny version, BUT I NEED SQUEEZE in my vm's, > not lenny. > > I have be

Re: [Lxc-users] version 0.8.0 coming soon

2012-02-27 Thread Serge Hallyn
Quoting Daniel Lezcano (daniel.lezc...@free.fr): > Hi all, > > I will release a 0.8.0-rc1. I am looking for volunteer to test it :) Worked fine for me. Tested create and clone of ubuntu, ubuntu and ubuntu-cloud images, with dir and lvm backing stores. (And a run of lp:~serge-hallyn/

Re: [Lxc-users] version 0.8.0 coming soon

2012-02-28 Thread Serge Hallyn
Quoting Papp Tamas (tom...@martos.bme.hu): > On 02/28/2012 01:20 AM, Serge Hallyn wrote: > > Quoting Daniel Lezcano (daniel.lezc...@free.fr): > >> Hi all, > >> > >> I will release a 0.8.0-rc1. I am looking for volunteer to test it :) > > Worked fine

Re: [Lxc-users] version 0.8.0 coming soon

2012-02-28 Thread Serge Hallyn
Quoting Papp Tamas (tom...@martos.bme.hu): > On 02/28/2012 04:13 PM, Serge Hallyn wrote: > >Quoting Papp Tamas (tom...@martos.bme.hu): > >>On 02/28/2012 01:20 AM, Serge Hallyn wrote: > >>>Quoting Daniel Lezcano (daniel.lezc...@free.fr): > >>>>Hi all,

Re: [Lxc-users] f16 update

2012-03-02 Thread Serge Hallyn
Quoting Ramez Hanna (rha...@informatiq.org): > hi, > > here is is how o got f16 to work > * use the shipped fedora template to create the container > * chroot into the container rootfs > * touch /etc/fstab > * ln -s /dev/null /etc/systemd/system/udev.service > * unlink /etc/systemd/system/default.

Re: [Lxc-users] nilfs

2012-03-02 Thread Serge Hallyn
Quoting Ulli Horlacher (frams...@rus.uni-stuttgart.de): > On Fri 2012-03-02 (09:02), Daniel Baumann wrote: > > > i'm not claiming btrfs is there yet, however, if you're using btrfs, you > > should at least make sure to use something remotely up2date, say 3.2.x. > > SLES11 SP2 was released this we

Re: [Lxc-users] adding a default gateway inside a container as a non root user

2012-03-02 Thread Serge Hallyn
Quoting Daniel Lezcano (daniel.lezc...@free.fr): > On 03/02/2012 11:18 AM, Arun M wrote: > > > > > >>With the 0.8.0 version, you will be able to setup the gateway directly > >>from the configuration file. > > > >Cool. I wanted to try this so tested with the latest code from repository. > > > >Howev

Re: [Lxc-users] what is the best way to make dvb devices available in a container

2012-03-02 Thread Serge Hallyn
Well, you should be able to run udev in the container and give the container access to the /dev/dvb/adaptor0 maj:min. Daniel has done that for usb sticks anyway. Quoting Dieter Bloms (l...@bloms.de): > Hi, > > I'am experimenting with lxc and have successfully make the dvb devices from > /dev/dvb

Re: [Lxc-users] adding a default gateway inside a container as a non root user

2012-03-02 Thread Serge Hallyn
Quoting Bekir Dogan (beki...@gmail.com): > Hi Daniel, > > On Thu, Mar 1, 2012 at 23:20, Daniel Lezcano wrote: > > [...] > > With the 0.8.0 version, you will be able to setup the gateway directly > > from the configuration file. > > Can we see project plans or a todo list or something like these

Re: [Lxc-users] f16 update

2012-03-02 Thread Serge Hallyn
Quoting Ramez Hanna (rha...@informatiq.org): > On Fri, Mar 2, 2012 at 4:21 PM, Serge Hallyn > wrote: > > Quoting Ramez Hanna (rha...@informatiq.org): > >> hi, > >> > >> here is is how o got f16 to work > >> * use the shipped fedora templat

Re: [Lxc-users] adding a default gateway inside a container as a non root user

2012-03-03 Thread Serge Hallyn
Quoting Bekir Dogan (beki...@gmail.com): > Hi; > > On Fri, Mar 2, 2012 at 19:27, Serge Hallyn wrote: > [...] > > Right now in ubuntu precise, it's > > > >    lxc-create -t ubuntu -n p1 > >    lxc-start -n p1 > [...] > > If you want to deplo

Re: [Lxc-users] f16 update

2012-03-03 Thread Serge Hallyn
Quoting Ramez Hanna (rha...@informatiq.org): > On Fri, Mar 2, 2012 at 9:38 PM, Serge Hallyn > wrote: > > Quoting Ramez Hanna (rha...@informatiq.org): > >> On Fri, Mar 2, 2012 at 4:21 PM, Serge Hallyn > >> wrote: > >> > Quoting Ramez

Re: [Lxc-users] f16 update

2012-03-03 Thread Serge Hallyn
(note I said lvm rootfs just bc that's currently easily supported; any blockdev will do) -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also

[Lxc-users] [PATCH 1/1] cgroups: fix broken support for deprecated ns cgroup

2012-03-05 Thread Serge Hallyn
eboot support, if we're using the ns cgroup we now end up with a /cgroup//2 cgroup created, empty, by the clone(CLONE_NEWPID). I'm really not sure how much time we want to spend cleaning such things up since ns cgroup is deprecated in kernel. Signed-off-by: Serge Hallyn --- src/lxc/c

Re: [Lxc-users] * fix cached rootfs update * fix rootfs path * add handling of systemd (aka >f15)

2012-03-06 Thread Serge Hallyn
Quoting Ramez Hanna (rha...@informatiq.org): > On Mon, Mar 5, 2012 at 10:28 PM, wrote: > > From: InformatiQ > > > > > > Signed-off-by: InformatiQ > > --- > >  templates/lxc-fedora.in |   35 +++ > >  1 files changed, 27 insertions(+), 8 deletions(-) > > > > diff -

Re: [Lxc-users] * fix cached rootfs update * fix rootfs path * add handling of systemd (aka >f15)

2012-03-06 Thread Serge Hallyn
(rha...@informatiq.org): > i can do that but i didn't do it brcause it could be done differently for > different backingsrorage > I'll do it anyway and send patch later > > -- > Sent from my Nokia N9On 6.3.2012 16:59 Serge Hallyn wrote: > Quoting Ramez Hanna (rha...@informa

Re: [Lxc-users] Ubuntu 12.04 linux-container package and init modifications

2012-03-06 Thread Serge Hallyn
Quoting thadd...@thogan.com (thadd...@thogan.com): > I have been preparing to move a bunch of dev VMs running Ubuntu 10.04 on KVM > to 12.04 on LXC after the release next month. > > I am currently testing with the 12.04 beta build and have had good luck > getting everything up and running. Howev

Re: [Lxc-users] Ubuntu 12.04 linux-container package and init modifications

2012-03-06 Thread Serge Hallyn
Quoting Fajar A. Nugraha (l...@fajar.net): > # cat /etc/init/lxc-lo.conf > start on startup > env container > > pre-start script > if [ "x$container" != "xlxc" -a "x$container" != "xlibvirt" ]; > then > stop; > fi > initctl start network-interface INTERFACE=

Re: [Lxc-users] * fix cached rootfs update * fix rootfs path * add handling of systemd (aka >f15)

2012-03-06 Thread Serge Hallyn
Quoting Ramez Hanna (rha...@informatiq.org): > creating a loopback file for each container will not work from > lxc.conf as lxc won't mount it, it has to be bound to a loopdevice > first Adding support for a loopback file (or a qemu-nbd file perhaps) to lxc seems worthwhile. > i was hoping to mak

Re: [Lxc-users] Ubuntu template questions

2012-03-11 Thread Serge Hallyn
Quoting Papp Tamas (tom...@martos.bme.hu): > On 03/08/2012 04:30 PM, Papp Tamas wrote: > > On 03/08/2012 09:27 AM, Papp Tamas wrote: > >> hi All, > >> > >> I always created an own template with debootstrap and I used it. > >> > >> Now I tried lxc-create -t ubuntu and I still have some question and

[Lxc-users] [PATCH 1/1] do check for utmp checking at the right time

2012-03-12 Thread Serge Hallyn
buntu/+source/lxc/+bug/948623 Signed-off-by: Serge Hallyn --- src/lxc/start.c | 14 +- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index eb26be2..ec48a48 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -506,16 +506,12 @@ s

[Lxc-users] [PATCH] ubuntu templates cleanups

2012-03-12 Thread Serge Hallyn
1. fix inconsistent use of '--auth-key' (not --auth_key) which broke their usage 2. add --debug option to lxc-ubuntu (which does set -x to show what broke) (idea from Idea from lifeless and benji) 3. fix incorrect assumption about group with -b option. User's default group may not be the

Re: [Lxc-users] Ubuntu template questions

2012-03-13 Thread Serge Hallyn
s > not successful. Anyway, many times I just want to create a container > with no individual partition (volume). Now I copied it from /var/lib/lxc. Not sure what you mean. -B only really supports lvm right now. It should be made to support loopback qemu-nbd images. In the lxc server gui

Re: [Lxc-users] Ubuntu template questions

2012-03-13 Thread Serge Hallyn
Quoting Papp Tamas (tom...@martos.bme.hu): > On 03/08/2012 09:27 AM, Papp Tamas wrote: > > hi All, > > > > I always created an own template with debootstrap and I used it. > > > > Now I tried lxc-create -t ubuntu and I still have some question and > > suggestion: > > > > 1. I suggest ntpdate not t

Re: [Lxc-users] Ubuntu template questions

2012-03-13 Thread Serge Hallyn
Quoting Fajar A. Nugraha (l...@fajar.net): > On Wed, Mar 14, 2012 at 2:04 AM, Serge Hallyn > wrote: > > Quoting Papp Tamas (tom...@martos.bme.hu): > > >> One more, I think very important question. > >> Still there is no nice stop method in init configuration:

Re: [Lxc-users] Ubuntu template questions

2012-03-13 Thread Serge Hallyn
Quoting Daniel Baumann (daniel.baum...@progress-technologies.net): > On 03/13/2012 11:05 PM, Serge Hallyn wrote: > > Once lxc-attach is supported we should do that, yes. > > no need to; just look at the debian package.. we're doing that properly > since long time ag

[Lxc-users] [PATCH] Update manpages to reflect some updated options.

2012-03-13 Thread Serge Hallyn
(which reminds me a lxc-clone manpage still needs to be written) Signed-off-by: Serge Hallyn --- doc/lxc-create.sgml.in | 45 - doc/lxc-destroy.sgml.in | 25 - doc/lxc-start.sgml.in | 17 - doc

Re: [Lxc-users] Ubuntu template questions

2012-03-14 Thread Serge Hallyn
was able to shutdown > the guest cleanly with minimal change to the guest. > Thanks guys, this is great. I don't know if we can swing this this cxycle (it's possible) but an upstart package with your job added is at https://code.launchpad.net/~serge-hallyn/ubuntu/precise/upstart/

Re: [Lxc-users] Ubuntu template questions

2012-03-15 Thread Serge Hallyn
Quoting Fajar A. Nugraha (l...@fajar.net): > On Thu, Mar 15, 2012 at 10:02 AM, Serge Hallyn > wrote: > > On 03/14/2012 03:23 AM, Fajar A. Nugraha wrote: > >> On Wed, Mar 14, 2012 at 3:17 PM, Jäkel, Guido  wrote: > >>> Dear Fajar, > >>> > >>&g

Re: [Lxc-users] lxc-attach cgroup path

2012-03-15 Thread Serge Hallyn
Quoting Goran Cetusic (goran.cetu...@gmail.com): > Where does lxc-attach get its path for the tasks file? > I created a rootfs and configfile with the lxc-debian script in /lxc/imunes > and started the container with lxc-start -n imunes -f /lxc/imunes/config. > It works but I can't execute anything

[Lxc-users] container shutdown

2012-03-18 Thread Serge Hallyn
, after sending SIGPWR, to hard-kill the container. Attached is a lxc-shutdown script (as an alternative) so lxc-stop can continue to work as it has. Both are in the bzr tree at lp:~serge-hallyn/ubuntu/precise/lxc/lxc-shutdown, which builds and gives you both. What do we prefer? thanks, -serge

Re: [Lxc-users] container shutdown

2012-03-18 Thread Serge Hallyn
Quoting Daniel Lezcano (daniel.lezc...@free.fr): > On 03/19/2012 12:00 AM, Serge Hallyn wrote: > >Hi, > > > >Thanks to Jäkel's and Fajar's great ideas, we can now cleanly shut down > >a container by sending it SIGPWR. I'm attaching two ways to do that

Re: [Lxc-users] container shutdown

2012-03-19 Thread Serge Hallyn
Quoting Daniel Lezcano (daniel.lezc...@free.fr): > On 03/19/2012 03:50 AM, Serge Hallyn wrote: > >Quoting Daniel Lezcano (daniel.lezc...@free.fr): > >>On 03/19/2012 12:00 AM, Serge Hallyn wrote: > >>>Hi, > >>> > >>>Thanks to Jäkel's a

Re: [Lxc-users] container shutdown

2012-03-19 Thread Serge Hallyn
Quoting Fajar A. Nugraha (l...@fajar.net): > On Mon, Mar 19, 2012 at 4:34 PM, Daniel Lezcano > wrote: > > On 03/19/2012 02:45 AM, Fajar A. Nugraha wrote: > >> The problem with lxc is that AFAIK there's nothing standard on the > >> guest that can tell the host "I can do clean shutdown, don't kill

Re: [Lxc-users] container shutdown

2012-03-19 Thread Serge Hallyn
Quoting Daniel Lezcano (daniel.lezc...@free.fr): > Yes, lxc-shutdown could be in this case very trivial (may be adding > a couple of things like waiting for the container to stop before > exiting in order to have a synchronous command). Hah. Turns out waiting is not *quite* so trivial, bc lxc-wai

[Lxc-users] [PATCH] Add lxc-shutdown script

2012-03-19 Thread Serge Hallyn
after all because it's harder to finagle into an upstart post-stop script than a full bash script. If we want to add a comment to the help saying the timeout is not generally recommended, I'm fine with that. Signed-off-by: Serge Hallyn --- configure|3 co

[Lxc-users] lxc lsm support

2012-03-19 Thread Serge Hallyn
Hi, I have a patch (core patch appended fyi, see lp:~serge-hallyn/ubuntu/precise/lxc/lxc-aa for the full set of package changes) to make lxc-start switch to a apparmor profile specified in the container config (with lxc.aa_profile). Making this support selinux and smack as well should be pretty

Re: [Lxc-users] lxc lsm support

2012-03-19 Thread Serge Hallyn
Quoting erkan yanar (er...@linsenraum.de): > On Mon, Mar 19, 2012 at 04:02:29PM -0500, Serge Hallyn wrote: > > Hi, > > > > I have a patch (core patch appended fyi, see > > lp:~serge-hallyn/ubuntu/precise/lxc/lxc-aa for the full set of package > > changes) to ma

Re: [Lxc-users] Ubuntu 12.04 - apparmor problem (WAS: Ubuntu 12.04 linux-container package and init modifications)

2012-03-20 Thread Serge Hallyn
Quoting Fajar A. Nugraha (l...@fajar.net): > On Thu, Mar 8, 2012 at 1:16 AM, Stéphane Graber wrote: > > > I hope this helped explain what we're doing in 12.04. > > I'm planning on a generic "what's new in LXC for 12.04" blog post in > > the next few days, once we've turned apparmor back on and ha

Re: [Lxc-users] Migration of LXC between two different physical nodes?

2012-03-21 Thread Serge Hallyn
Quoting Huang Qiang (allen303al...@gmail.com): > 2012/3/12 张章 > > > > hi,all > > I am considering the migration issue of LXC and want to know the current > > support from LXC. Does anyone know useful information? > > Many thanks! > > > > > > Z. Zhang > > National Research Center for intelligent Co

[Lxc-users] [PATCH] fix lxc.mount.entry with blockdevs

2012-03-21 Thread Serge Hallyn
eeded given (2), but it does make for more readable and easier to copy configs. Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/960860 Signed-off-by: Serge Hallyn -- src/lxc/conf.c| 48 -- templates/lxc-debian.in |

Re: [Lxc-users] Squeeze Template fix?

2012-03-21 Thread Serge Hallyn
Quoting Terry--gmail (terry.kemme...@gmail.com): > Hello serge! Thanks for your response! > > When you say, "unstable" version, are you referring to something on the > lxc site that I need to compile or are you talking about adding a > debian repository? I think I meant debian unstable (sid) > Y

Re: [Lxc-users] lxc-execute fails to exec lxc-init

2012-03-27 Thread Serge Hallyn
Quoting Fajar A. Nugraha (l...@fajar.net): > On Tue, Mar 27, 2012 at 6:16 PM, Peter Gillard-Moss > wrote: > > Hello, > > > > I wondered if you could help. > > > > I have installed lxc-init from the Ubuntu package repos for both Natty and > > Oneiric and both fail on lxc-execute with the same error

Re: [Lxc-users] lxc-execute fails to exec lxc-init

2012-03-27 Thread Serge Hallyn
Quoting Peter Gillard-Moss (pgill...@thoughtworks.com): > On 27 March 2012 12:42, Fajar A. Nugraha wrote: > > > IMHO lxc-execute should come with a BIG warning "DON'T USE UNLESS YOU > > REALLY KNOW WHAT YOU'RE DOING!" :P > > > > I know this is digression but I wondered if you could expand on thi

Re: [Lxc-users] lxc-execute fails to exec lxc-init

2012-03-27 Thread Serge Hallyn
Quoting Peter Gillard-Moss (pgill...@thoughtworks.com): > On 27 March 2012 15:08, Serge Hallyn wrote: > > > Another option would be to copy an upstart or sysvinit script into > > /var/lib/lxc/$host/root/etc/init{,.d}/ which does your bootstrapping > > and removes itself w

Re: [Lxc-users] Ubuntu template questions

2012-03-28 Thread Serge Hallyn
Quoting Papp Tamas (tom...@martos.bme.hu): > On 03/13/2012 08:02 PM, Serge Hallyn wrote: > > I'm sorry for the late answer. > > >Hm, perhaps /etc/network/if-up.d/ntpdate should be updated to not run > >in a container. > > > >It also might be worth r

Re: [Lxc-users] Ubuntu template questions

2012-03-28 Thread Serge Hallyn
Quoting Papp Tamas (tom...@martos.bme.hu): > On 03/13/2012 11:05 PM, Serge Hallyn wrote: > >Quoting Fajar A. Nugraha (l...@fajar.net): > >>On Wed, Mar 14, 2012 at 2:04 AM, Serge Hallyn > >> wrote: > >>>Quoting Papp Tamas (tom...@martos.bme.hu): > >

Re: [Lxc-users] init keeps files opened

2012-03-29 Thread Serge Hallyn
Funky. Can you turn off apache and mysqld (switch the startup jobs to not run) and see if the container behaves better? Anything at all in host's syslog? What do ls -l /dev/ptmx /dev/pts show on both the host and in the container? Quoting Papp Tamas (tom...@martos.bme.hu): > Does somebody have

Re: [Lxc-users] Can't start containers

2012-03-30 Thread Serge Hallyn
Quoting Milan Zamazal (p...@zamazal.org): > I've got the same problem on current Debian wheezy. The containers > start fine on boot, but it's impossible to (re)start any container > later: > > # lxc-start -n test > lxc-start: Invalid argument - pivot_root syscall failed > lxc-start: failed

[Lxc-users] [patch] trivial: fix typo in confile.c

2012-03-30 Thread Serge Hallyn
Noticed by Stéphane Graber. Index: lxc-0.7.5/src/lxc/confile.c === --- lxc-0.7.5.orig/src/lxc/confile.c2012-03-30 14:18:45.0 -0500 +++ lxc-0.7.5/src/lxc/confile.c 2012-03-30 14:30:14.436876228 -0500 @@ -884,7 +884,7 @@

Re: [Lxc-users] Can't start containers

2012-04-02 Thread Serge Hallyn
Quoting Milan Zamazal (p...@zamazal.org): > >>>>> "SH" == Serge Hallyn writes: > > SH> Does /proc/self/mounts on the host change after you successfully > SH> start the container the first time? > > I examined /proc/self/mounts at the beg

Re: [Lxc-users] precise update in container

2012-04-02 Thread Serge Hallyn
Quoting Papp Tamas (tom...@martos.bme.hu): > hi, > > I guess something is still not good. Yes, a bug was re-opened on that last week. See bugs http://pad.lv/969299 and http://pad.lv/925024. -serge -- This SF email is s

Re: [Lxc-users] lxc-start problem in centos 6.2

2012-04-04 Thread Serge Hallyn
you need to grab fc3c7f7f6e9d8adfc4be943160e4ef902436a25d from upstream. I think that's the next commit after 0.8.0-rc1. -serge Quoting Peter S (htims.r...@gmail.com): > Hi guys, > > My os is centos 6.2 and lxc version is 0.8.0-rc1. I downloaded the template > from openvz, crated a container fro

Re: [Lxc-users] lxc-fedora in 0.8.0-rc1 - bugfix

2012-04-05 Thread Serge Hallyn
Quoting István Király - LaKing (d...@yahoo.com): > Hello. > > The lxc-fedora template in 0.8.0-rc1 has still a bug, the script aborts, due > to a missing variable for yum: relreasever. > > To fix, edit the file at line 112 > > > YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck --releasever

Re: [Lxc-users] lxc-start problem in centos 6.2

2012-04-05 Thread Serge Hallyn
Quoting Peter S (htims.r...@gmail.com): > Hi Serge, > > Thanks for the replay. I tried fc3c7f7f6e9d8adfc4be943160e4ef902436a25d, > but still got an error: > > [jenkins@localhost lxc]$ sudo /usr/local/bin/lxc-start -n centos > lxc-start: File exists - failed to rename cgroup > /cgroup//31162->/cgr

Re: [Lxc-users] lxc-fedora in 0.8.0-rc1 - bugfix

2012-04-05 Thread Serge Hallyn
'. -serge Quoting rha...@informatiq.org (rha...@informatiq.org): > the releasever is passed as an opt to the script -R > > -- > Sent from my Nokia N9On 5.4.2012 18:25 Serge Hallyn wrote: > Quoting István Király - LaKing (d...@yahoo.com): > > Hello. > > > > The lxc-f

Re: [Lxc-users] [lxc-execute] failed to spawn error

2012-04-10 Thread Serge Hallyn
Quoting 이재광 (nothing...@gmail.com): > Hello > > I'm porting lxc on my mips32 board. > > I ported lxc and created container successfully(In my opinion...). > > but when I run lxc-execute command, I've got error "failed to spawn > [container name]" lxc-execute tends to be harder to use anywhere,

Re: [Lxc-users] PID namespace behavior

2012-04-11 Thread Serge Hallyn
Quoting Arun M (arunmahadevai...@gmail.com): > Hello, > > I am observing that if two containers are spawned via lxc-execute and if > these happen to be in the same process group, a process inside one > container can terminate the second container by sending a SIGTERM to the > process group. > >

Re: [Lxc-users] PID namespace behavior

2012-04-11 Thread Serge Hallyn
Quoting Arun M (arunmahadevai...@gmail.com): > I guess the unshare and shell does not belong to the same process group. I > am able to reproduce with the following code. > > cat > pgrp.c < #include > #include > #include > #include > #include > #include > #include > > > void handle_usr1()

Re: [Lxc-users] When SElinux is enabled, ssh connection is closed right after authentication.

2012-04-17 Thread Serge Hallyn
Quoting David Kang (dk...@isi.edu): > > Hi, > > I'm trying to run LXC container with SELinux enabled. > When SELinux is permissive, there is no problem. > I can ssh into the LXC container. > However, when SELinux is enabled, ssh connection to the LXC instance cannot > be made. > Right after au

Re: [Lxc-users] problem starting a container

2012-04-17 Thread Serge Hallyn
Quoting Daniel Stefaniuk (daniel.stefan...@gmail.com): > Hi all > > A command to start a container gives me following output: > > init: ureadahead main process (6) terminated with status 5 You can ignore that. > Then the container seems to bu up and running. However, if I try to login > to

Re: [Lxc-users] dropped packets on bridged interface

2012-04-20 Thread Serge Hallyn
Quoting Papp Tamas (tom...@martos.bme.hu): > On 04/20/2012 10:10 AM, Fajar A. Nugraha wrote: > > On Fri, Apr 20, 2012 at 3:05 PM, Papp Tamas wrote: > >> hi, > >> > >> There is this bug: > >> > >> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/986043 > >> > >> Has anybody meet it ever? Does a

Re: [Lxc-users] problem starting a container

2012-04-20 Thread Serge Hallyn
Quoting Daniel Stefaniuk (daniel.stefan...@gmail.com): > Thanks for your responses. > > I created "ubuntu" containers using the script "lxc-ubuntu" provided with > the source code version 0.8.0-rc1. I think the problem was related to some > upstart jobs. "lxc-debian" script works just fine, > crea

<    1   2   3   4   5   6   7   >