problems with serial console in 4.1.1

Hello, 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@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. In 7.3 guest I have VirtIO serial console enabled and this situation [root@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=cl/root rd.lvm.lv=cl/swap rhgb quiet console=ttyS0 [root@c7service ~]# [root@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@c7service ~]# So it seems ok. I have not understood the error I get connecting this way: $ ssh -i .ssh/id_dsa.pub ovirt-vmconsole@ovmgr1 -p 2222 connect --vm-name c7service ERROR: No pty support, please enable at client side $ What is "client" in the error message, my Fedora 25..? At engine side I have: [root@ovmgr1 ovirt-engine]# systemctl status ovirt-vmconsole-proxy-sshd.service -l ● ovirt-vmconsole-proxy-sshd.service - oVirt VM Console SSH server daemon Loaded: loaded (/usr/lib/systemd/system/ovirt-vmconsole-proxy-sshd.service; enabled; vendor preset: disabled) Active: active (running) since Tue 2017-03-28 11:00:26 CEST; 33min ago Main PID: 1117 (sshd) CGroup: /system.slice/ovirt-vmconsole-proxy-sshd.service └─1117 /usr/sbin/sshd -f /usr/share/ovirt-vmconsole/ovirt-vmconsole-proxy/ovirt-vmconsole-proxy-sshd/sshd_config -D Mar 28 11:19:44 ovmgr1.mydomain sshd[2779]: Accepted publickey for ovirt-vmconsole from 10.4.170.225 port 34947 ssh2: DSA 3d:d4:5b:94:b9:9e:4b:46:14:b2:4a:05:03:9b:05:d6 Mar 28 11:19:52 ovmgr1.mydomain sshd[2796]: Accepted publickey for ovirt-vmconsole from 10.4.170.225 port 16456 ssh2: DSA 3d:d4:5b:94:b9:9e:4b:46:14:b2:4a:05:03:9b:05:d6 Mar 28 11:19:53 ovmgr1.mydomain sshd[2808]: Received disconnect from 10.4.170.225: 11: disconnected by user Mar 28 11:20:02 ovmgr1.mydomain sshd[2824]: Accepted publickey for ovirt-vmconsole from 10.4.170.225 port 5769 ssh2: DSA 3d:d4:5b:94:b9:9e:4b:46:14:b2:4a:05:03:9b:05:d6 Mar 28 11:20:14 ovmgr1.mydomain sshd[2855]: Accepted publickey for ovirt-vmconsole from 10.4.170.225 port 52441 ssh2: DSA 3d:d4:5b:94:b9:9e:4b:46:14:b2:4a:05:03:9b:05:d6 Mar 28 11:20:24 ovmgr1.mydomain sshd[2882]: Accepted publickey for ovirt-vmconsole from 10.4.170.225 port 33724 ssh2: DSA 3d:d4:5b:94:b9:9e:4b:46:14:b2:4a:05:03:9b:05:d6 Mar 28 11:20:24 ovmgr1.mydomain sshd[2894]: Received disconnect from 10.4.170.225: 11: disconnected by user Mar 28 11:20:36 ovmgr1.mydomain sshd[2900]: Accepted publickey for ovirt-vmconsole from 10.4.170.225 port 64049 ssh2: DSA 3d:d4:5b:94:b9:9e:4b:46:14:b2:4a:05:03:9b:05:d6 Mar 28 11:21:26 ovmgr1.mydomain sshd[2955]: Accepted publickey for ovirt-vmconsole from 10.4.170.225 port 3521 ssh2: DSA 3d:d4:5b:94:b9:9e:4b:46:14:b2:4a:05:03:9b:05:d6 Mar 28 11:21:27 ovmgr1.mydomain sshd[2967]: Received disconnect from 10.4.170.225: 11: disconnected by user Thanks, Gianluca

This is a multi-part message in MIME format. --------------44F6417194F34F6D3CA053BF Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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@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@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@c7service ~]#
[root@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@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@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@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 --------------44F6417194F34F6D3CA053BF Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit <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> --------------44F6417194F34F6D3CA053BF--

On Tue, Mar 28, 2017 at 3:51 PM, Francesco Romani <fromani@redhat.com> wrote:
On 03/28/2017 11:35 AM, Gianluca Cecchi wrote:
Hello,
Ciao Gianluca :)
Ciao Francesco ; - ] 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@ovmgr1 -p 2222 connect --vm-name c7service
yep, it works! Thanks... $ ssh -t -i .ssh/id_dsa.pub ovirt-vmconsole@ovmgr1 -p 2222 connect --vm-name c7service (I put a couple of return herein...) CentOS Linux 7 (Core) Kernel 3.10.0-514.6.1.el7.x86_64 on an x86_64 c7service login: root Password: Last login: Tue Mar 28 11:17:35 from ope46 [root@c7service ~]# Cheers.
participants (2)
-
Francesco Romani
-
Gianluca Cecchi