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: "Luke S Crawford" <lsc@xxxxxxxxx>
Subject: Re: [Xen-users] Serial Console Problem
From: "Andrew Lyon" <andrew.lyon@xxxxxxxxx>
Date: Mon, 29 Sep 2008 14:43:15 +0100
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 29 Sep 2008 06:44:00 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=5DEH0+GO4FOsesO8KK9kfYD+4DM6PU6fnD+VCU9W508=; b=eQeCcN9SW4iEKxIN2FDZZTPj9Dvv7SiI5jdyddzqMilXRmBqi6kAeHcJ1Nw8nb1GWy N85xvVne2LT4SnX0tp1oEPSqboP5P73SnmylX0uSIaIeTBWZNTJSwrolCjvdjMsViSF0 P4Jj5dWemeJwU88KW9Ph9riZB4j9P5+nneZTs=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=lejWJc9UAzO5p1T/yQb9ZHaXRh7cRyRHiS9a0R+vr36W/UQAh9MTJZBJOz27JdzN/c RKju6a9gfbwGeRnBwDqDUyqVnoQrgJlHg0/IdswenIb0ds1QyHB/tSOPC0JFOtd21+19 FvUrFDDoRy7nngXYg0p05HmKfIuZQs5teWP6c=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <m3hc82jtht.fsf@xxxxxxxxxxxxxxxxxx>
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> <m3hc82jtht.fsf@xxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Sat, Sep 27, 2008 at 1:57 AM, Luke S Crawford <lsc@xxxxxxxxx> wrote:
> "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.

You are correct, I did not tell linux about the serial console, but
some of the linux kernel messages did appear on the serial console so
I assumed that it had been auto detected, I tried adding
console=ttyS0,1152008n1 to the linux kernel parameters and that made
the serial console work correctly, but I noticed in the dmesg that the
Xen console is detected as xvc0 "console [xvc0] enabled" and there was
no ttyS0 device on which to run a getty,  so I changed the device to
xvc0 for both the kernel console and the getty and that also works.

Thanks for your help
Andy




>
> 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