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