<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 03/28/2017 11:35 AM, Gianluca Cecchi
wrote:<br>
</div>
<blockquote
cite="mid:CAG2kNCzq5=tp+XfmNYSLVP1GFkh1dGB60Amb7+mpQ+MLz=w0rQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hello,</div>
</blockquote>
<br>
Ciao Gianluca :)<br>
<br>
<blockquote
cite="mid:CAG2kNCzq5=tp+XfmNYSLVP1GFkh1dGB60Amb7+mpQ+MLz=w0rQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>trying serial console in 4.1.1 I have some problems.</div>
<div>I have not understood if it depends on my client, or the
guest or oVirt...</div>
<div><br>
</div>
<div>My client is Fedora 25 updated</div>
<div>My guest is a CentOS 7.3 VM updated (my latest successful
attempts were when in 7.2)</div>
<div>My oVirt is 4.1.1 (my latest successful attempts were when
in 4.0.x)</div>
<div><br>
</div>
<div>Some tests</div>
<div><br>
</div>
<div>
<div>$ ssh -i .ssh/id_dsa.pub ovirt-vmconsole@ovmgr1 -p 2222 </div>
<div>Available Serial Consoles:</div>
<div>00 c7service[2e571c77-bae1-4c1c-bf98-effaf9fed741]</div>
<div>01 c7testovn1[63818176-cfb5-4a00-912d-ce0e812be76c]</div>
<div>02 c7testovn2[f00c8f30-a658-4a18-bf85-3b523de93183]</div>
<div>03 dbatest6[633b58b6-5e99-491b-a312-0976d4e8d979]</div>
<div>04 nas4free[6b9013d1-1837-4b0f-aa34-c9130d4f1229]</div>
<div>05 raclab1[1775d180-288d-4116-af1e-d90b2989cb8a]</div>
<div>06 raclab2[852aa8b1-a3e2-4658-be91-0ab51b6b7260]</div>
<div>SELECT> 00</div>
</div>
<div><br>
</div>
<div>and it stays here without giving the os prompt.</div>
</div>
</blockquote>
<br>
Sometimes it happen that the *getty in the guest is actually ready,
but you just don't get the prompt.<br>
To check that, the easiest way is to just hit enter a few times to
see if there is any echo/prompt showing up.<br>
<br>
<br>
<blockquote
cite="mid:CAG2kNCzq5=tp+XfmNYSLVP1GFkh1dGB60Amb7+mpQ+MLz=w0rQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div>In 7.3 guest I have VirtIO serial console enabled and this
situation</div>
<div><br>
</div>
<div>
<div>[root@c7service ~]# cat /proc/cmdline </div>
<div>BOOT_IMAGE=/vmlinuz-3.10.0-514.6.1.el7.x86_64
root=/dev/mapper/cl-root ro <a moz-do-not-send="true"
href="http://rd.lvm.lv">rd.lvm.lv</a>=cl/root <a
moz-do-not-send="true" href="http://rd.lvm.lv">rd.lvm.lv</a>=cl/swap
rhgb quiet console=ttyS0</div>
<div>[root@c7service ~]#</div>
</div>
<div><br>
</div>
<div>
<div>[root@c7service ~]# ps -ef|grep agetty</div>
<div>root 718 1 0 11:15 ttyS0 00:00:00
/sbin/agetty --keep-baud 115200 38400 9600 ttyS0 vt220</div>
<div>root 1760 1541 0 11:29 pts/0 00:00:00 grep
--color=auto agetty</div>
<div>[root@c7service ~]# </div>
</div>
<div><br>
</div>
<div>So it seems ok.</div>
</div>
</blockquote>
<br>
Yes, looks good<br>
<br>
<blockquote
cite="mid:CAG2kNCzq5=tp+XfmNYSLVP1GFkh1dGB60Amb7+mpQ+MLz=w0rQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>I have not understood the error I get connecting this way:</div>
<div><br>
</div>
<div>
<div>$ ssh -i .ssh/id_dsa.pub ovirt-vmconsole@ovmgr1 -p 2222
connect --vm-name c7service</div>
<div>ERROR: No pty support, please enable at client side</div>
<div>$</div>
</div>
</div>
</blockquote>
<br>
The error message is a bit cryptic. It means you haven't given the
"-t" ssh options.<br>
Please retry with:<br>
<br>
ssh -t -i .ssh/id_dsa.pub ovirt-vmconsole@ovmgr1 -p 2222 connect
--vm-name c7service<br>
<br>
<blockquote
cite="mid:CAG2kNCzq5=tp+XfmNYSLVP1GFkh1dGB60Amb7+mpQ+MLz=w0rQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>What is "client" in the error message, my Fedora 25..?</div>
</div>
</blockquote>
<br>
Yep, it is referring to the ssh client.<br>
<br>
<pre class="moz-signature" cols="72">--
Francesco Romani
Senior SW Eng., Virtualization R&D
Red Hat
IRC: fromani github: @fromanirh</pre>
</body>
</html>