[ovirt-users] ovirt-vmconsole serial

Michal Skrivanek michal.skrivanek at redhat.com
Wed May 4 03:47:17 EDT 2016


> On 03 May 2016, at 13:08, Gianluca Cecchi <gianluca.cecchi at gmail.com> wrote:
> 
> 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
> 
> - 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/ <http://www.cyberciti.biz/faq/centos-rhel-6-install-serial-console/>
> 
> So in /boot/grub/grub.conf 
> 
> a) right before the "hiddenmenu" line:
> 
> serial --unit=0 --speed=19200 --word=8 --parity=no --stop=1
> terminal --timeout=5 serial console
> 
> b) At the end of kernel line added:
> console=tty0 console=ttyS0,19200n8
> 
> Added at the end of /etc/securetty the line
> ttyS0
> 
> 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
> 
> 
> - CentOS 7.2
> created VM with virtio console enabled in options and basically following what described here
> https://www.youtube.com/watch?v=Sx2HRwFqG7o <https://www.youtube.com/watch?v=Sx2HRwFqG7o>
> 
> from default configuration I got after install:
> 
> Add in /etc/default/grub "console=ttyS0" in GRUB_CMDLINE_LINUX so that it is now:
> GRUB_CMDLINE_LINUX="rd.lvm.lv <http://rd.lvm.lv/>=centos/root rd.lvm.lv <http://rd.lvm.lv/>=centos/swap rhgb quiet console=ttyS0"
> 
> grub2-mkconfig -o /boot/grub2/grub.cfg
> 
> reboot the VM
> 
> From a client:
> $ ssh -t -p 2222 ovirt-vmconsole at ovirt.lutwyn.org <mailto:ovirt-vmconsole at ovirt.lutwyn.org> connect
> Available Serial Consoles:
> 00 c6desktop[68a82ada-a1d2-44d0-85b0-f3a08cc2f579]
> 01 c7desktop[787f46f6-de4a-4b42-ba39-9609908c2905]
> SELECT> 01
> 
> CentOS Linux 7 (Core)
> Kernel 3.10.0-327.13.1.el7.x86_64 on an x86_64
> 
> Host-006 login: root
> Password: 
> Last login: Tue May  3 01:34:57 on pts/0
> [root at Host-006 ~]# 
> [root at Host-006 ~]# 
> [root at Host-006 ~]# cat /etc/redhat-release
> CentOS Linux release 7.2.1511 (Core) 
> [root at 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

> 
> HIH,
> Gianluca
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20160504/252bab2d/attachment-0001.html>


More information about the Users mailing list