kexec Fast Reboot

kexec is a handy tool which allows you to perform faster reboots. kexec works by using the existing kernel that is already in memory to boot again. The result is that you do not have to see the BIOS screen again, the new kernel will execute immediately after the system has halted.

To install kexec on a Debian/Ubuntu system, use the following commands:

apt-get install kexec-tools
dpkg-reconfigure kexec-tools

This will make kexec your default handler for reboots. Should you ever need to do a cold reboot again, you can use /sbin/coldreboot.

3 thoughts on “kexec Fast Reboot

  1. Hi.

    "dpkg-reconfigure kexec-tools" will ask 2 questions.

    First is to handle reboots. Of course "Yes".

    Second: Read GRUB configuration file to load the kernel?

    Which is proper? Yes or No?

    After that, in case that you want to load the kernel so you don't have to shutdown and powerup (long distance server in configuration), what would be the proper options to pass to kexec to load the kernel without issues to perform a reboot after?

  2. Compiling the kernel – II – Spatial Multiplexing

Leave a Reply