From Fedora Project Wiki
Description
This test case verifies that a crash dump can be generated for a Fedora Xen DomU.
How to test
- Make sure your dom0 is configured to automatically dump core when a guest crashes. This is typically set in the /etc/xen/xend-config.sxp file; you'll need to change the parameter
#(enable-dump no)
to(enable-dump yes)
, and restart xend on the dom0. - Inside the guest, run
$> echo c > /proc/sysrq-trigger
- Once the domU has crashed, reboot it.
- Inside the guest, install the kernel debuginfo for the kernel, along with the crash utility.
- Copy the kernel core-file from the dom0 to the domU (or export it via NFS, etc.)
- Inside the guest, run
crash /usr/lib/debug/../vmlinux /path/to/corefile
- Run a few crash commands, like
bt -a
,ps
, etc.
Expected Results
- The guest should crash, and the dom0 should take over and dump a core.
- The crash utility should be able to recognize the domU core file and perform basic operations on it.