Debugging kernel crashes using kdump

  1. Memory must be reserved for the crash kernel during booting of the first kernel. Kernel arguments can be provided like this:

    sudo rpm-ostree kargs --append='crashkernel=256M'

    More information on how to modify kargs via rpm-ostree.

  2. By default, the path in which the vmcore will be saved is /var/crash. It is also possible to write the dump over the network or to some other location on the local system by editing /etc/kdump.conf. For additional information, see kdump.conf(5) and the comments in /etc/kdump.conf and /etc/sysconfig/kdump.

  3. Enable the kdump systemd service.

    sudo systemctl enable kdump.service
  4. Reboot your system.

    sudo systemctl reboot
For additional information on how to test that kdump is properly armed and how to analyze the dump, refer to the kdump documentation for Fedora and the Linux kernel documentation on kdump.