Installation guide

title Red Hat Enterprise Linux 5 i386 Xen (2.6.18-92.el5xen)
root (hd0, 8)
kernel /boot/xen.gz-2.6.18-92.el5 com1=115200,8n1
module /boot/vmlinuz-2.6.18-92.el5xen ro root=LABEL=VG_i386 console=tty0
console=ttyS0,115200
module /boot/initrd-2.6.18-92.el5xen.img
If your serial console is on com2, modify /boot/grub/grub.conf by inserting the lines
com2=115200,8n1 console=com2L, console=tty0 and console=ttyS0,115200 where
shown.
title Red Hat Enterprise Linux 5 i386 Xen (2.6.18-92.el5xen)
root (hd0, 8)
kernel /boot/xen.gz-2.6.18-92.el5 com2=115200,8n1 console=com2L
module /boot/vmlinuz-2.6.18-92.el5xen ro root=LABEL=VG_i386 console=tty0
console=ttyS0,115200
module /boot/initrd-2.6.18-92.el5xen.img
Save the changes and reboot the host. The hypervisor outputs serial data on the serial (com1, com2
and so on) you selected in the previous step.
Note the example using the com2 port, the parameter console=ttyS0 on the vmlinuz line us used.
The behavior of every port being used as console=ttyS0 is not standard Linux behavior and is
specific to the Xen environment.
35.11.2. Xen serial console out put from para-virt ualiz ed guest s
This section describes how to configure a virtualized serial console for Red Hat Enterprise Linux
para-virtualized guests.
Serial console output from para-virtualized guests can be received using the "virsh console" or
in the "Serial Console" window of virt-manager. Set up the virtual serial console using this
procedure:
1. Log in to your para-virtualized guest.
2. Edit /boot/grub/grub.conf as follows:
Red Hat Enterprise Linux 5 i386 Xen (2.6.18-92.el5xen)
root (hd0, 0) kernel /boot/vmlinuz-2.6.18-92.el5xen ro root=LABEL=VG_i386
console=xvc0
initrd /boot/initrd-2.6.18-92.el5xen.img
3. Reboot the para-virtualized guest.
You should now get kernel messages on the virt-manager "Serial Console" and "virsh console".
Log g in g t h e p ara- virt u aliz ed d o main serial co n so le ou tp u t
The Xen daemon(xend) can be configured to log the output from serial consoles of para-virtualized
guests.
To configure xend edit /etc/sysconfig/xend. Change the entry:
# Log all guest console output (cf xm console)
#XENCONSOLED_LOG_GUESTS=no
to:
Chapt er 35. T roub leshoo t ing Xen
337