how-to-make-kernel-criu-compatible
This doc describes how we can build a kernel which is CRIU compatible. Go
must be installed. Other package requirements can be installed as follows :
The vanilla build steps for 5.15.26 version of the kernel are :
Since CRIU has optimizations for kernel versions post 6.x.x, we will build 6.1.62, using the configuration file directly. The configuration file contains all the flags set (as required for CRIU, mentioned here). The configuration file is added to the Cedana fork of kata-containers, in this commit.
The command above will ask certain config details, you can answer them as follows :
The build and install steps can continue as before :
This will finally create “/usr/share/kata-containers/vmlinux.container”. We can now check the config by logging inside the guest VM. Example :
Last updated
Was this helpful?