Checkpoint/restore crun
Prerequisites
Create an account with Cedana, to get access to the GPU plugin. See authentication.
Set the Cedana URL & authentication token in the configuration.
Install the crun plugin with
sudo cedana plugin install crun.Ensure the daemon is running, see installation.
Do a health check to ensure the plugin is ready, see health checks.
Basic
Run a new crun container, for example:
sudo crun run --detach --bundle ./my-bundle <container_id>Checkpoint:
cedana dump crun <container_id> --dir <dump-dir>Restore:
cedana restore crun --bundle ./my-bundle --path <path-to-dump>Managed
Run a new managed crun container:
Checkpoint:
Restore:
GPU support
Just like for processes, as explained in checkpoint/restore with GPUs, GPU support is also available for managed crun containers.
Run a new managed crun container with GPU support:
Checkpoint:
Restore:
Under containerd
crun containers created through containerd (with a runtime configured with BinaryName = "crun") are automatically detected and handled by the crun plugin when checkpointing/restoring through the containerd plugin.
Last updated
Was this helpful?