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@openvz.org
> [mailto:devel-bounces@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.
>