Skip to contentSkip to conversation

Serial console funnies

DISCUSSION Patrick Caulfield 4 participants 6 messages Jan 25, 2005 – Jan 28, 2005

lore
Share & tools
lore
#0 lore raw

I have a dual-processor machine with no keyboard/monitor on it that I would like to use for Xen but I'm having problems getting the serial console to work properly.

I can see the system boot up into dom0 and I get the login prompt so it all looks setup correctly, but it won't take keyboard input - at least not into the login process on dom0. if I ssh into the box and try to read from the serial port I still get nothing.

However, if I do ^a^a^a I can interact with the Xen code, so the serial port itself is working, it just seems like it's not getting passed down to dom0.

I've had this from 2.0->2.0.3 and also with the latest unstable bk.

FWIW this is my grub entry:

title Xen (2.0/Linux 2.6.10)

        root (hd0,0)
        kernel /xen.gz com1=57600,8n1 dom0_mem=131072
        module /vmlinuz-2.6.10-xen0 ro root=/dev/sda5 console=ttyS0
Signature · 8 lines
patrick


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
#1 lore raw
Quoted 12 lines

I have a dual-processor machine with no keyboard/monitor on it that I would like to use for Xen but I'm having problems getting the serial console to work properly.

I can see the system boot up into dom0 and I get the login prompt so it all looks setup correctly, but it won't take keyboard input - at least not into the login process on dom0. if I ssh into the box and try to read from the serial port I still get nothing.

However, if I do ^a^a^a I can interact with the Xen code, so the serial port itself is working, it just seems like it's not getting passed down to dom0.

Quoted 8 lines

I've had this from 2.0->2.0.3 and also with the latest unstable bk.

FWIW this is my grub entry:

title Xen (2.0/Linux 2.6.10)

        root (hd0,0)
        kernel /xen.gz com1=57600,8n1 dom0_mem=131072
        module /vmlinuz-2.6.10-xen0 ro root=/dev/sda5 console=ttyS0

Are you running a getty on /dev/ttyS0 -- have a look in /etc/inittab. You'll probably need to edit /etc/securetty too. Setup is per standard Linux console.

Ian

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl

#2 lore raw
Quoted 4 lines · Ian Pratt

Are you running a getty on /dev/ttyS0 -- have a look in /etc/inittab. You'll probably need to edit /etc/securetty too. Setup is per standard Linux console.

Yes, there's a getty on there - I can see the login prompt. If I boot that partition using a "normal" Linux kernel it all works fine. I've had this machine on a serial console for ages.

Signature · 8 lines
patrick


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
#3 lore raw
In reply to Patrick Caulfield
Quoted 5 lines · Patrick Caulfield

I can see the system boot up into dom0 and I get the login prompt so it all looks setup correctly, but it won't take keyboard input - at least not into the login process on dom0. if I ssh into the box and try to read from the serial port I still get nothing.

I have had exactly this problem with every Xen 2.0 release I've tried. I am definitely running a getty in dom0; I get the actual login prompt.

Is your machine doing some sort of BIOS serial console redirection? My Dell PE1650 has this turned on, but "off after boot" according to the settings. As no one else had reported this I'd put the problem down to Dell weirdness.

Chris.

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl

#4 lore raw
Quoted 11 lines · Chris Andrews
Quoted 8 lines · Patrick Caulfield

I can see the system boot up into dom0 and I get the login prompt so it all
looks setup correctly, but it won't take keyboard input - at least not into the
login process on dom0. if I ssh into the box and try to read from the serial
port I still get nothing.

Quoted 7 lines

I have had exactly this problem with every Xen 2.0 release I've tried. I am definitely running a getty in dom0; I get the actual login prompt.

Is your machine doing some sort of BIOS serial console redirection? My Dell PE1650 has this turned on, but "off after boot" according to the settings. As no one else had reported this I'd put the problem down to Dell weirdness.

I don't think so - I don't remember seeing anything like that. mind you the box hasn't had a monitor on in in nearly a year now! It's not a DELL machine, it's a Western Scientific, fairly old by today's standards it's a dual PIII/750 on (I think) a VIA chipset.

Signature · 8 lines
patrick


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
#5 lore raw

Patrick Caulfield wrote on 26/01/05 08:58:

Quoted 9 lines · Chris Andrews
Quoted 2 lines

Is your machine doing some sort of BIOS serial console redirection? My Dell PE1650 has this turned on, but "off after boot" according to the settings. As no one else had reported this I'd put the problem down to Dell weirdness.

I don't think so - I don't remember seeing anything like that. mind you the box hasn't had a monitor on in in nearly a year now! It's not a DELL machine, it's a Western Scientific, fairly old by today's standards it's a dual PIII/750 on (I think) a VIA chipset.

Hmm, odd then. I tried adding CONFIG_SERIO_SERPORT, which was the only serial- or console-related difference between my .config and the current defconfig that I could see, but there was no difference.

I'm going to give the same 2.0.3 build a go on some different hardware when I get chance.

Chris.

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl