Re: [Lxc-users] Container shutdown remounts the lxc partition read-only... again

2013-06-27 Thread Serge Hallyn
Quoting Leonid Isaev (lis...@umail.iu.edu): > On Fri, 21 Jun 2013 09:27:44 -0500 > Serge Hallyn wrote: > > > Quoting Leonid Isaev (lis...@umail.iu.edu): > > > Hi, > > > > > > I have recently installed vanilla lxc-0.9.0 under archlinux and > > > encountered the old "fs is remounted ro" issue wh

Re: [Lxc-users] Container shutdown remounts the lxc partition read-only... again

2013-06-21 Thread Leonid Isaev
On Fri, 21 Jun 2013 09:27:44 -0500 Serge Hallyn wrote: > Quoting Leonid Isaev (lis...@umail.iu.edu): > > Hi, > > > > I have recently installed vanilla lxc-0.9.0 under archlinux and > > encountered the old "fs is remounted ro" issue which is supposed to be > > fixed since https://bugs.launchp

Re: [Lxc-users] Container shutdown remounts the lxc partition read-only... again

2013-06-21 Thread Serge Hallyn
Quoting Leonid Isaev (lis...@umail.iu.edu): > Hi, > > I have recently installed vanilla lxc-0.9.0 under archlinux and > encountered the old "fs is remounted ro" issue which is supposed to be fixed > since https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/942325 ... The (also > archlinux) co

[Lxc-users] Container shutdown remounts the lxc partition read-only... again

2013-06-18 Thread Leonid Isaev
Hi, I have recently installed vanilla lxc-0.9.0 under archlinux and encountered the old "fs is remounted ro" issue which is supposed to be fixed since https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/942325 ... The (also archlinux) containers' rootfs are located on a separate partition m

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

Re: [Lxc-users] container shutdown

2012-03-19 Thread Brian K. White
On 3/19/2012 9:25 AM, Serge Hallyn wrote: > 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 and Fajar's great

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): > 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 and Fajar's great ideas, we can now cleanly shut down > >>>a conta

Re: [Lxc-users] container shutdown

2012-03-19 Thread Fajar A. Nugraha
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 me!" >> (the equivalent of xenbus listener check). > >

Re: [Lxc-users] container shutdown

2012-03-19 Thread Daniel Lezcano
On 03/19/2012 02:45 AM, Fajar A. Nugraha wrote: > On Mon, Mar 19, 2012 at 7:05 AM, Daniel Lezcano > wrote: >> 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 tw

Re: [Lxc-users] container shutdown

2012-03-19 Thread Daniel Lezcano
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 and Fajar's great ideas, we can now cleanly shut down >>> a container by sending it SIGPWR. I'm attaching two ways to do t

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. > >In-line is a patch which modifies lxc-stop

Re: [Lxc-users] container shutdown

2012-03-18 Thread Fajar A. Nugraha
On Mon, Mar 19, 2012 at 7:05 AM, Daniel Lezcano wrote: > 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. >> In-line is a patch which modifies

Re: [Lxc-users] container shutdown

2012-03-18 Thread Daniel Lezcano
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. > In-line is a patch which modifies lxc-stop to take optional -s and -t > args - -s for shutdown (mea

[Lxc-users] container shutdown

2012-03-18 Thread Serge Hallyn
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. In-line is a patch which modifies lxc-stop to take optional -s and -t args - -s for shutdown (meaning send SIGPWR), and -t for a timeout, after sending

Re: [Lxc-users] container shutdown

2010-06-02 Thread Daniel Lezcano
On 06/01/2010 08:27 PM, atp wrote: > Ok, > absolutely the last post tonight. I promise. > > I fixed the find /var/run -exec rm -f {} command in rc.sysinit. > > Now the problem is that the runlevel is written whilst things are > still shutting down; > > /lxc/test01.dev.tradefair/rootfs/var/run/utm

Re: [Lxc-users] container shutdown

2010-06-01 Thread atp
Ok, absolutely the last post tonight. I promise. I fixed the find /var/run -exec rm -f {} command in rc.sysinit. Now the problem is that the runlevel is written whilst things are still shutting down; /lxc/test01.dev.tradefair/rootfs/var/run/utmp MODIFY /lxc/test01.dev.tradefair/rootfs/var/run/

Re: [Lxc-users] container shutdown

2010-06-01 Thread atp
Bad idea to follow up on yourself, however I've got a bit further; running an inotifywait -m on the file at the same time as I'm tailing the log file gives you; lxc-start 1275415483.290 DEBUGlxc_cgroup - using cgroup mounted at '/cgroup' lxc-start 1275415483.290 DEBUGlxc_utmp

[Lxc-users] container shutdown

2010-06-01 Thread atp
Hello, Been looking at getting this patch working; http://lxc.git.sourceforge.net/git/gitweb.cgi?p=lxc/lxc;a=commitdiff;h=563f2f2ccd2891661836c96f92f047a735355c1b;hp=3bdf52d753ecf347b3b5cbff97675032f2de3e5e This patch allows to shutdown the container when the system is powered off in the contai