[Devel] Catching the console

Dietmar Maurer dietmar at maurer-it.com
Thu Dec 13 00:25:19 PST 2007


Hi all,

here is a patch for vzctl to catch init output. output is written to VEROOT/var/log/init.log

I tested it with some debian templates (sysvinit), but it would be great is someone else tries/test it with other templates.

- Dietmar 

> -----Ursprüngliche Nachricht-----
> Von: devel-bounces at openvz.org 
> [mailto:devel-bounces at openvz.org] Im Auftrag von Roman Kagan
> Gesendet: Donnerstag, 13. Dezember 2007 09:16
> An: Enrico Weigelt
> Cc: OpenVZ developer list
> Betreff: Re: [Devel] Catching the console
> 
> On Wed, Dec 12, 2007 at 12:27:01PM +0100, Enrico Weigelt wrote:
> > No I'd like to request an feature for catching the console.
> > IMHO, it's enough to have an option to vzctl start, which 
> tells it to 
> > not to detach and bring the VE's console to the current tty.
> 
> Unfortunately this is much trickier than that.  The problem 
> is that at some point you'll want to detach the VE0's end; 
> with standard Unix98 ptys this will result in SIGHUP being 
> sent to all processes in the VE whose controlling terminal is 
> the console.  Besides, there are certain implications for 
> online migration of the VEs - you should leave no references 
> to the VE0 objects that can't be reconstructed on the 
> destination node.
> 
> So it looks like there's no pure userspace solution.  OTOH 
> adding the kernel support for it doesn't look impossible 
> off-hand; I'll have a look.
> 
> Roman.
> 
> _______________________________________________
> Devel mailing list
> Devel at openvz.org
> https://openvz.org/mailman/listinfo/devel
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: env.c.diff
Type: application/octet-stream
Size: 2704 bytes
Desc: env.c.diff
URL: <http://lists.openvz.org/pipermail/devel/attachments/20071213/b0433bf8/attachment-0001.obj>


More information about the Devel mailing list