Re: openvz console inside VPS [message #39705 is a reply to message #37082] |
Tue, 25 May 2010 12:48  |
solukom
Messages: 1 Registered: May 2010
|
Junior Member |
|
|
If you just want to see the boot process, it's not necessary to patch vzctl.
Those are the steps:
- Choose a virtual terminal for your vz container. For example tty2
- Disable tty2 on host. Edit /etc/inittab and delete (or comment) the line that contains tty2:
2:23:respawn:/sbin/getty 38400 tty
- Reload init (#init q) or reboot machine
- Give your vz (101 in this example) the rights to access /dev/tty2
# vzctl set 101 --devices "c:4:2:rw" --save
(for tty3 it would be c:4:3:rw ...)
# vzctl set 101 --devnodes "tty2:rw" --save
- Enter this vz container and add to /etc/inittab the line commented on the host:
2:23:respawn:/sbin/getty 38400 tty
-Inside this vz soft-link console to tty2
# ln -sf /dev/tty2 /dev/console
- Exit this vz container and restart it
You can see the boot process on Vitual Terminal 2 (Alt+F2). And you also get direct getty for the same price!
--
Agustin Rivero
www.solukom.com
|
|
|