[ovirt-users] problems with serial console in 4.1.1

Francesco Romani fromani at redhat.com
Tue Mar 28 13:51:06 UTC 2017


On 03/28/2017 11:35 AM, Gianluca Cecchi wrote:
> Hello,

Ciao Gianluca :)

> trying serial console in 4.1.1 I have some problems.
> I have not understood if it depends on my client, or the guest or oVirt...
>
> My client is Fedora 25 updated
> My guest is a CentOS 7.3 VM updated (my latest successful attempts
> were when in 7.2)
> My oVirt is 4.1.1 (my latest successful attempts were when in 4.0.x)
>
> Some tests
>
> $ ssh -i .ssh/id_dsa.pub ovirt-vmconsole at ovmgr1 -p 2222 
> Available Serial Consoles:
> 00 c7service[2e571c77-bae1-4c1c-bf98-effaf9fed741]
> 01 c7testovn1[63818176-cfb5-4a00-912d-ce0e812be76c]
> 02 c7testovn2[f00c8f30-a658-4a18-bf85-3b523de93183]
> 03 dbatest6[633b58b6-5e99-491b-a312-0976d4e8d979]
> 04 nas4free[6b9013d1-1837-4b0f-aa34-c9130d4f1229]
> 05 raclab1[1775d180-288d-4116-af1e-d90b2989cb8a]
> 06 raclab2[852aa8b1-a3e2-4658-be91-0ab51b6b7260]
> SELECT> 00
>
> and it stays here without giving the os prompt.

Sometimes it happen that the *getty in the guest is actually ready, but
you just don't get the prompt.
To check that, the easiest way is to just hit enter a few times to see
if there is any echo/prompt showing up.


>
> In 7.3 guest I have VirtIO serial console enabled and this situation
>
> [root at c7service ~]# cat /proc/cmdline 
> BOOT_IMAGE=/vmlinuz-3.10.0-514.6.1.el7.x86_64 root=/dev/mapper/cl-root
> ro rd.lvm.lv <http://rd.lvm.lv>=cl/root rd.lvm.lv
> <http://rd.lvm.lv>=cl/swap rhgb quiet console=ttyS0
> [root at c7service ~]#
>
> [root at c7service ~]# ps -ef|grep agetty
> root       718     1  0 11:15 ttyS0    00:00:00 /sbin/agetty
> --keep-baud 115200 38400 9600 ttyS0 vt220
> root      1760  1541  0 11:29 pts/0    00:00:00 grep --color=auto agetty
> [root at c7service ~]# 
>
> So it seems ok.

Yes, looks good

> I have not understood the error I get connecting this way:
>
> $ ssh -i .ssh/id_dsa.pub ovirt-vmconsole at ovmgr1 -p 2222 connect
> --vm-name c7service
> ERROR: No pty support, please enable at client side
> $

The error message is a bit cryptic. It means you haven't given the "-t"
ssh options.
Please retry with:

ssh -t -i .ssh/id_dsa.pub ovirt-vmconsole at ovmgr1 -p 2222 connect
--vm-name c7service

> What is "client" in the error message, my Fedora 25..?

Yep, it is referring to the ssh client.

-- 
Francesco Romani
Senior SW Eng., Virtualization R&D
Red Hat
IRC: fromani github: @fromanirh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20170328/c417ec70/attachment.html>


More information about the Users mailing list