OpenVZ Forum


Home » General » Support » openvz console inside VPS
openvz console inside VPS [message #37082] Tue, 18 August 2009 08:05 Go to next message
cgm00 is currently offline  cgm00
Messages: 5
Registered: April 2009
Junior Member
From: *iasi.fiberlink.ro
I would like to know if there is a way to have some sort of virtual console inside VPS. The reason for this would be
debuging starting issues ( so what would be needed is a virtual
char device(similar to ttys) that have one end in VPS and the other in hwnode)

Re: openvz console inside VPS [message #37085 is a reply to message #37082] Tue, 18 August 2009 10:05 Go to previous messageGo to next message
curx
Messages: 738
Registered: February 2006
Location: N├╝rnberg, Germany
Senior Member

From: *bisping.net
Hi,

Dietmar Mauer proxmox has released a init logger patch, for some debugging in container on start:

src: ftp://download.proxmox.com/sources/vzctl_2009-06-05.tar.gz

Hope this helps. Wink

Bye,
Thorsten

Re: openvz console inside VPS [message #39705 is a reply to message #37082] Tue, 25 May 2010 12:48 Go to previous message
solukom is currently offline  solukom
Messages: 1
Registered: May 2010
Junior Member
From: *Red-81-32-226.dynamicIP.rima-tde.net
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
Previous Topic: how to Install OpenVZ
Next Topic: Kernel panics on server and randomly
Goto Forum:
  


Current Time: Wed Dec 13 13:00:09 GMT 2017