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