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 rights. Yes,

Re: [Lxc-users] Ubuntu template questions

2012-03-14 Thread Fajar A. Nugraha
On Wed, Mar 14, 2012 at 1:49 PM, Daniel Baumann daniel.baum...@progress-technologies.net 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

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 daniel.baum...@progress-technologies.net wrote: On 03/14/2012 02:37 AM, Serge Hallyn

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 l...@fajar.net wrote: On Wed, Mar 14, 2012 at 1:49 PM, Daniel Baumann daniel.baum...@progress-technologies.net 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.

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? SysVInit

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, because a

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 g.jae...@dnb.de 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

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, Guidog.jae...@dnb.de 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 Thu, Mar 15, 2012 at 10:02 AM, Serge Hallyn serge.hal...@canonical.com wrote: On 03/14/2012 03:23 AM, Fajar A. Nugraha wrote: On Wed, Mar 14, 2012 at 3:17 PM, Jäkel, Guidog.jae...@dnb.de  wrote: Dear Fajar, i just googled  http://www.makelinux.net/man/7/P/power-status-changed  . There's

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). Also

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 to be installed

Re: [Lxc-users] Ubuntu template questions

2012-03-13 Thread Fajar A. Nugraha
On Wed, Mar 14, 2012 at 2:04 AM, Serge Hallyn serge.hal...@canonical.com 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-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 installed (remove

Re: [Lxc-users] Ubuntu template questions

2012-03-10 Thread Fajar A. Nugraha
On Sun, Mar 11, 2012 at 3:08 AM, Papp Tamas tom...@martos.bme.hu 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

[Lxc-users] Ubuntu template questions

2012-03-08 Thread Papp Tamas
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 'update-rc.d -f ondemand remove' would be fine in the

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