CentOS – Reloading a Kernel ‘Live’ in CentOS/RHEL 6

centos6kernelrhel6

When upgrading the kernel package on CentOS or RHEL 6, is it possible to load the new kernel without rebooting?

My gut tells me it's not, but if it were, it'd be handy – especially when compiling applications that require kernel modules (like VirtualBox, for example) that complain when the "wrong" kernel source is available (eg the running kernel is 2.6.2-100 but the upgraded one is 2.6.2-152).

Best Answer

No.

kexec will allow you to skip the firmware (BIOS/EFI) and bootloader steps of a standard restart, but this is not the same thing (though useful if you have a slow loading RAID card).

The closest you can get is loading and unloading kernel modules.