
This is a multi-part message in MIME format. --------------040709060200050404090703 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable Le 24/04/2016 19:49, Paul Groeneweg | Pazion a =E9crit :
I have followed the setup on=20 http://www.ovirt.org/documentation/admin-guide/serial-console-setup/
I am able to ssh to the hosted engine and select a VM. A VM with console enabled and permissions set gives a blank screen (=20 freezes ). Many reasons can lead to this, depending on the guest os. Have you modified all needed files into the guest OS?
This is what I did for my vms (tty0 is to get the boot sequence into=20 the spice/vnc console insted of a black screen) CentOS 5: * grub.conf for i in $(cat /tmp/update_grub); do ssh root@$i 'sed -e=20 "s/^\\t\(kernel\).*$/&*console\=3Dtty0 console\=3DttyS0*/g" -i=20 /etc/grub.conf'; done * inittab for i in $(cat /tmp/liste) ; do echo $i; ssh root@$i "sed -i \"/tty6/a=20 *S0:2345:respawn:/sbin/mingetty ttyS0*\" /etc/inittab"; done * securetty for i in $(cat /tmp/liste) ; do echo $i; ssh root@$i "sed -i \"/tty11/a=20 *ttyS0*\" /etc/securetty"; done CentOS 6: * grub.conf for i in $(cat /tmp/update_grub); do ssh root@$i 'sed -e=20 "s/^\\t\(kernel\).*$/&*console\=3Dtty0 console\=3DttyS0*/g" -i=20 /etc/grub.conf'; done * securetty for i in $(cat /tmp/liste) ; do echo $i; ssh root@$i "sed -i \"/tty11/a=20 *ttyS0*\" /etc/securetty"; done CentOS 7 : securetty file already includes ttyS0 by default * grub2.cfg for i in $(cat /tmp/update_grub2);do echo -e "$i:\n"; ssh root@$i 'sed=20 -e "s/^\\t\(linux16\).*$/&*console\=3Dtty0 console\=3DttyS0*/g" -i=20 /boot/grub2/grub.cfg'; done for i in $(cat /tmp/update_grub2);do echo -e "$i:\n"; ssh root@$i=20 'grub2-mkconfig -o /boot/grub2/grub.cfg'; done As a last alternative, grubby does the staff on every OS and grub=20 versions, but doesn't modify the securetty file. * grubby for i in $(cat /tmp/update_grub2);do echo -e "$i:\n"; ssh root@$i=20 "grubby --update-kernel=3DALL --args=3D\"console=3Dtty0 console=3DttyS0\"= "; done
So I checked serial-getty@.service
So you run el7 :)
Am I right this service should run on a host? Sure, but not enough
When I check status, I get this:
... systemd[1]: *Dependency failed for Serial Getty on hvc0.*
.. systemd[1]: *Job serial-getty@hvc0.service/start failed with result=20 'dependency'.*
* *
What needs to be done? When I restart the service it takes a long tine=20 and looks like a timeout is triggered.
you can check if ttyS0 is opened with stty < /dev/ttyS0 If true, the issue might come from a right permission. Did you add the wanted user (doesn't work with group) per vm with the=20 minimum UserVmManager role? if the user is SuperUser, it still can't connect to the console due to a=20 bug.
Looking forward to use the serial console feature.
it works very well and it is very convinient:) Just a last tip : the default escape character to escape from ssh is "~." Good luck!
* *
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
--=20 Nathana=EBl Blanchet Supervision r=E9seau P=F4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=E9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr --------------040709060200050404090703 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable <html> <head> <meta content=3D"text/html; charset=3Dwindows-1252" http-equiv=3D"Content-Type"> </head> <body bgcolor=3D"#FFFFFF" text=3D"#000000"> Le 24/04/2016 19:49, Paul Groeneweg | Pazion a =E9crit=A0:<br> <blockquote cite=3D"mid:CAE1B0QJsn8hxA5C5vkZci-UTCMcMtvWcZG29zjegnttGoSeyLg@mail.gmai= l.com" type=3D"cite"> <div dir=3D"ltr">I have followed the setup on=A0<a moz-do-not-send=3D"true" href=3D"http://www.ovirt.org/documentation/admin-guide/serial-console-set= up/"><a class=3D"moz-txt-link-freetext" href=3D"http://www.ovirt.org/docu= mentation/admin-guide/serial-console-setup/">http://www.ovirt.org/documen= tation/admin-guide/serial-console-setup/</a></a> <div><br> </div> <div>I am able to ssh to the hosted engine and select a VM.</div> <div>A VM with console enabled and permissions set gives a blank screen ( freezes ).</div> </div> </blockquote> Many reasons can lead to this, depending on the guest os. <br> Have you modified all needed files into the guest OS?<br> <br> =A0This is what I did for my vms (tty0 is to get the boot sequence into the spice/vnc console insted of a black screen) <br> <br> CentOS 5:<br> <ul> <li>grub.conf<br> </li> </ul> for i in $(cat /tmp/update_grub); do ssh root@$i 'sed -e "s/^\\t\(kernel\).*$/&<b> console\=3Dtty0 console\=3DttyS0</b>/g"= -i /etc/grub.conf'; done<br> <ul> <li>inittab<br> </li> </ul> for i in $(cat /tmp/liste) ; do echo $i; ssh root@$i "sed -i \"/tty6/a <b>S0:2345:respawn:/sbin/mingetty ttyS0</b>\" /etc/inittab"; done<br> <ul> <li>securetty<br> </li> </ul> for i in $(cat /tmp/liste) ; do echo $i; ssh root@$i "sed -i \"/tty11/a <b>ttyS0</b>\" /etc/securetty"; done<br> <br> CentOS 6:<br> <ul> <li>grub.conf<br> </li> </ul> for i in $(cat /tmp/update_grub); do ssh root@$i 'sed -e "s/^\\t\(kernel\).*$/&<b> console\=3Dtty0 console\=3DttyS0</b>/g"= -i /etc/grub.conf'; done<br> <ul> <li>securetty<br> </li> </ul> for i in $(cat /tmp/liste) ; do echo $i; ssh root@$i "sed -i \"/tty11/a <b>ttyS0</b>\" /etc/securetty"; done<br> <br> CentOS 7 : securetty file already includes ttyS0 by default<br> <ul> <li>grub2.cfg<br> </li> </ul> for i in $(cat /tmp/update_grub2);do echo -e "$i:\n"; ssh root@$i 'sed -e "s/^\\t\(linux16\).*$/&<b> console\=3Dtty0 console\=3Dtty= S0</b>/g" -i /boot/grub2/grub.cfg'; done<br> for i in $(cat /tmp/update_grub2);do echo -e "$i:\n"; ssh root@$i 'grub2-mkconfig -o /boot/grub2/grub.cfg'; done<br> <br> As a last alternative, grubby does the staff on every OS and grub versions, but doesn't modify the securetty file.<br> <ul> <li>grubby <br> </li> </ul> for i in $(cat /tmp/update_grub2);do echo -e "$i:\n"; ssh root@$i "grubby --update-kernel=3DALL --args=3D\"console=3Dtty0 console=3Dtty= S0\""; done<br> <blockquote cite=3D"mid:CAE1B0QJsn8hxA5C5vkZci-UTCMcMtvWcZG29zjegnttGoSeyLg@mail.gmai= l.com" type=3D"cite"> <div dir=3D"ltr"> <div><br> </div> <div>So I checked=A0<span style=3D"line-height:1.5"><a class=3D"m= oz-txt-link-abbreviated" href=3D"mailto:serial-getty@.service">serial-get= ty@.service</a></span></div> </div> </blockquote> So you run el7 :)<br> <blockquote cite=3D"mid:CAE1B0QJsn8hxA5C5vkZci-UTCMcMtvWcZG29zjegnttGoSeyLg@mail.gmai= l.com" type=3D"cite"> <div dir=3D"ltr"> <div>Am I right this service should run on a host?</div> </div> </blockquote> Sure, but not enough<br> <blockquote cite=3D"mid:CAE1B0QJsn8hxA5C5vkZci-UTCMcMtvWcZG29zjegnttGoSeyLg@mail.gmai= l.com" type=3D"cite"> <div dir=3D"ltr"> <div><br> </div> <div>When I check status, I get this:<br> <div><br> </div> <div> <p class=3D"p1"><span class=3D"s1">... systemd[1]: </span><sp= an class=3D"s2"><b>Dependency failed for Serial Getty on hvc0.</b></span></p> <p class=3D"p1"><span class=3D"s1">.. systemd[1]: <b>Job <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:se= rial-getty@hvc0.service/start">serial-getty@hvc0.service/start</a> failed= with result 'dependency'.</b></span></p> <p class=3D"p1"><span class=3D"s1"><b><br> </b></span></p> <p class=3D"p1"><span class=3D"s1">What needs to be done? Whe= n I restart the service it takes a long tine and looks like a timeout is triggered.</span></p> </div> </div> </div> </blockquote> you can check if ttyS0 is opened with=A0 stty < /dev/ttyS0<br> If true, the issue might come from a right permission. <br> Did you add the wanted user (doesn't work with group) per vm with the minimum UserVmManager role? <br> if the user is SuperUser, it still can't connect to the console due to a bug.<br> <blockquote cite=3D"mid:CAE1B0QJsn8hxA5C5vkZci-UTCMcMtvWcZG29zjegnttGoSeyLg@mail.gmai= l.com" type=3D"cite"> <div dir=3D"ltr"> <div> <div> <p class=3D"p1"><span class=3D"s1">Looking forward to use the serial console feature.</span></p> </div> </div> </div> </blockquote> it works very well and it is very convinient:) <br> <br> Just a last tip : the default escape character to escape from ssh is "~."<br> <br> Good luck!<br> <blockquote cite=3D"mid:CAE1B0QJsn8hxA5C5vkZci-UTCMcMtvWcZG29zjegnttGoSeyLg@mail.gmai= l.com" type=3D"cite"> <div dir=3D"ltr"> <div> <div> <p class=3D"p1"><span class=3D"s1"><b><br> </b></span></p> </div> </div> </div> <br> <fieldset class=3D"mimeAttachmentHeader"></fieldset> <br> <pre wrap=3D"">_______________________________________________ Users mailing list <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:Users@ovirt.org">Use= rs@ovirt.org</a> <a class=3D"moz-txt-link-freetext" href=3D"http://lists.ovirt.org/mailman= /listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a> </pre> </blockquote> <br> <pre class=3D"moz-signature" cols=3D"72">--=20 Nathana=EBl Blanchet Supervision r=E9seau P=F4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=E9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:blanchet@abes.fr">bl= anchet@abes.fr</a> </pre> </body> </html> --------------040709060200050404090703--