ensure_base_kernel_for_backend(...) when you bring your own root filesystem but want SmolVM’s verified base kernel. The helper picks the right kernel artifact for the backend, downloads it on first use, verifies it, and returns the local path.
ensure_base_kernel_for_backend
Backend that will boot the kernel. Use
"firecracker" or "qemu" for documented SmolVM backends. When omitted, SmolVM uses normal backend selection.Architecture for the kernel. Use
"host" to match the current machine.Cache directory for downloaded kernel files.
Local path to the verified SmolVM base kernel.
What it selects
SmolVM publishes the same kernel build in different container formats:| Backend | Kernel artifact |
|---|---|
| Firecracker | ELF kernel |
| QEMU | Image/bzImage kernel |
The source currently also accepts
libkrun in this helper. The public docs focus on Firecracker and QEMU because those are the supported paths for most users.