Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to stop reboot after kernel panic?

Posted on 2006-07-19
6
Medium Priority
?
601 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
  • 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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Suggested Courses
Course of the Month13 days, 7 hours left to enroll

963 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