Flavio Curti
2006-Jun-09 08:01 UTC
[Xen-users] Problem using the serial console on my Server
Hello I run Xen 3.0 on debian stable. The Hardware Platform is a Intel Dual Xeon Server Board (SE7520JR2) using the advanced management console. The Advanced Management Console provides a console over serial/telnet. Now my Problem is using this console. I add com2=auto console=com2 to my xen kernel grub configuration. Then I get Xen and dom0s boot output on the serial console. (without this I don''t get any output on the serial con). However I can not get a getty to run on the serial port. The linux kernel only finds one serial line on bootup, I suspect that xen takes the second one. When I boot a plain linux kernel I get a login prompt on the console. (Even without specifying a console=ttyS1 on the kernel param line) Can anyone help me getting a login prompt on the serial console? Thank you and kind regards Flavio -- http://no-way.org/~fcu/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Steve Kemp
2006-Jun-09 08:11 UTC
Re: [Xen-users] Problem using the serial console on my Server
On Fri, Jun 09, 2006 at 10:01:46AM +0200, Flavio Curti wrote:> When I boot a plain linux kernel I get a login prompt on the console. > (Even without specifying a console=ttyS1 on the kernel param line) > > Can anyone help me getting a login prompt on the serial console?Using grub I have the following options set: # # serial options: # make sure that we have serial access so that bytemark magic works. # serial --unit=0 --speed=115200 terminal --timeout=10 serial console default 0 timeout 5 Then for Xen I have : ## ## Steve: Added Xen kernel. ## title Xen 3.0 / XenLinux 2.6 kernel /boot/xen.gz com1=115200,8n1 module /boot/xen-linux-2.6.12.6-xen console=ttyS0,115200 max_loop=255 module /boot/xen-modules-2.6.12.6-xen The combination of both of these seems sufficient to have serial access from bootup -> login. I hope that helps. Steve -- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Flavio Curti
2006-Jun-09 08:59 UTC
Re: [Xen-users] Problem using the serial console on my Server
Hi Steve Thank you for your suggestions. On Fri, Jun 09, 2006 at 09:11:05AM +0100, Steve Kemp wrote:> On Fri, Jun 09, 2006 at 10:01:46AM +0200, Flavio Curti wrote: > > > When I boot a plain linux kernel I get a login prompt on the console. > > (Even without specifying a console=ttyS1 on the kernel param line) > > > > Can anyone help me getting a login prompt on the serial console? > > Using grub I have the following options set:I get grubs output on the serial console. I also get the XEN and dom0 kernel output on the serial console. The only thing I can''t get is a login prompt. That''s because ttyS1 is not detected by the kernel. I suspect that xen is using ttyS1 and disabling the kernel from detecting it... Kind regards and thank you Flavio -- http://no-way.org/~fcu/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Did changed the settings in your /etc/inittab? You need to spawn a getty for your serial ports. Take a look at this file, you might have examples for your distribution there. For gentoo it is: s0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100 s1:12345:respawn:/sbin/agetty 9600 ttyS1 vt100 Regards Arnd Flavio Curti schrieb:> Hi Steve > > Thank you for your suggestions. > > On Fri, Jun 09, 2006 at 09:11:05AM +0100, Steve Kemp wrote: >> On Fri, Jun 09, 2006 at 10:01:46AM +0200, Flavio Curti wrote: >> >>> When I boot a plain linux kernel I get a login prompt on the console. >>> (Even without specifying a console=ttyS1 on the kernel param line) >>> >>> Can anyone help me getting a login prompt on the serial console? >> Using grub I have the following options set: > > I get grubs output on the serial console. I also get the XEN and dom0 > kernel output on the serial console. The only thing I can''t get is a > login prompt. > > That''s because ttyS1 is not detected by the kernel. I suspect that xen > is using ttyS1 and disabling the kernel from detecting it... > > Kind regards and thank you > > Flavio > > -- > http://no-way.org/~fcu/ > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Flavio Curti
2006-Jun-09 12:04 UTC
Re: [Xen-users] Problem using the serial console on my Server
Hello Arnd On Fri, Jun 09, 2006 at 11:56:31AM +0200, Arnd wrote:> Did changed the settings in your /etc/inittab? You need to spawn a getty > for your serial ports. Take a look at this file, you might have examples > for your distribution there. For gentoo it is:This is exactly the Problem. I don''t have a serial port to start a getty on. The kernel detects only one of the two serial ports. I think this is because of Xen using the second one and making it unavailable to the kernel later on. Kind regards Flavio -- http://no-way.org/~fcu/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mailing-Lists-Catch-All-Account
2006-Jun-09 23:12 UTC
Re: [Xen-users] Problem using the serial console on my Server
Here''s a link to a HOWTO doc, if not googled already... :) http://www.vanemery.com/Linux/Serial/serial-console.html In my case, I use serial line rate "115200" instead of the different rates listed in the above doc. On 6/9/06, Arnd <m_list@eshine.de> wrote:> > Hi > > Did changed the settings in your /etc/inittab? You need to spawn a getty > for your serial ports. Take a look at this file, you might have examples > for your distribution there. For gentoo it is: > > s0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100 > s1:12345:respawn:/sbin/agetty 9600 ttyS1 vt100 > > Regards > Arnd > > Flavio Curti schrieb: > > Hi Steve > > > > Thank you for your suggestions. > > > > On Fri, Jun 09, 2006 at 09:11:05AM +0100, Steve Kemp wrote: > >> On Fri, Jun 09, 2006 at 10:01:46AM +0200, Flavio Curti wrote: > >> > >>> When I boot a plain linux kernel I get a login prompt on the console. > >>> (Even without specifying a console=ttyS1 on the kernel param line) > >>> > >>> Can anyone help me getting a login prompt on the serial console? > >> Using grub I have the following options set: > > > > I get grubs output on the serial console. I also get the XEN and dom0 > > kernel output on the serial console. The only thing I can''t get is a > > login prompt. > > > > That''s because ttyS1 is not detected by the kernel. I suspect that xen > > is using ttyS1 and disabling the kernel from detecting it... > > > > Kind regards and thank you > > > > Flavio > > > > -- > > http://no-way.org/~fcu/ > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users