Available in RHEL6-based kernel since 042stab048.1, this feature is pretty simple to use. Use
vzctl attach CTIDto 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 start. That also means that if a container is stopped, vzctl attach is still there.
Press Esc . to detach from the console.
The feature (vzctl git commit) will be available in up-coming vzctl-3.0.31. I have just made a nightly build of vzctl (version 188.8.131.52-18.git.a1f523f) available so you can test this. Check http://wiki.openvz.org/Download/vzctl/nightly for information of how to get a nightly build.
Update: the feature is renamed to
Update: comments disabled due to spam.