Solved

How to stop reboot after kernel panic?

Posted on 2006-07-19
6
587 Views
Last Modified: 2008-02-01
I am attempting to install xen-unstable. This appears to involve building a new kernel and booting from it.

The new kernel does not boot my machine. The boot starts, then I see some messages about loading various dm_ modules, then I see a failed attempt to locate any volume groups. This leads to not being able to find my root volume and shortly after this there is a kernel panic and the machine reboots.

How can I stop the reboot happening so that I can see what caused the panic? I know about the option to echo something into /proc, but this is not suitable as I don't get far enough through the boot process to be able to do this.

The machine started life as an FC5 machine, but is currently running the kernel from the latest xen-unstable. Or not running the kernel, as the case may be.
0
Comment
Question by:Anonymouslemming
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
6 Comments
 
LVL 22

Expert Comment

by:pjedmond
ID: 17141900
>I am attempting to install xen-unstable. This appears to involve building a new kernel and booting from it.

It does involve rebuilding a new kernel and booting from it:)

echo kernel.panic = 120 >> /etc/sysctl.conf

http://wiredgorilla.com/main/modules.php?name=News&file=article&sid=321

Assuming that the /etc/ directory is mounted ro at this stage of the boot process.

(   (()
(`-' _\
 ''  ''
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 17142003
If earlier in the boot process, then:

echo 120 > /proc/sys/kernel/panic

changes the setting on the fly. Yo usay you don't get far enough through the boot process - I presume that you get to the 'grub' interface? I presume that this was the 'trick' that you couldn't use?

Adding

debug -b 3

at the end of the linux line in the grub loader causes the boot process to pause at certain locations with some kernels. (Type exit to continue).

Alternatively, you could try user mode linux until the kernel is up an running correctly:

http://user-mode-linux.sourceforge.net/

(   (()
(`-' _\
 ''  ''


0
 
LVL 5

Author Comment

by:Anonymouslemming
ID: 17142289
It turns out that the correct solution is to append noreboot to the kernel line (since the kernel is the xen hypervisor, not the Linux kernel).

Anything in proc won't work because no filesystems are being mounted, and sysctl mainly just writes to proc.
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 17142350
You'll find that the Xen Hypervisor is in fact a Linux kernel, and although the file system is not mounted read/write, you can still access /proc after the initial part of the kernel booting process. I totally agree that the 'noreboot' on the kernel line is going to be the most elegant way to do it. . You need to put a Q in the Community Support TA for a points refund.

(   (()
(`-' _\
 ''  ''
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 17634936
PAQed with points refunded (500)

CetusMOD
Community Support Moderator
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question