Lily Huang
2006-Jun-30 20:09 UTC
[Xen-devel] How to dump xen0 kernel output to a serial console?
Hello, I am running into xen0 crash. Every time xen0 crashes, it will dump some error messages. Unfortunately, before I can read the details, the system already restarted. Is there anyway to dump the error message to a different serial console? How to debug xen0? I mean, xen0, not xen itself. Please give me some ideas or direct me to the right place to read the documentation. Many thanks! lily _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Lily Huang
2006-Jun-30 21:18 UTC
[Xen-devel] Re: How to dump xen0 kernel output to a serial console?
Below is my grub setting: -------------------------------------------------------------------------- serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 #terminal --timeout=5 serial console title Xen-unstable / XenLinux 2.6 root (hd0,0) kernel /boot/xen.gz dom0_mem=512000 console=vga com1=115200,8n1 sync_console module /boot/vmlinuz-2.6-xen0 root=/dev/hda1 ro console=tty0 console=ttyS0 -------------------------------------------------------------------------- If I enable the "terminal --timeout=5 serial console", I can see the grub interface from the console, but after I chose the boot option, I didn''t further console dump out. What''s wrong with my setting? Help! Please! lily On 6/30/06, Lily Huang <ushuanglily@gmail.com> wrote:> > Hello, > > I am running into xen0 crash. Every time xen0 crashes, it will dump some > error messages. Unfortunately, before I can read the details, the system > already restarted. Is there anyway to dump the error message to a different > serial console? > > How to debug xen0? I mean, xen0, not xen itself. > > Please give me some ideas or direct me to the right place to read the > documentation. > > Many thanks! > > lily >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Lily Huang
2006-Jun-30 21:19 UTC
[Xen-devel] Re: How to dump xen0 kernel output to a serial console?
BTW: I used minicom to read the console output. Can the problem be related to minicom? It did display grub output though. lily On 6/30/06, Lily Huang <ushuanglily@gmail.com> wrote:> > Below is my grub setting: > > -------------------------------------------------------------------------- > serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 > #terminal --timeout=5 serial console > > title Xen-unstable / XenLinux 2.6 > root (hd0,0) > kernel /boot/xen.gz dom0_mem=512000 console=vga com1=115200,8n1 > sync_console > module /boot/vmlinuz-2.6-xen0 root=/dev/hda1 ro console=tty0 > console=ttyS0 > -------------------------------------------------------------------------- > > If I enable the "terminal --timeout=5 serial console", I can see the grub > interface from the console, but after I chose the boot option, > I didn''t further console dump out. > > What''s wrong with my setting? Help! Please! > > lily > > > > > On 6/30/06, Lily Huang <ushuanglily@gmail.com> wrote: > > > > Hello, > > > > I am running into xen0 crash. Every time xen0 crashes, it will dump some > > error messages. Unfortunately, before I can read the details, the system > > already restarted. Is there anyway to dump the error message to a different > > serial console? > > > > How to debug xen0? I mean, xen0, not xen itself. > > > > Please give me some ideas or direct me to the right place to read the > > documentation. > > > > Many thanks! > > > > lily > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Dugger, Donald D
2006-Jun-30 21:20 UTC
RE: [Xen-devel] How to dump xen0 kernel output to a serial console?
Lily- Well, the `grub'' stanza I use is: title Xen-ia32 Unstable /dev/sda5 root (hd0,0) kernel /xen-3.0.gz dom0_mem=524288 com1=115200,8n1 console=com1,vga module /vmlinuz-2.6-xen0 root=/dev/sda5 ro console=ttyS0,115200 module /initrd-2.6-xen0 Using this, both the output from the Xen hypervisor and the Dom0 Linux kernel come out on the serial port. Run a cross over cable from that port to another machine, run `minicom'' to capture the output and you can have `minicom'' save everything to a file. -- Don Dugger "Censeo Toto nos in Kansa esse decisse." - D. Gale Donald.D.Dugger@intel.com Ph: (303)440-1368 ________________________________ From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Lily Huang Sent: Friday, June 30, 2006 2:10 PM To: xen-devel Subject: [Xen-devel] How to dump xen0 kernel output to a serial console? Hello, I am running into xen0 crash. Every time xen0 crashes, it will dump some error messages. Unfortunately, before I can read the details, the system already restarted. Is there anyway to dump the error message to a different serial console? How to debug xen0? I mean, xen0, not xen itself. Please give me some ideas or direct me to the right place to read the documentation. Many thanks! lily _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Kamble, Nitin A
2006-Jun-30 21:22 UTC
RE: [Xen-devel] Re: How to dump xen0 kernel output to a serial console?
I use this in my the grub, and it is working for me. It shows both Xen & dom0 console output on the serial port. serial --unit=0 --speed=115200 --parity=no --stop=1 terminal --timeout=10 serial console title Xen64 root (hd0,2) kernel /boot/xen.gz com1=115200,8n1 sync_console module /boot/vmlinuz-2.6-xen root=/dev/sda3 ro console=ttyS0,115200n8 console=tty module /boot/initrd-2.6-xen.img Thanks & Regards, Nitin ------------------------------------------------------------------------ ----------- Open Source Technology Center, Intel Corp ________________________________ From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Lily Huang Sent: Friday, June 30, 2006 2:18 PM To: xen-devel Subject: [Xen-devel] Re: How to dump xen0 kernel output to a serial console? Below is my grub setting: ------------------------------------------------------------------------ -- serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 #terminal --timeout=5 serial console title Xen-unstable / XenLinux 2.6 root (hd0,0) kernel /boot/xen.gz dom0_mem=512000 console=vga com1=115200,8n1 sync_console module /boot/vmlinuz-2.6-xen0 root=/dev/hda1 ro console=tty0 console=ttyS0 ------------------------------------------------------------------------ -- If I enable the "terminal --timeout=5 serial console", I can see the grub interface from the console, but after I chose the boot option, I didn''t further console dump out. What''s wrong with my setting? Help! Please! lily On 6/30/06, Lily Huang <ushuanglily@gmail.com> wrote: Hello, I am running into xen0 crash. Every time xen0 crashes, it will dump some error messages. Unfortunately, before I can read the details, the system already restarted. Is there anyway to dump the error message to a different serial console? How to debug xen0? I mean, xen0, not xen itself. Please give me some ideas or direct me to the right place to read the documentation. Many thanks! lily _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Dugger, Donald D
2006-Jun-30 21:24 UTC
RE: [Xen-devel] Re: How to dump xen0 kernel output to a serial console?
Lily- The problem is the `console=tty0'' parameter, remove that and things should work properly. When you supply 2 console parameters the kernel has to choose which one to use and it never picks the one I want in that situation :-) -- Don Dugger "Censeo Toto nos in Kansa esse decisse." - D. Gale Donald.D.Dugger@intel.com Ph: (303)440-1368 ________________________________ From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Lily Huang Sent: Friday, June 30, 2006 3:18 PM To: xen-devel Subject: [Xen-devel] Re: How to dump xen0 kernel output to a serial console? Below is my grub setting: ------------------------------------------------------------------------ -- serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 #terminal --timeout=5 serial console title Xen-unstable / XenLinux 2.6 root (hd0,0) kernel /boot/xen.gz dom0_mem=512000 console=vga com1=115200,8n1 sync_console module /boot/vmlinuz-2.6-xen0 root=/dev/hda1 ro console=tty0 console=ttyS0 ------------------------------------------------------------------------ -- If I enable the "terminal --timeout=5 serial console", I can see the grub interface from the console, but after I chose the boot option, I didn''t further console dump out. What''s wrong with my setting? Help! Please! lily On 6/30/06, Lily Huang <ushuanglily@gmail.com> wrote: Hello, I am running into xen0 crash. Every time xen0 crashes, it will dump some error messages. Unfortunately, before I can read the details, the system already restarted. Is there anyway to dump the error message to a different serial console? How to debug xen0? I mean, xen0, not xen itself. Please give me some ideas or direct me to the right place to read the documentation. Many thanks! lily _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Lily Huang
2006-Jun-30 21:49 UTC
Re: [Xen-devel] Re: How to dump xen0 kernel output to a serial console?
Yes. The problem was `console=tty0''. Many thanks!!! I really appreciated the friendly and helpful community! lily On 6/30/06, Dugger, Donald D <donald.d.dugger@intel.com> wrote:> > Lily- > > The problem is the `console=tty0'' parameter, remove that and things should > work properly. When you supply 2 console parameters the kernel has to > choose which one to use and it never picks the one I want in that situation > :-) > > > -- > Don Dugger > "Censeo Toto nos in Kansa esse decisse." - D. Gale > Donald.D.Dugger@intel.com > Ph: (303)440-1368 > > > ------------------------------ > *From:* xen-devel-bounces@lists.xensource.com [mailto: > xen-devel-bounces@lists.xensource.com] *On Behalf Of *Lily Huang > *Sent:* Friday, June 30, 2006 3:18 PM > *To:* xen-devel > > *Subject:* [Xen-devel] Re: How to dump xen0 kernel output to a serial > console? > > Below is my grub setting: > > -------------------------------------------------------------------------- > serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 > #terminal --timeout=5 serial console > > title Xen-unstable / XenLinux 2.6 > root (hd0,0) > kernel /boot/xen.gz dom0_mem=512000 console=vga com1=115200,8n1 > sync_console > module /boot/vmlinuz-2.6-xen0 root=/dev/hda1 ro console=tty0 > console=ttyS0 > -------------------------------------------------------------------------- > > If I enable the "terminal --timeout=5 serial console", I can see the grub > interface from the console, but after I chose the boot option, > I didn''t further console dump out. > > What''s wrong with my setting? Help! Please! > > lily > > > > On 6/30/06, Lily Huang <ushuanglily@gmail.com> wrote: > > > Hello, > > > > I am running into xen0 crash. Every time xen0 crashes, it will dump some > > error messages. Unfortunately, before I can read the details, the system > > already restarted. Is there anyway to dump the error message to a different > > serial console? > > > > How to debug xen0? I mean, xen0, not xen itself. > > > > Please give me some ideas or direct me to the right place to read the > > documentation. > > > > Many thanks! > > > > lily > > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel