Repository navigation
The first release of kmorph, which transforms a running multikernel Linux machine from one kernel into another without a reboot.
A second kernel, the successor, is armed beside the kernel running the machine, the predecessor, and takes the machine over from it: its CPUs, its memory and its devices.
Requires the multikernel Linux kernel v7.0-mk6.
Highlights
- Survive a kernel crash. When the predecessor panics or hangs, the successor notices the silence, fences the predecessor's CPUs and carries on running the machine. No reboot, no operator, about one second from detection to a running successor.
- Upgrade the kernel without a reboot.
kmorph upgradehands a healthy machine to a successor running the new kernel, after freezing every writable filesystem so the successor mounts them with nothing in flight. - Kernel after kernel. The successor becomes the machine's kernel and can arm a successor of its own, for as many generations as the machine runs.
- Services that never stop. Services named in
standbystart inside the successor while it is armed and keep running through the takeover, instead of restarting after it. - Reachable right away. The successor puts the machine's addresses and routes back on the adopted NICs as soon as it owns them, without waiting for the network manager or DHCP.
- Crash dumps kdump tools can read. The predecessor's memory can be kept as an ELF vmcore with every CPU's registers and VMCOREINFO, ready for
crashandmakedumpfile. - A console throughout. The successor's kernel messages reach a serial line or the screen, a BMC's remote KVM included, before and after the takeover.
- Distro integration. A systemd service arms at boot, and a kernel hook rebuilds the successor image for every kernel the package manager installs, with dracut or initramfs-tools.
Install
Packages for x86-64 and arm64 are attached below. Both programs are statically linked, so the packages do not depend on the distribution's libc.
sudo apt install ./kmorph_0.1.0_amd64.deb # Debian, Ubuntu
sudo dnf install ./kmorph-0.1.0-1.x86_64.rpm # Fedora, RHELkmorph requires the multikernel Linux kernel v7.0-mk6. See the requirements and getting started in the README.