27.12.2. Serial console output from para-virtualized guests
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:
-
Log in to your para-virtualized guest.
-
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=RHEL5_i386 console=xvc0
initrd /boot/initrd-2.6.18-92.el5xen.img
-
Reboot the para-virtualized guest.
You should now get kernel messages on the virt-manager "Serial Console" and/or "virsh console".
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:
# Log all guest console output (cf xm console)
XENCONSOLED_LOG_GUESTS=yes
Reboot the host to activate logging the guest serial console output.
Logs from the guest serial consoles are stored in the /var/log/xen/console
file.