5cf148
Kdump now works on live images with some manual configurations. Here is the step
5cf148
by step guide.
5cf148
5cf148
1. Enable crashkernel reservation
5cf148
5cf148
Since there isn't any config file that can be used to configure kernel
5cf148
parameters for live images before booting them, we have to append 'crashkernel'
5cf148
argument in boot menu every time we boot a live image.
5cf148
5cf148
2. Change dump target in /etc/kdump.conf
5cf148
5cf148
When kdump kernel boots in a live environment, the default target /var/crash is
5cf148
in RAM so you need to change the dump target to an external disk or a network
5cf148
dump target.
5cf148
5cf148
Besides, make sure that "default dump_to_rootfs" is not specified.
5cf148
5cf148
3. Start kdump service
5cf148
5cf148
    $ kdumpctl start
5cf148
5cf148
4. Trigger a kdump test
5cf148
5cf148
    $ echo 1 > /proc/sys/kernel/sysrq
5cf148
    $ echo c > /proc/sysrq-trigger