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): > One more, I think very important question. > >>

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 removing CAP_SYS_TIME from the container's > >rig

Re: [Lxc-users] Ubuntu template questions

2012-03-28 Thread Papp Tamas
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 removing CAP_SYS_TIME from the container's > rights. Yes, that's true. > You mean to run after the cont

Re: [Lxc-users] Ubuntu template questions

2012-03-28 Thread Papp Tamas
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): One more, I think very important question. Still there is no nice stop method in init config

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, > >>> > >>> i just googled  http://www.makelinux.net/man/7/P/power-s

Re: [Lxc-users] Ubuntu template questions

2012-03-14 Thread Fajar A. Nugraha
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, >>> >>> i just googled  http://www.makelinux.net/man/7/P/power-status-changed  . >>> There's written: >>> >>>         Th

Re: [Lxc-users] Ubuntu template questions

2012-03-14 Thread Serge Hallyn
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, >> >> i just googled http://www.makelinux.net/man/7/P/power-status-changed . >> There's written: >> >> This event is not handled in the default Upstart configuration. >>

Re: [Lxc-users] Ubuntu template questions

2012-03-14 Thread Fajar A. Nugraha
On Wed, Mar 14, 2012 at 3:17 PM, Jäkel, Guido wrote: > Dear Fajar, > > i just googled  http://www.makelinux.net/man/7/P/power-status-changed  . > There's written: > >        This event is not handled in the default Upstart configuration. > > > For control-alt-delete, the corresponding sentence st

Re: [Lxc-users] Ubuntu template questions

2012-03-14 Thread Jäkel , Guido
Dear Fajar, i just googled http://www.makelinux.net/man/7/P/power-status-changed . There's written: This event is not handled in the default Upstart configuration. For control-alt-delete, the corresponding sentence states: In the default Upstart configuration handling of

Re: [Lxc-users] Ubuntu template questions

2012-03-14 Thread Jäkel , Guido
>After some experiments, upstart ignores SIGPWR, but still listens to >SIGINT, and killing the process from the host works. So modifying the >containter's control-alt-delete.conf to run "shutdown -h" instead of >"shutdown -r" can let the host tell the guest to shutdown cleanly. Dear Fajar, becaus

Re: [Lxc-users] Ubuntu template questions

2012-03-14 Thread Jäkel , Guido
>Can the host send a signal to the init's container? If yes, sysvinit >responds to SIGINT. Does upstart behave the same (e.g. process >control-alt-delete.conf when the signal is received)? It's set to >reboot by default, but perhaps there's some other signal than we can >use for shutdown? SysVIni

Re: [Lxc-users] Ubuntu template questions

2012-03-14 Thread Fajar A. Nugraha
On Wed, Mar 14, 2012 at 1:58 PM, Fajar A. Nugraha wrote: > On Wed, Mar 14, 2012 at 1:49 PM, Daniel Baumann > wrote: >> On 03/14/2012 02:37 AM, Serge Hallyn wrote: >>> That unfortunately won't work with upstart in the host and guest. >> >> too bad then. >> >> since i have absolutely no clue about

Re: [Lxc-users] Ubuntu template questions

2012-03-14 Thread Olivier Mauras
>From what I know - as upstart is also on rh6 - you need to issue a >reboot/shutdown directly from inside the guest. Olivier -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. Daniel Baumann wrote: On 03/14/2012 02:37 AM, Serge Hallyn wrote: > Is that the optional use of l

Re: [Lxc-users] Ubuntu template questions

2012-03-14 Thread Fajar A. Nugraha
On Wed, Mar 14, 2012 at 1:49 PM, Daniel Baumann wrote: > On 03/14/2012 02:37 AM, Serge Hallyn wrote: >> That unfortunately won't work with upstart in the host and guest. > > too bad then. > > since i have absolutely no clue about upstart at all.. i just hope there > can be found/made an equivalent

Re: [Lxc-users] Ubuntu template questions

2012-03-13 Thread Daniel Baumann
On 03/14/2012 02:37 AM, Serge Hallyn wrote: > Is that the optional use of lxc-halt, which does chroot $rootfs telinit 0? yes. > That unfortunately won't work with upstart in the host and guest. too bad then. since i have absolutely no clue about upstart at all.. i just hope there can be found/m

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 ago already. Is that the optional

Re: [Lxc-users] Ubuntu template questions

2012-03-13 Thread Daniel Baumann
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 ago already. -- Address:Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern Email: daniel.baum...

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: > >> > >> > >>      for f in /etc/lxc

Re: [Lxc-users] Ubuntu template questions

2012-03-13 Thread Fajar A. Nugraha
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: >> >> >>      for f in /etc/lxc/auto/*; do >>          c="$(basename $f .conf)" >>          

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 Papp Tamas (tom...@martos.bme.hu): > 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: Thanks, Papp. > 1. I suggest ntpdate not to be installed (remove after debootstrap).

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

Re: [Lxc-users] Ubuntu template questions

2012-03-10 Thread Papp Tamas
On 03/11/2012 12:06 AM, Fajar A. Nugraha wrote: > On Sun, Mar 11, 2012 at 3:08 AM, Papp Tamas wrote: >> Are these questions or requests somehow not good? >> I'm really interested in them:) > I'm guessing that while your suggestions are vallid, most of which are > related to guest creation and the

Re: [Lxc-users] Ubuntu template questions

2012-03-10 Thread Fajar A. Nugraha
On Sun, Mar 11, 2012 at 3:08 AM, Papp Tamas wrote: > Are these questions or requests somehow not good? > I'm really interested in them:) I'm guessing that while your suggestions are vallid, most of which are related to guest creation and the template scripts. Since the existing ones work, I imagi

Re: [Lxc-users] Ubuntu template questions

2012-03-10 Thread Papp Tamas
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 >> suggestion: >> >> 1. I suggest ntpdate not to be inst

Re: [Lxc-users] Ubuntu template questions

2012-03-08 Thread Papp Tamas
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 to be installed (remove after debootstrap). > Also I think 'u