I was able to find what appears might be a correct answer from ChatGPT.
To get kexec working with MAAS, you need to follow these steps:
- Install the kexec-tools package on the MAAS server using the following command:
sudo apt-get install kexec-tools
- Make sure that the kexec kernel image is present in the MAAS images. If not, download the kexec kernel image and add it to the MAAS images.
- Edit the MAAS configuration file
/etc/maas/maas_local_settings.py and add the following line:
MAAS_PXE_KERNEL_EXTRA_ARGS = "--entry=kexec"
This line adds the
--entry=kexec parameter to the MAAS PXE kernel command line.
4. Restart the MAAS services using the following command:
sudo systemctl restart maas-regiond maas-proxy
- Now, when you commission or deploy a machine using MAAS, it will use kexec to boot the machine instead of rebooting it.
Note: It is recommended to test the kexec functionality in a lab environment before using it in a production environment.