WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Serial Console Problem

To: "Andrew Lyon" <andrew.lyon@xxxxxxxxx>
Subject: Re: [Xen-users] Serial Console Problem
From: Luke S Crawford <lsc@xxxxxxxxx>
Date: 26 Sep 2008 20:57:18 -0400
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 26 Sep 2008 17:55:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <f4527be0809250716u73a1d44bk35b43a7d2503d8bf@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <f4527be0809250716u73a1d44bk35b43a7d2503d8bf@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4
"Andrew Lyon" <andrew.lyon@xxxxxxxxx> writes:
> I configured serial console on my system today by adding
> com1=115200,8n1 console=vga,com1 to my kernel line in grub:
> 
> title Xen 3.2.1 / Linux 2.6.21-xen
> root (hd0,0)
> kernel /xen.gz vtd=1 com1=115200,8n1 console=vga,com1
> module /vmlinuz-2.6.21-xen root=/dev/sda2
> 
> The xen bootup messages are logged to the serial and vga consoles, and
> initially the kernel messages are also displayed, but it stops after
> "Freeing unused kernel memory: 208k freed"

it appears the problem is that you have told Xen to use the serial console, but
you have not told Linux to use the serial console... this is consistent with
Xen outputting to the serial console, then a quiet serial console while
linux boots, then a working getty.

here is what my grub config looks like on my headless CentOS/Xen boxes:


serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
terminal serial console    

title CentOS (2.6.18-53.1.21.el5xen)
        root (hd0,0)
        kernel /boot/xen.gz-2.6.18-53.1.21.el5 dom0_mem=512M com1=115200,8n1
        module /boot/vmlinuz-2.6.18-53.1.21.el5xen selinux=0 ro root=/dev/md0 
console=ttyS0,115200n8
        module /boot/initrd-2.6.18-53.1.21.el5xen.img



the part you are missing is the console=ttyS0,115200n8   on the module line
for the Linux kernel.   add that and I bet it will work.  

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users