配置XEN虚拟机Kernel core dump

配置XEN虚拟机kernel dumps

  • 修改/etc/xen/xend-config.xsp

(enable-dump no)

修改成

(enable-dump yes)

默认dump文件存储位置配置 (dump-path '/var/xen/dump')

  • 修改vm配置文件的需要特性 - 编辑 /etc/xen/images/vm/<vm name>

on_crash=”coredump-restart” or "coredump-destroy"
  • 以root身份重启xend

service xend restart
  • 测试配置

以root身份连接到vm控制台,并使用root登录

xm console <vm name>

在虚拟机内部执行如下命令

modprobe crasher call_panic=1

此时,在XEN host主机运行

/var/xen/dump目录下即生成虚拟机core文件

Windows虚拟机的core dump参考Troubleshooting Virtual Machine CrashesWindows Bugcheck Analysis

检查core文件对应内核版本

输出

参考

Last updated

Was this helpful?