The Muddling Tech
I noticed today that I cannot log into a console on my virtual server. Using
sudo virsh console
doesn’t produce an error message, just confirmation that I’m connected to the server and a notice that the escape character is ^], but no log in prompt, and the terminal doesn’t respond to anything that I try. The one thing I can do is exit the terminal with Ctrl+].
I found the reference above that promises to address the issue, so let’s see what happens.
The first step is to copy tty1.conf to ttyS0.conf with
sudo cp /etc/init/tty1.conf /etc/init/ttyS0.conf
Next we’ll change the last line of ttyS0.conf from
exec /sbin/getty -8 38400 tty1
exec /sbin/getty -8 115200 ttyS0 xterm
and make the appropriate changes.
The other thing we need to do is have grub send its output to the new terminal that we just set up so we get the login prompt and can interact with it.
sudo vi /etc/default/grub
and change the line that reads
Now to reboot the virtual server
sudo virsh reboot
Now testing the new set up,
virsh console <server name>
produces exactly the same prompt, but if I type in my user name now, it prompts for a password and lets me log in to the terminal.
So, thank you, biogoo.