Martin Kraus
2010-Feb-10 19:31 UTC
[Xen-users] xen lenny 3.2.1, setting serial output prevents linux init to start
services Reply-To: X-Operatin-System: 2.6.33-rc7-1 i686 GNU/Linux X-PGP-Key: http://martin.infonet.cz/pub/martin_kraus_pubkey.asc X-PGP-KeyID: B792A430 X-PGP-Keyservers: hkp://pgp.ms.mff.cuni.cz ldap://keyserver.pgp.com Hi. I''ve installed debian lenny with grub legacy. It works fine when output is set to vga. It works fine even when I set grub,linux kernel and getty to serial output. But when setting xen to output to serial port, linux doesn''t start most of the services (probably nothing in rcS, rc2). Boot ends with getty running, so I''m able to log in. I have the same serial redirection working on another server with xen 3.0.3 from etch and it works as expected. thanks for any help mk _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-Feb-11 02:50 UTC
Re: [Xen-users] xen lenny 3.2.1, setting serial output prevents linux init to start
On Thu, Feb 11, 2010 at 2:31 AM, Martin Kraus <lists_mk@wujiman.net> wrote:> Hi. I''ve installed debian lenny with grub legacy. It works fine when output is > set to vga. It works fine even when I set grub,linux kernel and getty to serial output. > But when setting xen to output to serial port, linux doesn''t start most of the > services (probably nothing in rcS, rc2). Boot ends with getty running, so I''m > able to log in.How do you get xen to output to serial port? Here''s what I use to get both xen and dom0 output on HP ILO virtual serial port, which is recognized as second serial port by the server. title Red Hat Enterprise Linux Server (2.6.18-164.2.1.el5xen) root (hd0,0) kernel /xen.gz-3.4.1 com2=115200,8n1 console=vga,com2 module /vmlinuz-2.6.18-164.2.1.el5xen ro root=/dev/rootvg/rootlv console=vga console=ttyS1 module /initrd-2.6.18-164.2.1.el5xen.img and I use this entry on inittab co:2345:respawn:/sbin/agetty console 115200 vt100-nav to tell the truth, I''m not really sure about the console line part on "module /vmlinuz", but since it works I just leave it as it is :D See also http://www.cl.cam.ac.uk/research/srg/netos/xen/readmes/user/ -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Martin Kraus
2010-Feb-11 03:03 UTC
Re: [Xen-users] xen lenny 3.2.1, setting serial output prevents linux init to start
On Thu, Feb 11, 2010 at 09:50:11AM +0700, Fajar A. Nugraha wrote:> On Thu, Feb 11, 2010 at 2:31 AM, Martin Kraus <lists_mk@wujiman.net> wrote: > > Hi. I''ve installed debian lenny with grub legacy. It works fine when output is > > set to vga. It works fine even when I set grub,linux kernel and getty to serial output. > > But when setting xen to output to serial port, linux doesn''t start most of the > > services (probably nothing in rcS, rc2). Boot ends with getty running, so I''m > > able to log in. > > How do you get xen to output to serial port? > Here''s what I use to get both xen and dom0 output on HP ILO virtual > serial port, which is recognized as second serial port by the server. > > title Red Hat Enterprise Linux Server (2.6.18-164.2.1.el5xen) > root (hd0,0) > kernel /xen.gz-3.4.1 com2=115200,8n1 console=vga,com2 > module /vmlinuz-2.6.18-164.2.1.el5xen ro root=/dev/rootvg/rootlv > console=vga console=ttyS1 > module /initrd-2.6.18-164.2.1.el5xen.imgI''m using pretty much the same settings except for first serial port (com1,ttyS0). these settings work on a different computer quite well. what bothers me is that on this computer it somehow influences init running on dom0. I don''t see why. mk _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-Feb-11 03:19 UTC
Re: [Xen-users] xen lenny 3.2.1, setting serial output prevents linux init to start
On Thu, Feb 11, 2010 at 10:03 AM, Martin Kraus <lists_mk@wujiman.net> wrote:> I''m using pretty much the same settings except for first serial port > (com1,ttyS0).Where did you tell getty to spawn? console? ttyS0? tty0? Try setting it to console only. IIRC the setting above will make xen takeover the serial port, making it unaccessible directly to dom0. Perhaps some part of your init script is trying to write to ttyS0, which is unavailable, thus causing the problem you mentioned. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users