OpenVZ Forum


Home » General » Support » /dev/console virtualization, somehow?
/dev/console virtualization, somehow? [message #15360] Fri, 27 July 2007 22:32 Go to next message
errge is currently offline  errge
Messages: 1
Registered: July 2007
Junior Member
Hi,

Can I somehow get /dev/console virtualized? I want a file (e.g. /var/log/boot.log) which shows boot messages after successful boot.

I tried to simply create a plain file as /dev/console, it works, but I don't see every message and messages get periodically overwritten.

I tried /sbin/init rename+CONSOLE env var hack, it works too, but I don't see every message (for example Debian's network initialization's output is surely not there).

Is there any plan to correctly virtualize /dev/console, terminals, etc., if there is, when can that happen?

'vzctl console 100' will be a very nice feature...

Thanks for your work,
Gergely
Re: /dev/console virtualization, somehow? [message #15391 is a reply to message #15360] Sun, 29 July 2007 20:46 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
I too am interested in this. I have hacked the startup routine a few times to chase down an init script problem where no logs are generated.

'vzctl console 100' would be great.

Rick


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: /dev/console virtualization, somehow? [message #15407 is a reply to message #15391] Mon, 30 July 2007 07:02 Go to previous message
den is currently offline  den
Messages: 494
Registered: December 2005
Senior Member
I think that this could be solved in userspace without the kernel intervention.

The idea is simple:
- kernel boot messages will not be printed and they are not interested for the case
- userspace boot messages could be printed to ANY virtual terminal
- if allocate a terminal at startup by something like a 'screen' and link /dev/console to it the messages will be there

The idea is not yet proven, but seems doable.

Regards,
Den
Previous Topic: PPTP in venet
Next Topic: Performance problem... Need help with setting UBC
Goto Forum:
  


Current Time: Sat Sep 06 20:40:57 GMT 2025

Total time taken to generate the page: 0.09362 seconds