Solved

How to stop reboot after kernel panic?

Posted on 2006-07-19
6
578 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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.

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now