OpenVZ Forum


Home » Mailing lists » Devel » Catching the console
RE: Catching the console [message #25025 is a reply to message #25024] Thu, 13 December 2007 08:25 Go to previous messageGo to previous message
Dietmar Maurer is currently offline  Dietmar Maurer
Messages: 52
Registered: March 2007
Member
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.
>
  • Attachment: env.c.diff
    (Size: 2.64KB, Downloaded 217 times)
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH net-2.6.25 3/3] Uninline the inet_twsk_put function
Next Topic: can we suggest a patch?
Goto Forum:
  


Current Time: Sun Oct 06 13:20:24 GMT 2024

Total time taken to generate the page: 0.05955 seconds