18.6. Solucionando Problemas com o Console Serial
O console serial pode auxiliar na solução de problemas difíceis. Se o kernel de Virtualização travar e o hypervisor gerar um erro, não há nenhuma forma de rastrear o erro em uma máquina local. No entanto, o console serial permite que você capture-o em uma máquina remota. Você deve configurar o convidado Xen para enviar dados ao console serial. Depois, você deve configurar o convidado remoto para capturar os dados. Para isso, você deve modificar estas opções no arquivo
grub.conf para habilitar um console serial de 38400-bps em com1 /dev/ttyS0:
title Red Hat Enterprise Linix (2.6.18-8.2080_RHEL5xen0)
root (hd0,2)
kernel /xen.gz-2.6.18-8.el5 com1=38400,8n1
module /vmlinuz-2.618-8.el5xen ro root=LABEL=/rhgb quiet console=xvc console=tty xencons=xvc
module /initrd-2.6.18-8.el5xen.img
The
sync_console can help determine a problem that causes hangs with asynchronous hypervisor console output, and the "pnpacpi=off" works around a problem that breaks input on the serial console. The parameters "console=ttyS0" and "console=tty" means that kernel errors get logged with on both the normal VGA console and on the serial console. Then you can install and set up ttywatch to capture the data on a remote host connected by a standard null-modem cable. For example, on the remote host you could type:
ttywatch --name myhost --port /dev/ttyS0
Isto canaliza a saída desde
/dev/ttyS0 para dentro do arquivo /var/log/ttywatch/myhost.log .