Cedana
Cedana Daemon
Cedana
Cedana Daemon
  • Cedana Daemon
  • Get started
    • Installation
    • Authentication
    • Configuration
    • Health checks
    • Plugins
    • Feature matrix
  • Guides
    • Managed process/container
    • Checkpoint/restore basics
    • Checkpoint/restore with GPUs
    • Checkpoint/restore runc
    • Checkpoint/restore containerd
    • Checkpoint/restore streamer
    • Checkpoint/restore kata
      • how-to-create-custom-busybox-image
      • how-to-install-criu-in-guest
      • how-to-install-on-aws
      • how-to-make-kernel-criu-compatible
      • how-to-make-rootfs-criu-compatible
      • Checkpoint/Restore kata containers
  • Developer guides
    • Architecture
    • Profiling
    • Testing
    • Writing plugins
  • References
    • CLI
      • cedana
      • cedana attach
      • cedana checkpoint
      • cedana checkpoints
      • cedana completion
      • cedana completion bash
      • cedana completion fish
      • cedana completion powershell
      • cedana completion zsh
      • cedana daemon
      • cedana daemon check
      • cedana daemon start
      • cedana delete
      • cedana dump
      • cedana dump containerd
      • cedana dump job
      • cedana dump process
      • cedana dump runc
      • cedana exec
      • cedana features
      • cedana inspect
      • cedana job
      • cedana job attach
      • cedana job checkpoint
      • cedana job checkpoint inspect
      • cedana job checkpoint list
      • cedana job checkpoints
      • cedana job delete
      • cedana job inspect
      • cedana job kill
      • cedana job list
      • cedana jobs
      • cedana k8s-helper
      • cedana k8s-helper destroy
      • cedana kill
      • cedana manage
      • cedana manage containerd
      • cedana manage process
      • cedana manage runc
      • cedana plugin
      • cedana plugin features
      • cedana plugin install
      • cedana plugin list
      • cedana plugin remove
      • cedana plugins
      • cedana ps
      • cedana query
      • cedana query k8s
      • cedana query runc
      • cedana restore
      • cedana restore job
      • cedana restore process
      • cedana restore runc
      • cedana run
      • cedana run containerd
      • cedana run process
      • cedana run runc
    • API
    • GitHub
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Guides
  2. Checkpoint/restore kata

how-to-make-rootfs-criu-compatible

Previoushow-to-make-kernel-criu-compatibleNextCheckpoint/Restore kata containers

Last updated 2 months ago

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.

cd ~/kata-containers/tools/osbuilder/rootfs-builder
sudo USE_DOCKER=true ./rootfs.sh ubuntu

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

cd ~/kata-containers/tools/osbuilder/rootfs-builder/rootfs-ubuntu/
sudo git clone https://github.com/checkpoint-restore/criu.git

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

cd ~/kata-containers/tools/osbuilder/rootfs-builder/rootfs-ubuntu/
sudo cp ~/cedana/scripts/kata-utils/build_start_daemon.sh bin/

We also need to move the cedana binary in the rootfs, so that the guest can access it.

cd ~/kata-containers/tools/osbuilder/rootfs-builder/rootfs-ubuntu/
sudo cp ~/cedana/cedana .

Now that we have a rootfs, we need to create an image out of it. This step is simple.

cd ~/kata-containers/tools/osbuilder/image-builder
sudo USE_DOCKER=true ./image_builder.sh ../rootfs-builder/rootfs-ubuntu/

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

cd ~/kata-containers/tools/osbuilder/image-builder
sudo cp kata-containers.img /usr/share/kata-containers/
kata-containers
this
CRIU builder + daemon launcher script