<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Le 24/04/2016 19:49, Paul Groeneweg | Pazion a écrit :<br>
<blockquote
cite="mid:CAE1B0QJsn8hxA5C5vkZci-UTCMcMtvWcZG29zjegnttGoSeyLg@mail.gmail.com"
type="cite">
<div dir="ltr">I have followed the setup on <a
moz-do-not-send="true"
href="http://www.ovirt.org/documentation/admin-guide/serial-console-setup/"><a class="moz-txt-link-freetext" href="http://www.ovirt.org/documentation/admin-guide/serial-console-setup/">http://www.ovirt.org/documentation/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>
This 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\=tty0 console\=ttyS0</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\=tty0 console\=ttyS0</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\=tty0 console\=ttyS0</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=ALL --args=\"console=tty0 console=ttyS0\"";
done<br>
<blockquote
cite="mid:CAE1B0QJsn8hxA5C5vkZci-UTCMcMtvWcZG29zjegnttGoSeyLg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div>So I checked <span style="line-height:1.5"><a class="moz-txt-link-abbreviated" href="mailto:serial-getty@.service">serial-getty@.service</a></span></div>
</div>
</blockquote>
So you run el7 :)<br>
<blockquote
cite="mid:CAE1B0QJsn8hxA5C5vkZci-UTCMcMtvWcZG29zjegnttGoSeyLg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Am I right this service should run on a host?</div>
</div>
</blockquote>
Sure, but not enough<br>
<blockquote
cite="mid:CAE1B0QJsn8hxA5C5vkZci-UTCMcMtvWcZG29zjegnttGoSeyLg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div>When I check status, I get this:<br>
<div><br>
</div>
<div>
<p class="p1"><span class="s1">... systemd[1]: </span><span
class="s2"><b>Dependency failed for Serial Getty on
hvc0.</b></span></p>
<p class="p1"><span class="s1">.. systemd[1]: <b>Job
<a class="moz-txt-link-abbreviated" href="mailto:serial-getty@hvc0.service/start">serial-getty@hvc0.service/start</a> failed with result
'dependency'.</b></span></p>
<p class="p1"><span class="s1"><b><br>
</b></span></p>
<p class="p1"><span class="s1">What needs to be done? When 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 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="mid:CAE1B0QJsn8hxA5C5vkZci-UTCMcMtvWcZG29zjegnttGoSeyLg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<p class="p1"><span class="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="mid:CAE1B0QJsn8hxA5C5vkZci-UTCMcMtvWcZG29zjegnttGoSeyLg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<p class="p1"><span class="s1"><b><br>
</b></span></p>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a>
<a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Nathanaël Blanchet
Supervision réseau
Pôle Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5         
Tél. 33 (0)4 67 54 84 55
Fax 33 (0)4 67 54 84 14
<a class="moz-txt-link-abbreviated" href="mailto:blanchet@abes.fr">blanchet@abes.fr</a> </pre>
</body>
</html>