Skip to content
Fuse
Esc
↑↓navigate↵open⌘Jpreview
On this page

fuse image convert

Convert an OCI image to a rootfs on a Firecracker host

fuse image convert <ref> [--host <id>] [--region <region>] [--label key=value]... [--no-wait]

Sends POST /v1/images for <ref>. The orchestrator picks an active Firecracker host (the one --host names, or one in --region matching every --label), which resolves the ref to the manifest for its arch and bakes it into a rootfs in the background. The command then polls the image every 2 seconds until it leaves converting, and prints it. With --host, --region or --label it polls the record on the host the convert landed on (GET /v1/hosts/{hostId}/images/{digest}), so the same image ready on another host does not end the wait while this one is still converting. Without them it polls GET /v1/images/{digest}, which answers with the best record of any host. Against an orchestrator older than the host-scoped route, a pinned convert falls back to that fleet-wide read.

<ref> is an OCI reference: an optional registry host (with port), a lowercase repository path, an optional tag and an optional @sha256: digest, 255 characters at most. ubuntu:24.04 and ghcr.io/org/app@sha256:<digest> are both accepted.

Flags

Flag Purpose
--host Convert on this Firecracker host.
--region Convert on a Firecracker host in this region.
--label Convert on a host with this label, as key=value. Repeatable; every pair must match.
--no-wait Start the conversion and print the image at once, usually still converting.

Pick the host the same way the environment will be placed: a create with spec.image_digest lands only on a host where that image is ready. A Fusefile’s from: does this for you by converting with the Fusefile’s placement and resources.region.

Behavior

Converting a ref that is already converting or ready returns that image instead of baking again; one that failed is converted again. While it waits, the command reports on stderr:

converting <ref> on host <host> (image <digest>)
image <ref> ready on host <host>

Each host caps the disk its converted images hold (FC_IMAGE_CACHE_GB). A new conversion over the cap first evicts the host’s least recently used images that no vm or snapshot uses; when nothing can go, the convert fails with a 507 and the command exits non-zero.

A conversion that ends failed exits non-zero with the host’s reason:

image <ref> (<digest>) is failed on host <host>: <error>

Interrupting the command stops only the waiting. The conversion keeps running on the host; check on it with fuse image get.

The printed image has the same rows as fuse image get. With -o json it is the image object instead.

A malformed ref, a registry that needs credentials, or a --host that runs the QEMU backend is a 400. A ref the registry does not have is a 404.

Was this page helpful?