<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 03 May 2016, at 13:08, Gianluca Cecchi <<a href="mailto:gianluca.cecchi@gmail.com" class="">gianluca.cecchi@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote">Hello,</div><div class="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="gmail_quote"><br class=""></div><div class="gmail_quote">- CentOS 6.7</div><div class="gmail_quote">Basically what described in general here (but using ttyS0 instead ttyS1):</div><div class="gmail_quote"><a href="http://www.cyberciti.biz/faq/centos-rhel-6-install-serial-console/" class="">http://www.cyberciti.biz/faq/centos-rhel-6-install-serial-console/</a><br class=""></div><div class="gmail_quote"><br class=""></div><div class="gmail_quote">So in /boot/grub/grub.conf </div><div class="gmail_quote"><br class=""></div><div class="gmail_quote">a) right before the "hiddenmenu" line:</div><div class="gmail_quote"><div class="gmail_quote"><br class=""></div><div class="gmail_quote">serial --unit=<b class="">0 </b>--speed=19200 --word=8 --parity=no --stop=1</div><div class="gmail_quote">terminal --timeout=5 serial console</div></div><div class="gmail_quote"><br class=""></div><div class="gmail_quote">b) At the end of kernel line added:</div><div class="gmail_quote">console=tty0 console=ttyS<b class="">0</b>,19200n8<br class=""></div><div class="gmail_quote"><br class=""></div><div class="gmail_quote">Added at the end of /etc/securetty the line</div><div class="gmail_quote">ttyS0<br class=""></div><div class="gmail_quote"><br class=""></div><div class="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=""></div><div class="gmail_quote">Creating upstart config file generated 2 processes listening on ttyS0</div><div class="gmail_quote"><br class=""></div><div class="gmail_quote"><br class=""></div><div class="gmail_quote"><div class="gmail_quote">- CentOS 7.2</div><div class="gmail_quote">created VM with virtio console enabled in options and basically following what described here</div><div class="gmail_quote"><a href="https://www.youtube.com/watch?v=Sx2HRwFqG7o" class="">https://www.youtube.com/watch?v=Sx2HRwFqG7o</a></div><div class="gmail_quote"><br class=""></div><div class="gmail_quote">from default configuration I got after install:</div><div class="gmail_quote"><br class=""></div><div class="gmail_quote">Add in /etc/default/grub "console=ttyS0" in GRUB_CMDLINE_LINUX so that it is now:</div><div class="gmail_quote">GRUB_CMDLINE_LINUX="<a href="http://rd.lvm.lv/" class="">rd.lvm.lv</a>=centos/root <a href="http://rd.lvm.lv/" class="">rd.lvm.lv</a>=centos/swap rhgb quiet console=ttyS0"</div><div class="gmail_quote"><br class=""></div><div class="gmail_quote">grub2-mkconfig -o /boot/grub2/grub.cfg</div><div class="gmail_quote"><br class=""></div><div class="gmail_quote">reboot the VM</div><div class="gmail_quote"><br class=""></div><div class="gmail_quote">From a client:</div><div class="gmail_quote">$ ssh -t -p 2222 <a href="mailto:ovirt-vmconsole@ovirt.lutwyn.org" class="">ovirt-vmconsole@ovirt.lutwyn.org</a> connect</div><div class="gmail_quote">Available Serial Consoles:</div><div class="gmail_quote">00 c6desktop[68a82ada-a1d2-44d0-85b0-f3a08cc2f579]</div><div class="gmail_quote">01 c7desktop[787f46f6-de4a-4b42-ba39-9609908c2905]</div><div class="gmail_quote">SELECT> 01</div><div class="gmail_quote"><br class=""></div><div class="gmail_quote">CentOS Linux 7 (Core)</div><div class="gmail_quote">Kernel 3.10.0-327.13.1.el7.x86_64 on an x86_64</div><div class="gmail_quote"><br class=""></div><div class="gmail_quote">Host-006 login: root</div><div class="gmail_quote">Password: </div><div class="gmail_quote">Last login: Tue May 3 01:34:57 on pts/0</div><div class="gmail_quote">[root@Host-006 ~]# </div><div class="gmail_quote">[root@Host-006 ~]# </div><div class="gmail_quote">[root@Host-006 ~]# cat /etc/redhat-release</div><div class="gmail_quote">CentOS Linux release 7.2.1511 (Core) </div><div class="gmail_quote">[root@Host-006 ~]# exit</div></div></div></div></div></blockquote><div><br class=""></div>Hi Gianluca,</div><div>would you care to extend <a href="http://www.ovirt.org/documentation/admin-guide/serial-console-setup/" class="">http://www.ovirt.org/documentation/admin-guide/serial-console-setup/</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=""></div><div>Thanks,</div><div>michal</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><div class="gmail_quote"><br class=""></div><div class="gmail_quote">HIH,</div><div class="gmail_quote">Gianluca</div></div></div></div>
_______________________________________________<br class="">Users mailing list<br class=""><a href="mailto:Users@ovirt.org" class="">Users@ovirt.org</a><br class="">http://lists.ovirt.org/mailman/listinfo/users<br class=""></div></blockquote></div><br class=""></body></html>