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-create-custom-busybox-image

PreviousCheckpoint/restore kataNexthow-to-install-criu-in-guest

Last updated 2 months ago

Was this helpful?

Since ctr does not have any build commands, we will use the docker CLI. ctr provides an import command which can import images. The steps involve creating a Dockerfile. It is important to include #!/bin/sh as the first line of the file which is going to be the custom workload.

FROM busybox:latest
COPY <file to be copied> bin

Run these commands (might require sudo privileges) : This will import the custom workload inside the my-busybox image

docker build -t my-busybox .
docker save my-busybox > my-busybox.tar
ctr image import my-busybox.tar

The following commands give can be used to run the custom workload :

image="docker.io/library/my-busybox:latest"
sudo ctr run --runtime "io.containerd.kata.v2" --rm -t "$image" test-kata test.sh

We have a , which performs IO redirection of the workload. It is crucial because it enabled CRIU restore to work seamlessly. The executable compiled by building this wrapper, as well as the actual workload must be present inside the custom busybox image if we wish to perform checkpoint/restore.

cedana wrapper script