how-to-make-rootfs-criu-compatible
Last updated
Was this helpful?
Last updated
Was this helpful?
Cedana has a fork of the repository. Certain files have been changed for enabling the creation of an Ubuntu RootFS. The changes are configurational in nature, and can be found in commit. Docker should be installed on the host machine.
This creates a folder, “rootfs-ubuntu” which will be attached to the guest VM. We will now move the CRIU source code into the rootfs
Additionally, we also need to move the for the guest into the rootfs. The location in the rootfs is kata-containers/tools/osbuilder/rootfs-builder/rootfs-ubuntu/bin
We also need to move the cedana
binary in the rootfs, so that the guest can access it.
Now that we have a rootfs, we need to create an image out of it. This step is simple.
The final argument is the location of the rootfs directory created in the previous step. This creates an image file called “kata-containers.img”. We need to copy the img into the appropriate place as per the config file