xm console/virsh console support on full-virtualized VM

After successful installation of RHEL/CentOS server you can add serial console support for remote terminal.

Edit DomU virtual machine configuration file:

On Xen:

xen-DomU.cfg
builder='hvm'
vnc=1
serial='pty'

On KVM-QEMU (xml):

qemu-DomU.cfg
<serial type='pty'>
   <target port='0'/>
</serial>
<console type='pty'>
   <target port='0'/>
</console>

Inside virtual node DomU:

On

/boot/grub/menu.lst
serial --unit=0 --speed=9600
terminal --timeout=5 serial console
title CentOS Linux (2.6.32-71.29.1.el6.x86_64)
 root (hd0,0)
 kernel /vmlinuz-2.6.32-71.29.1.el6.x86_64 ro root=/dev/mapper/VolGroup-lv_root rd_LVM_LV=VolGroup/lv_root rd_LVM_LV=VolGroup/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us console=ttyS0 crashkernel=auto rhgb quiet

Also please check:

/etc/securetty
ttyS0

Author: GergunD

Leave a Reply