From Fedora Project Wiki

Description

This test case verifies that a crash dump can be generated for a Fedora Xen DomU.


How to test

  1. 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.
  2. Inside the guest, run
    $> echo c > /proc/sysrq-trigger
  3. Once the domU has crashed, reboot it.
  4. Inside the guest, install the kernel debuginfo for the kernel, along with the crash utility.
  5. Copy the kernel core-file from the dom0 to the domU (or export it via NFS, etc.)
  6. Inside the guest, run
    crash /usr/lib/debug/../vmlinux /path/to/corefile
  7. Run a few crash commands, like bt -a, ps, etc.

Expected Results

  1. The guest should crash, and the dom0 should take over and dump a core.
  2. The crash utility should be able to recognize the domU core file and perform basic operations on it.