How to get xen whole-machine dump image and analyse it
prepair
enable kexec
- apply kexec patches to xen source tree. latest patches are available in xen-devel list. (It maybe merged into xen 3.0.3)
prepair xen-syms, vmlinux
copy xen executable binary with symbols (when you compile, it is made at xen/xen-syms) and vmlinux used for domain 0
get coredump
load kdump kernel
1. append followings to xen boot args
kdump_megabytes=64 kdump_megabytes_base=32
2. on dom0, load kdump kernel, take a dump.
This is same as linux kdump usage. http://lse.sourceforge.net/kdump/
get a dump image
echo c > /proc/sysrq-trigger
after reboot, copy /proc/vmcore to core file.
cp /proc/vmcore /vmcore
analysis
domain
$ crash xen.syms vmlinux vmcore
xen
$ crash xen.syms vmcore
