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