Welcome to the Linux Foundation Forum!

Workaround for capturing kernel panic message on Arch Linux (kdump allocation issue)

shresth38
shresth38 Posts: 2

Hi everyone,

I’m trying to capture a kernel panic message on my Arch Linux setup as part of a prerequisite for the LFX program. This isn’t so much about fully setting up kdump, but rather about finding a way to save the panic output.

I initially tried using simple-kdump, but when I boot into my standard Arch kernel I keep seeing: "[FAILED] Failed to start Setup kexec environment for simple-kdump".

From what I’ve read, this might be because the crash kernel isn’t actually getting the 512 MB I specified in the config. I’ve been triggering the panic intentionally by adding a panic() call into init/main.c of the kernel, just below console_init().

Could this be related to GRUB in any way? Is there any workaround or alternative method I can use to reliably log the panic output, given that kdump’s memory allocation is failing?

Please feel free to ask any questions about my setup or anything else.

Thanks in advance for any ideas!

Categories

Upcoming Training