--Apple-Mail=_BD09F72D-91EC-46F7-A2A6-B1736D2F6445
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii
On 03 May 2016, at 13:08, Gianluca Cecchi
<gianluca.cecchi(a)gmail.com> =
wrote:
=20
Hello,
I attach to this thread to detail how I was able to have serial =
console working
both on CentOS 6.7 and CentOS 7.2 VMs on 3.6.5
=20
- CentOS 6.7
Basically what described in general here (but using ttyS0 instead =
ttyS1):
<
http://www.cyberciti.biz/faq/centos-rhel-6-install-serial-console/>
=20
So in /boot/grub/grub.conf=20
=20
a) right before the "hiddenmenu" line:
=20
serial --unit=3D0 --speed=3D19200 --word=3D8 --parity=3Dno --stop=3D1
terminal --timeout=3D5 serial console
=20
b) At the end of kernel line added:
console=3Dtty0 console=3DttyS0,19200n8
=20
Added at the end of /etc/securetty the line
ttyS0
=20
Only difference is that as I used ttyS0, the upstart configuration was =
not
needed: the system after reboot was already listening on ttyS0
Creating upstart config file generated 2 processes listening on
ttyS0
=20
=20
- CentOS 7.2
created VM with virtio console enabled in options and basically =
following what
described here
<
https://www.youtube.com/watch?v=3DSx2HRwFqG7o>
=20
from default configuration I got after install:
=20
Add in /etc/default/grub "console=3DttyS0" in GRUB_CMDLINE_LINUX so =
that it is now:
GRUB_CMDLINE_LINUX=3D"rd.lvm.lv
<
http://rd.lvm.lv/>=3Dcentos/root =
rd.lvm.lv
<
http://rd.lvm.lv/>=3Dcentos/swap rhgb quiet console=3DttyS0"
=20
grub2-mkconfig -o /boot/grub2/grub.cfg
=20
reboot the VM
=20
=46rom a client:
$ ssh -t -p 2222 ovirt-vmconsole(a)ovirt.lutwyn.org =
<mailto:ovirt-vmconsole@ovirt.lutwyn.org> connect
Available Serial Consoles:
00 c6desktop[68a82ada-a1d2-44d0-85b0-f3a08cc2f579]
01 c7desktop[787f46f6-de4a-4b42-ba39-9609908c2905]
SELECT> 01
=20
CentOS Linux 7 (Core)
Kernel 3.10.0-327.13.1.el7.x86_64 on an x86_64
=20
Host-006 login: root
Password:=20
Last login: Tue May 3 01:34:57 on pts/0
[root@Host-006 ~]#=20
[root@Host-006 ~]#=20
[root@Host-006 ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)=20
[root@Host-006 ~]# exit
Hi Gianluca,
would you care to extend =
http://www.ovirt.org/documentation/admin-guide/serial-console-setup/ =
with this useful info? I suppose there are quite a few people who would =
find handy some tips how to set it up for various guest OSes
Thanks,
michal
=20
HIH,
Gianluca
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
--Apple-Mail=_BD09F72D-91EC-46F7-A2A6-B1736D2F6445
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=us-ascii
<html><head><meta http-equiv=3D"Content-Type"
content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><br class=3D""><div><blockquote
type=3D"cite" class=3D""><div =
class=3D"">On 03 May 2016, at 13:08, Gianluca Cecchi <<a =
href=3D"mailto:gianluca.cecchi@gmail.com" =
class=3D"">gianluca.cecchi(a)gmail.com</a>&gt;
wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div
dir=3D"ltr" =
class=3D""><div class=3D"gmail_extra"><div =
class=3D"gmail_quote">Hello,</div><div
class=3D"gmail_quote">I attach to =
this thread to detail how I was able to have serial console working both =
on CentOS 6.7 and CentOS 7.2 VMs on 3.6.5</div><div =
class=3D"gmail_quote"><br class=3D""></div><div
class=3D"gmail_quote">- =
CentOS 6.7</div><div class=3D"gmail_quote">Basically what described
in =
general here (but using ttyS0 instead ttyS1):</div><div =
class=3D"gmail_quote"><a =
href=3D"http://www.cyberciti.biz/faq/centos-rhel-6-install-serial-console/=
" =
class=3D"">http://www.cyberciti.biz/faq/centos-rhel-6-install-serial-conso=
le/</a><br class=3D""></div><div
class=3D"gmail_quote"><br =
class=3D""></div><div class=3D"gmail_quote">So =
in /boot/grub/grub.conf </div><div
class=3D"gmail_quote"><br =
class=3D""></div><div class=3D"gmail_quote">a) right
before the =
"hiddenmenu" line:</div><div class=3D"gmail_quote"><div
=
class=3D"gmail_quote"><br class=3D""></div><div =
class=3D"gmail_quote">serial --unit=3D<b class=3D"">0
</b>--speed=3D19200 =
--word=3D8 --parity=3Dno --stop=3D1</div><div =
class=3D"gmail_quote">terminal --timeout=3D5 serial =
console</div></div><div class=3D"gmail_quote"><br
class=3D""></div><div =
class=3D"gmail_quote">b) At the end of kernel line added:</div><div
=
class=3D"gmail_quote">console=3Dtty0 console=3DttyS<b =
class=3D"">0</b>,19200n8<br
class=3D""></div><div =
class=3D"gmail_quote"><br class=3D""></div><div =
class=3D"gmail_quote">Added at the end of /etc/securetty the =
line</div><div class=3D"gmail_quote">ttyS0<br
class=3D""></div><div =
class=3D"gmail_quote"><br class=3D""></div><div
class=3D"gmail_quote">Only=
difference is that as I used ttyS0, the upstart configuration was not =
needed: the system after reboot was already listening on ttyS0<br =
class=3D""></div><div class=3D"gmail_quote">Creating
upstart config file =
generated 2 processes listening on ttyS0</div><div =
class=3D"gmail_quote"><br class=3D""></div><div
class=3D"gmail_quote"><br =
class=3D""></div><div class=3D"gmail_quote"><div
class=3D"gmail_quote">- =
CentOS 7.2</div><div class=3D"gmail_quote">created VM with virtio =
console enabled in options and basically following what described =
here</div><div class=3D"gmail_quote"><a =
href=3D"https://www.youtube.com/watch?v=3DSx2HRwFqG7o" =
class=3D"">https://www.youtube.com/watch?v=3DSx2HRwFqG7o<...
=
class=3D"gmail_quote"><br class=3D""></div><div
class=3D"gmail_quote">from=
default configuration I got after install:</div><div =
class=3D"gmail_quote"><br class=3D""></div><div
class=3D"gmail_quote">Add =
in /etc/default/grub "console=3DttyS0" in GRUB_CMDLINE_LINUX so that it =
is now:</div><div
class=3D"gmail_quote">GRUB_CMDLINE_LINUX=3D"<a =
href=3D"http://rd.lvm.lv/"
class=3D"">rd.lvm.lv</a>=3Dcentos/root <a =
href=3D"http://rd.lvm.lv/"
class=3D"">rd.lvm.lv</a>=3Dcentos/swap rhgb =
quiet console=3DttyS0"</div><div class=3D"gmail_quote"><br
=
class=3D""></div><div
class=3D"gmail_quote">grub2-mkconfig -o =
/boot/grub2/grub.cfg</div><div class=3D"gmail_quote"><br =
class=3D""></div><div class=3D"gmail_quote">reboot the
VM</div><div =
class=3D"gmail_quote"><br class=3D""></div><div
class=3D"gmail_quote">=46r=
om a client:</div><div class=3D"gmail_quote">$ ssh -t -p 2222 <a
=
href=3D"mailto:ovirt-vmconsole@ovirt.lutwyn.org" =
class=3D"">ovirt-vmconsole(a)ovirt.lutwyn.org</a>
connect</div><div =
class=3D"gmail_quote">Available Serial Consoles:</div><div =
class=3D"gmail_quote">00 =
c6desktop[68a82ada-a1d2-44d0-85b0-f3a08cc2f579]</div><div =
class=3D"gmail_quote">01 =
c7desktop[787f46f6-de4a-4b42-ba39-9609908c2905]</div><div =
class=3D"gmail_quote">SELECT> 01</div><div
class=3D"gmail_quote"><br =
class=3D""></div><div class=3D"gmail_quote">CentOS
Linux 7 =
(Core)</div><div class=3D"gmail_quote">Kernel
3.10.0-327.13.1.el7.x86_64 =
on an x86_64</div><div class=3D"gmail_quote"><br
class=3D""></div><div =
class=3D"gmail_quote">Host-006 login: root</div><div =
class=3D"gmail_quote">Password: </div><div
class=3D"gmail_quote">Last=
login: Tue May 3 01:34:57 on pts/0</div><div =
class=3D"gmail_quote">[root@Host-006 ~]# </div><div =
class=3D"gmail_quote">[root@Host-006 ~]# </div><div =
class=3D"gmail_quote">[root@Host-006 ~]# cat =
/etc/redhat-release</div><div class=3D"gmail_quote">CentOS Linux
release =
7.2.1511 (Core) </div><div
class=3D"gmail_quote">[root@Host-006 ~]# =
exit</div></div></div></div></div></blockquote><div><br
=
class=3D""></div>Hi Gianluca,</div><div>would you care to
extend <a =
href=3D"http://www.ovirt.org/documentation/admin-guide/serial-consol...
p/" =
class=3D"">http://www.ovirt.org/documentation/admin-guide/se...
etup/</a> with this useful info? I suppose there are quite a few people =
who would find handy some tips how to set it up for various guest =
OSes</div><div><br =
class=3D""></div><div>Thanks,</div><div>michal</div><div><br
=
class=3D""><blockquote type=3D"cite"
class=3D""><div class=3D""><div =
dir=3D"ltr" class=3D""><div
class=3D"gmail_extra"><div =
class=3D"gmail_quote"><div class=3D"gmail_quote"><br
class=3D""></div><div=
class=3D"gmail_quote">HIH,</div><div =
class=3D"gmail_quote">Gianluca</div></div></div></div>
_______________________________________________<br class=3D"">Users =
mailing list<br class=3D""><a href=3D"mailto:Users@ovirt.org"
=
class=3D"">Users(a)ovirt.org</a><br =
class=3D"">http://lists.ovirt.org/mailman/listinfo/users<br =
class=3D""></div></blockquote></div><br
class=3D""></body></html>=
--Apple-Mail=_BD09F72D-91EC-46F7-A2A6-B1736D2F6445--