OpenVZ Forum


Home » Mailing lists » Users » CT console feature
Re: CT console feature [message #45310 is a reply to message #45305] Thu, 23 February 2012 20:38 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

On 02/23/2012 08:18 PM, Tim Small wrote:
> On 23/02/12 14:39, Kir Kolyshkin wrote:
>> I am glad to announce CT console feature.
> Very cool - been on my wish list for a while!
>
>> Available in RHEL6-based kernel since 042stab048.1, this feature is
>> pretty simple to use. Use vzctl attach CTID to attach to this
>> container's console, and you will be able to see all the messages CT
>> init is writing to console, or run getty on it, or anything else.
>>
>> Please note that the console is persistent, i.e. it is available even
>> if a container is not running. That way, you can run vzctl attach and
>> then (in another terminal) vzctl start. That also means that if a
>> container is stopped, vzctl attach is still there.
>>
>> Press Esc . to detach from the console.
> Cool. Just a thought on this escape sequence... ipmitool and ssh
> (amongst others) use ~ after a carriage return as the command sequence,
> and this is sort-of a defacto standard...
>
> OpenSSH..
>
>
> tim@ermintrude:~$ ~?
> Supported escape sequences:
> ~. - terminate connection (and any multiplexed sessions)
> [....]
> ~? - this message
> ~~ - send the escape character by typing it twice
> (Note that escapes are only recognized immediately after newline.)
>
>
> ipmitool
>
> Special escape sequences are provided to control the SOL session:
> ~. Terminate connection
> ~^Z Suspend ipmitool
> ~^X Suspend ipmitool, but don't
> restore tty on restart
> ~B Send break
> ~~ Send the escape character by
> typing it twice
> ~? Print the supported escape sequences
> Note that escapes are only recognized immediately
> after newline.
>
>
> Both allow you do change the escape character with a command line switch.
>
> Any chance of adopting this "standard" instead of something else?
>
> Any thoughts?

See, the problem here is you usually access your node through ssh, and
if we will use the same sequence than ssh will close.

Having said that, I welcome patches that
- make accept the sequence only after a newline
- make an option and/or config parameter to change Esc to something else

>
> Cheers,
>
> Tim.
>


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Set disk quota on arbitary mount point
Next Topic: New Linux distribution with OpenVZ features
Goto Forum:
  


Current Time: Thu Sep 04 03:47:24 GMT 2025

Total time taken to generate the page: 0.09833 seconds