Skip to main content

Palimpsest Local

palimpsest-client is a Python 3.11+ distribution for managing Palimpsest boot images, SquashFS layers, OCI-layout bundles, and local layered virtual machines. The Python module remains palimpsest_local and the CLI remains palimpsest. Local artifacts, tags, run state, and build records live under XDG state directories. The base package has no required Python runtime dependencies; Linux KVM support is an opt-in extra.

The cloud-service goal is distinct from this local execution mode: deploy the reviewed Palimpsest services through Kolla-Ansible, control them externally via authenticated APIs, and prove actual server-owned build and consumer execution. External users do not need infrastructure-node SSH. Local SDK/SSH experiments are not deployed-service acceptance; see the control-plane boundaries.

Status

  • macOS Apple Silicon: conventional cloud-image VMs use Lima 2.1+ and VZ (lima-vz). Working source also provides an explicitly configured native OCI-root profile for qualified Ubuntu24.04/arm64 on pinned Lima2.2.1, with separate boot assets and a Linux worker; see the native-root contract and dated live evidence in the handoff. This is not arbitrary ARM image support or KVM security parity. QEMU/libvirt Hypervisor.framework (libvirt-hvf) and Lima krunkit Vulkan GPU (lima-krunkit) remain experimental.
  • Linux: supported libvirt/KVM runtime for conventional cloud-image VMs on x86_64 and aarch64; Linux OCI-root execution supports x86_64/amd64 KVM only.
  • Declarative projects: a strict palimpsest.yml workflow reconciles multiple VM services with dependencies, environment, typed cloud-init, persistent block volumes, networks, and Lima TCP forwarding.
  • Release source: 0.3.13 adds Hub image quotas, ppi_v1_ image API keys, anonymous reads of public images, optional OCI source-closure publication, palimpsest published push|pull|status, and the local Lima VZ arm64 OCI-root runtime, on top of 0.3.12 (Hub-authoritative SDK image publication/query/extension, parent-aware logical layers, immutable visibility-scoped payloads, opt-in Manila/CephFS native lane, standard reader/member/manager project roles). It preserves the released HTTPS worker, HA/readiness and catalog/instance paths. New native profiles remain inactive until storage/issuer qualification; source, publication and actual deployment have separate evidence in the latest handoff.
  • 0.3.16 (published 2026-11-12, deployed to the production Hub's three controllers and the build worker): Hub dev-instance idle auto-shelve (instance create --lifecycle dev, resume|renew|connection; fake-cloud tests only, never exercised on a real cloud), the palimpsest instance CLI, preflight checks for cores/RAM/ports, and the Kolla-Ansible 2026.1 kolla_version label fix. The new table was created by the offline Hub bootstrap; see the transition note and the handoff for the unexplained 0.3.15→0.3.13 regression found before this rollout.
  • 0.3.17 (published and deployed 2026-11-13): instance create --lifecycle dev (and resume|renew) works for a human system administrator using a project-scoped token. No schema change; see the transition note.
  • 0.3.18 (published and deployed 2026-11-14): the same admin path now also honours the protected user/project lists that members already obey, and the retired-Trust sweep no longer records a false trust_unrecoverable when another controller revoked first. No schema change.
  • 0.3.19 (published and deployed 2026-11-14): trust-scoped shelve/export connections accept the reader role Keystone implies for member; found on the first real idle shelve. No schema change.
  • 0.3.20 (published and deployed 2026-11-14): a shelved dev instance gets a real resume path that remounts its retained layers and writable upper; first live proof preserved a marker across shelve/unshelve. Instances created by older releases, GPU or cluster dev instances and service-instance crash restart are not covered. No schema change.
  • 0.3.21 (published and deployed 2026-11-14): restart=unless-stopped restarts a crashed or exited long-running command of a service instance in place and reports restart status; default for service instances with a readiness probe. Live: restarts after SIGKILL and after a non-zero exit were observed; an OOM kill was not yet produced. No schema change.
  • 0.3.22 (published and deployed 2026-11-15): longer limit for formatting the guest writable file and a distinct guest_setup_timeout error code, after two of four live service creations failed during guest setup. The one creation since then succeeded; the inferred cause is not confirmed.
  • 0.3.23 (published and deployed 2026-11-15): the guest unit survives an OOM kill of the command (OOMPolicy=continue). On 0.3.22 a real OOM kill was followed by no restart; the same unit and runner under systemd as PID 1 in a container showed why (default policy fails the unit and kills the runner; continue restarts the command; systemctl stop does not relaunch). Live on deployed 0.3.24: a real OOM kill in a Nova guest was followed by a reported restart, and instance stop left the instance stopped with no further restart.
  • 0.3.24 (published and deployed 2026-11-15): client-side --cloud failures (unknown or incomplete clouds.yaml cloud, unreachable Keystone, rejected credential, auth_url without an identity API) are reported as one specific message instead of a traceback. Checked with the released client against the deployed Hub.
  • 0.3.25 (published and deployed 2026-11-15): instance resume also powers on a stopped dev instance, and the instance status exposes resume_result. Service instances still cannot be resumed after stop.
  • 0.3.26 (published and deployed 2026-11-15): the Kolla role can enable Hub Git builds through palimpsest_git_allowed_hosts (default off), with examples/git-build as a first build; the experimental native VZ commit honours a /.plmignore carried by the image. Production allows github.com; the first Git build there was admitted and then failed as build_failed because of the worker limit defect fixed in 0.3.27.
  • 0.3.27 (published and deployed 2026-11-15): Hub image jobs (registry intake, Dockerfile and Git builds) no longer reject claims when the build worker's output limit is smaller than the API's blob limit. The experimental native VZ commit bounds /.plmignore evaluation and refuses ordinary files named .wh.*; a session marker left by a killed exec client is released only by its own run, also when that run's VM is stopped. The image-rule fallback and reserved-name refusal were exercised on the tag source in native VZ; an out-of-band unclean stop remains an unresolved recovery limit.
  • Candidate 0.3.28 (not yet published or deployed): the Hub dashboard can inspect visible playbooks and request VMs from the caller's own completed image jobs. Provider choices use the caller's token, and server creation and deletion remain explicit actions. Browser verification used a local fake API, not production VM allocation.

Install from PyPI

Requires Python 3.11 or newer. Prefer an isolated uv tool, or a pip virtual environment:

uv tool install --python 3.11 "palimpsest-client==0.3.28"
palimpsest --version

# Alternative: pip, without modifying the system Python.
python3.11 -m venv .venv
.venv/bin/python -m pip install "palimpsest-client==0.3.28"
.venv/bin/palimpsest --version

If uv's tool directory is not on PATH, run uv tool update-shell explicitly and open a new terminal. One-off use: uvx --python 3.11 --from palimpsest-client==0.3.28 palimpsest --version.

Root client installation and Hub service deployment are separate. API, export worker and build-worker images must match the reviewed release; updating the root wheel alone does not update running Kolla containers.

The commands above select version 0.3.28 after its formal publication. Check the release handoff for actual PyPI/image receipts and the deployment-server package/lock selection. Older release and production receipts remain historical and do not establish the currently running version.

Use a trusted source checkout

From this trusted checkout, install the current bytes rather than a remote branch:

uv tool install --force --python 3.11 .
# Or, inside a Python 3.11+ virtual environment:
python -m pip install .

palimpsest
palimpsest store ls --kind image
palimpsest completion zsh --install  # select bash or fish instead if appropriate

This checkout also installs plm as the same implementation, for example plm store ls --kind image. Help uses the canonical palimpsest name. The alias requires bytes containing the updated entrypoint metadata; its presence must not be inferred from a version string or an older published package.

Installation does not edit shell profiles; the final command explicitly opts in. No commit, push, package publication, or server setup is implied.

Install directly from GitHub

Palimpsest Local supports direct VCS installation from this repository. Python 3.11+, Git, and outbound HTTPS access to GitHub are required.

Install the CLI into an existing Python 3.11+ environment with pip:

python3.12 -m pip install \
  "palimpsest-client @ git+https://github.com/openstack-afterglow/palimpsest"
palimpsest --version

For a CLI that is independent of the current project and the host's system Python, use an isolated uv tool environment:

uv python install 3.11
uv tool install --python 3.11 \
  "palimpsest-client @ git+https://github.com/openstack-afterglow/palimpsest"
palimpsest --version

To add Palimpsest as a uv project dependency, the project's complete requires-python range must be 3.11 or newer. Initialize a new dependency-only project explicitly instead of accepting uv init's system-Python default:

uv python install 3.11
uv init --bare --python 3.11
uv python pin 3.11
uv add "palimpsest-client @ git+https://github.com/openstack-afterglow/palimpsest"
uv run python -c "import importlib.metadata as m; print(m.version('palimpsest-client'))"
uv run palimpsest --version

For an existing project whose pyproject.toml says requires-python = ">=3.10", either raise that value to ">=3.11" before uv add or use the isolated uv tool install path. uv python pin selects an interpreter but does not narrow the project's supported range; --frozen also does not make Python 3.10 compatible. If a local project defines its own palimpsest command, the metadata probe above distinguishes palimpsest-client from that command.

uv add records palimpsest-client as a Git source in pyproject.toml and locks the resolved commit in uv.lock. The unpinned commands follow the repository's default branch. For a reproducible installation, pin the full 40-character commit SHA that you reviewed:

PALIMPSEST_REF="FULL_40_CHARACTER_COMMIT_SHA"

python3.12 -m pip install \
  "palimpsest-client @ git+https://github.com/openstack-afterglow/palimpsest@${PALIMPSEST_REF}"

uv add \
  "palimpsest-client @ git+https://github.com/openstack-afterglow/palimpsest@${PALIMPSEST_REF}"

Choose the distribution that matches the role:

# Linux libvirt/KVM or experimental macOS libvirt/HVF support.
python3.12 -m pip install --upgrade \
  "palimpsest-client[kvm] @ git+https://github.com/openstack-afterglow/palimpsest.git@${PALIMPSEST_REF}"

# Standalone Hub API/worker package from the same reviewed ref.
python3.12 -m venv "$HOME/.venvs/palimpsest-hub"
"$HOME/.venvs/palimpsest-hub/bin/python" -m pip install --upgrade pip
"$HOME/.venvs/palimpsest-hub/bin/python" -m pip install \
  "palimpsest-hub @ git+https://github.com/openstack-afterglow/palimpsest.git@${PALIMPSEST_REF}#subdirectory=hub"
"$HOME/.venvs/palimpsest-hub/bin/python" -m pip show palimpsest-hub

palimpsest-client provides the palimpsest CLI and has no required Python runtime dependency. Its [kvm] extra adds libvirt-python>=10.0.0 only; it does not install QEMU, libvirt, firmware, host permissions, Lima, Docker/Buildx, Skopeo, or other host executables. palimpsest-hub is a separate server distribution with FastAPI, OpenStack, Redis, and SQL dependencies. Use the same commit ref for Local and Hub to avoid source skew.

In this working source, ordinary Linux users use their existing private home state and automatically provision its private command journal; no state/log environment variables are required. Root and the dedicated palimpsest service account retain administrator-managed system paths. Package installation itself never creates accounts, changes privileged groups, writes sudoers policy, or initializes mutable state.

See the short install guide, detailed package/platform/configuration guide, command workflows, and generated syntax reference. Repository contributors use the checkout-specific commands under Development; those are not the end-user installation path.

The root wheel also ships the palimpsest Kolla-Ansible role at share/kolla-ansible/ansible/roles/palimpsest. It does not declare or install Kolla-Ansible, Ansible, Hub, or other server dependencies; deployments must pin Kolla-Ansible independently. The released role defaults to Hub image tag 0.3.1, while source builds use the configured reviewed immutable checkout SHA. Verify both Hub images are published before deployment; the root package version does not automatically set the independent Hub Python distribution version.

For a dedicated public Hub hostname, set palimpsest_public_endpoint_url to its HTTPS origin and opt in with palimpsest_public_haproxy_enabled: true. palimpsest_public_haproxy_fqdn derives only from an exact HTTPS hostname origin (optional trailing slash, no port/path/query/fragment/credentials); otherwise the default is empty and public routing is disabled even in HAProxy-only plays. An explicit hostname override must still match the origin. Existing DNS and external TLS/certificate configuration are required. Updated Afterglow Kolla roles also project this explicit endpoint into services.palimpsest_internal_url; the separate Hub package public origin/reader/protection settings are unchanged. See docs/install.md for the deployment boundary.

A repository tag labels both ghcr.io/openstack-afterglow/palimpsest-hub-api and ghcr.io/openstack-afterglow/palimpsest-hub-worker with tags derived from that repository tag, not from the independent Hub wheel version. The v0.2.3 root release workflow passed artifact verification and native stage-1 KVM proof, published through the palimpsest-client trusted publisher, and created the GitHub Release. The separate Hub image workflow published API and worker images for that tag. A release does not by itself establish that an operator has deployed those images.

For 0.3.1, root Release run 37725879373 verified and published the root distributions to PyPI with native false/skipped. Its final GitHub job was incorrectly skipped; an authorized repair attached the same hash-matched tag-run artifacts without moving the tag or republishing PyPI. Hub image run 37725879345 published separate API/worker images. See publication and runtime evidence and exact deployment pins and prerequisites.

Hub configuration & Standalone Service

Palimpsest Hub runs as a standalone FastAPI service on default port 8020 using the original OpenStack project-scoped token (X-Auth-Token and optional X-Project-Id assertion, never re-scoping). Its same-origin /app console reads fresh feature permissions from GET /v1/me; credentials and transfer state remain in tab memory, not browser storage. Existing native reader grants visible queries/downloads; member adds creation/publication/editing; manager adds project management, package/layer/export deletion and key issuance. Higher tiers include lower. Approved self-service exceptions let members stop/delete only their own VM/native consumers and exclusive boot volumes, and reader-or-above revoke only their own keys with an original token. Other private creators stay protected. Canonical project_* roles work only through their actual native role graph; no separately assigned Palimpsest grade/leaf or personal-owner fallback is required. Shared catalog, global policy and worker callbacks retain separate system/machine boundaries.

The console searches filtered, newest-first layer/image pages (offset >= 0, 1 <= limit <= 200), verifies SHA-256 and size before saving downloads, and supports acknowledged-offset upload resume/status/abort with captured registration metadata. Original project tokens receive the role-appropriate operations; exact creator/key-bound cancellation of an unfinished upload remains write-tier rollback. Native ppk_v1_… credentials are a separate domain limited to five delegated package/cache read/write actions. They never gain key issuance/revocation, VM cleanup, package deletion, project switching or build admission. Connection changes cancel tab-controlled work without automatic re-publication.

Hub's native /v1 API stores Palimpsest boot images, SquashFS runtime blocks and bundles, with separate project-scoped package/BuildKit-cache APIs. Native package keys authorize only their delegated package/cache operations; legacy commands retain the original Keystone token. POST /v1/builds queues member-authorized project work and reader-authorized GET routes report only that project state. The retained HTTPS-only dedicated CPU service-VM executor performs direct recipe execution and API-registered private project outputs, with no nested/per-build KVM/libvirt or API-container recipe execution. Hub is not a Docker/OCI /v2 registry; profiles explicitly select palimpsest or oci transport.

Working-source Hub execution APIs

The current source adds conditional layer metadata PATCH, project-bound registry imports and Dockerfile/context image jobs, plus original-human instance create/list/detail/stop/delete APIs. HubClient exposes the corresponding HTTP methods; the dedicated worker performs builds outside controller services. Request identities, retained layer/runtime snapshots and provider intent prevent blind mutation replay. These additions are not part of released0.3.10 or a production deployment. Guests currently fetch verified payloads over HTTPS and mount read-only SquashFS lowers with private disk-backed writable state; this is not the Manila-managed CephFS target. See the current API contracts and limits.

The Hub test configuration includes the repository's root companion source for dedicated-worker tests, matching the build-worker image without adding a client dependency to the controller package:

uv sync --project hub --frozen --extra dev
uv run --project hub pytest -q hub/tests

The API/export images remain Hub-only; the root companion is required by the dedicated executor, not a new API controller dependency.

Image-worker scratch is explicitly bounded by palimpsest_image_scratch_bytes (PALIMPSEST_HUB_IMAGE_SCRATCH_BYTES), default 4GiB, configurable256MiB–64GiB. One quarter is reserved for packed outputs (also capped by the blob limit); the remainder is a fully preallocated ext4 workspace. Setup briefly reserves another8MiB for journal headroom. Backing storage must be non-CoW ext4/xfs/tmpfs with real allocation support; overlay, btrfs and sparse fallback are refused. Registry/BuildKit/cache/temp writes stay inside the bounded workspace, and exact process/loop cleanup precedes upload.

Entrypoints & Docker Targets

  • Hub API: uvicorn palimpsest_hub.main:app --host 0.0.0.0 --port 8020 (Docker target palimpsest-hub-api; /app serves the web console).
  • Async Export Worker: python -m palimpsest_hub.worker (Docker target palimpsest-hub-worker).
  • Isolated Build Worker: palimpsest-hub-build-worker (Docker target palimpsest-hub-build-worker) runs as root in a dedicated CPU-only Linux service VM in palimpsest-service. It receives only verified Hub HTTPS, an owner-only keyfile and local scratch/limits, never SQL, CAS/NFS, Redis or Keystone credentials. Configure PALIMPSEST_HUB_BUILD_WORKER_KEY on the API; absent configuration denies build admission with 503. SQL fencing belongs to the API; worker-local flock protects its private journal. See remote worker deployment and recovery.
  • Database Bootstrap: python -m palimpsest_hub.bootstrap creates the destination schema.
  • Data Migration: python -m palimpsest_hub.migrate --source-url "$SOURCE_DATABASE_URL" --destination-url "$DESTINATION_DATABASE_URL" copies source tables into an empty initialized destination; it is not bootstrap.

The canonical Hub container build uses the repository root as context and docker/hub/Dockerfile as its Dockerfile:

docker build --file docker/hub/Dockerfile --target palimpsest-hub-api .
docker build --file docker/hub/Dockerfile --target palimpsest-hub-worker .
docker build --file docker/hub/Dockerfile --target palimpsest-hub-build-worker .

Client Hub Configuration

Legacy Hub artifact CLI commands use a base URL (PALIMPSEST_URL or --url) and the original Keystone token from PALIMPSEST_TOKEN over X-Auth-Token. This remains distinct from bounded package/cache keys. Original member tokens can publish/edit and clean up only their own consumers; manager tokens can perform the permitted project-management operations without gaining other creators' private content or global authority. Keep credentials in approved secret handling, not documentation, shell history or state files. A separate read-only Keystone validator checks current roles, protected principals, exact ownership and original-issued-role ceilings. A separately verified human system:all administrator has an explicit logical-target path. X-Project-Id asserts original caller scope; X-Target-Project-Id never replaces provider scope. See Hub settings and native authorization.

export PALIMPSEST_URL="http://hub.example:8020"
# Set PALIMPSEST_TOKEN from your secret-management mechanism.

palimpsest image ls --arch aarch64
palimpsest --url http://another-hub.example:8020 image ls

PALIMPSEST_URL overrides the URL in ${XDG_CONFIG_HOME:-~/.config}/palimpsest/config.toml; an explicit --url takes precedence over both.

Native package and Docker/OCI registry configuration

The built-in docker profile resolves unqualified references through docker.io. Profiles default to protocol = "oci" (including older files without the field); these examples retain Docker-backed behavior:

palimpsest registry add corp registry.example.com \
  --namespace platform \
  --default

palimpsest registry ls
palimpsest login --registry corp
palimpsest pull api:v1 --registry corp
palimpsest tag local-api:dev api:v1 --registry corp
palimpsest push api:v1 --registry corp
palimpsest images --digests
palimpsest image inspect api:v1 --registry corp
palimpsest image history registry.example.com/platform/api:v1
palimpsest image save registry.example.com/platform/api:v1 -o ./api.tar
palimpsest image load -i ./api.tar

Profiles contain no secrets and live in ${XDG_CONFIG_HOME:-~/.config}/palimpsest/registries.toml. Unqualified references select --registry, then PALIMPSEST_REGISTRY, then the configured default. A fully qualified reference whose authority has no configured profile stays an ordinary Docker/OCI reference, as before; this includes pull, push, tag, inspect, login, logout and build tags. A configured authority must map to exactly one protocol, and an explicit --registry must match a qualified reference's authority. OCI profiles reuse Docker's credential store in DOCKER_CONFIG or ~/.docker; the generic palimpsest docker ... passthrough remains Docker-only and blocks global --config overrides and password-bearing login arguments.

For native packages, add an HTTPS profile with an API base on the same authority:

palimpsest registry add hub packages.example.invalid \
  --protocol palimpsest --api-base https://packages.example.invalid/v1 \
  --namespace project-apps

Native transport verifies the system CA trust plus profile --ca files and refuses redirects; mirrors, plain HTTP, TLS-skip and Docker cache exporters are not supported. An original project member token can register the operator-bound namespace and publish; a manager token is required to issue a secret-once key scoped to exact packages/actions. Reader-or-above may list and revoke only their own keys using an original token. Existing standard roles supply these permissions without custom Palimpsest roles; see the authorization matrix. Native login checks /auth/me before saving a key through an installed Docker credential helper at api_base.rstrip('/') + '/projects/' + namespace (exact credHelpers entry, then credsStore, no host-only/plaintext fallback). --username must match its public UUID; secrets enter through --password-stdin or a prompt. Ephemeral PALIMPSEST_PACKAGE_KEY can serve the native client, never the legacy runtime client.

Personal-project metadata does not manufacture authorization or replace current native membership. Original-token/current-owner and issued-key/current-owner intersections enforce the role ceiling, exact project/package/private-user scope, expiry and revocation. Package/layer/export deletion remains manager-tier, including for personal projects; the creator cleanup exception applies only to its own consumers and exclusive boot volumes. Foreign-project layer grants and parent/base-image dependencies block unsafe deletion. Operator deny, package-key attenuation and separately verified system authority remain effective.

Native build --output ARCHIVE produces a verified OCI export and typed, immutable-byte-bound local reference, not a Docker image. Deferred push reads that reference; push --input LAYOUT_OR_ARCHIVE --manifest sha256:... can supply another source (manifest required for multiple roots). Native pull --output ARCHIVE downloads and verifies original bytes without docker load. Receipts are owner-only under state/package-references/; frozen exports are under state/package-artifacts/, separate from SquashFS runtime tags. Native transfers reject --all-tags/--platform; native builds reject --load/external Docker caches and native tag is not supported.

See registry profiles for the complete secret-once login → build → push → pull flow. Its cloud.dmslab.re.kr/openstack-afterglow/test:v1 example remains conditional on operator binding and deployment of the separate Afterglow key gateway. The isolated container acceptance exercised the scoped native routes on arm64 and amd64 with persistent SQLite/blob bytes and synthetic current Keystone; it is not production deployment, canonical database/lifespan, cloud or KVM qualification. See also the source-based Docker Hub intake analysis for the current local-archive boundary and unqualified gaps.

Artifact workflow

# List and pull a boot image.
palimpsest image ls --arch aarch64 --limit 10
palimpsest image pull sha256:<image-digest>

# Import a locally downloaded cloud image.
palimpsest image import ./ubuntu-24.04-server-cloudimg-arm64.img \
  --disk-format qcow2 --arch aarch64 --os-variant ubuntu-24.04

# Create and publish a layer.
palimpsest layer pack ./rootfs --tag app-v1 --arch aarch64
palimpsest layer push app-v1 --base-image sha256:<image-digest>

# Download or inspect an OCI-layout bundle.
palimpsest bundle pull sha256:<leaf-layer-digest> --include-base --output ./bundle
palimpsest bundle verify ./bundle

VM builds and commits record the guest base architecture on each layer; they do not label cross-platform outputs from the host CPU. Filter the local store or Hub inventory for the current client, or inspect a whole dependency chain:

palimpsest store ls --compatible --format json
palimpsest image ls --compatible
palimpsest layer ls --compatible
palimpsest store check app-v1 --backend lima-krunkit
palimpsest layer check sha256:<leaf-layer-digest>

Legacy unlabelled layers remain unknown, not implicitly portable. Platform compatibility does not prove GPU support or successful boot; see the architecture and compatibility contract.

Local artifacts live below the selected state root. Ordinary Linux users and macOS default to ~/.local/state/palimpsest; Linux root and the dedicated palimpsest system account default to /var/lib/palimpsest. Explicit PALIMPSEST_STATE_HOME, config, and XDG_STATE_HOME overrides retain precedence; existing data is not relocated:

store/       content-addressed blobs and metadata
runs/        local VM state
projects/    declarative project ownership and reconciliation ledgers
volumes/     project-owned KVM block images and Lima disk receipts
builds/      build records and console output
build-cache/ BuildKit local-exporter cache by scope
runtime-packs/ base/platform/packer-bound SquashFS conversion indexes
tags/        local layer tags
transfers/   Hub transfer progress

Native OpenStack builds are explicit: palimpsest build --executor nova --nova-config ./nova-build.json -t runtime-layer uses Nova's selected GPU flavor and original cloud-init, not nested libvirt on the Mac. The internal worker records checked outputs and canonical registry layers on retained storage; palimpsest cloud exposes permanent assets, inspection and immutable-lower/private-writable consumer preparation. Each external runtime stack now has its own consumer-local upper/work, never in a shared lower store. Install the reviewed working source with .[cloud] and follow the Nova/worker workflow. This is an unreleased path; historical GPU results and current qualification limits are recorded separately in the development handoff.

Dockerfile cache and runtime-block workflow

For a local standard OCI archive/layout, the experimental OCI-root converter can verify and materialize its layers without Docker:

# Anonymous TLS acquisition requires Skopeo 1.13+ and an explicit registry.
palimpsest oci pull quay.io/example/application:v1 --output ./image.oci.tar
palimpsest oci materialize ./image.oci.tar --output ./materialization.json
# If the local index lists multiple roots, choose one explicitly:
palimpsest oci materialize ./image-layout --manifest 'sha256:<root-digest>'

This requires a Linux host and the qualified SquashFS packer (/usr/bin/mksquashfs by default). The default is linux/amd64; explicit --platform linux/arm64 materializes a validated ARM archive without granting VZ launch authority. It produces verified ordered layer artifacts, not a running VM. New recipes bind preceding layer context so omitted directory attributes cannot reuse another parent's output; historical recipes remain readable only. Public local OCI-root run/-d and the protected-root Gate 2 have separate qualified proofs on Linux/x86_64 KVM; see the public-runtime roadmap. run IMAGE now resolves local sources first and acquires missing OCI references through configured profiles; only verified local archives cross into the runtime. The explicit anonymous oci pull command remains available. See the anonymous registry intake contract and Docker Hub compatibility for the digest-preserving local-archive workflow and its real-image verification scope.

Repeated image acquisition can use the explicit oci cache --root PATH permanent shared cache on already mounted CephFS or a single-writer RBD/Cinder filesystem. It reuses compressed layer digests and qualified SquashFS recipes, records consumers and keeps bytes even after their last release. Cache initialization, storage provisioning and immutable guest runtime exports are separate operations.

Local BuildKit builds apply root .plmignore after selected Docker ignore rules. CloudEnv remote context archives do not support that matcher and reject any root .plmignore before packing/upload; they never silently upload excluded content.

OCI-root runs accept an explicit --user USER[:GROUP] (name or canonical numeric ID), for example palimpsest run ./redis.oci.tar --name redis-demo --user redis -d. This changes only the launch identity, not the source image, entrypoint or arguments. Without the option, the image's configured user is unchanged. PID 1 protections and the capabilityless workload policy remain enabled; this is not privileged mode or general Docker compatibility. See explicit OCI run users for the contract and limits.

OCI-root exec accepts --timeout SECONDS (integer 1–600, default 30) to set the guest execution deadline for that one command; the option is rejected for cloud-image runs. Retry, locking, privilege, cleanup and the 64 KiB output limit are unchanged, and a longer deadline does not change host monitor or run lock bounds.

For the qualified native Lima-VZ profile, live observation shares at most five seconds of additional mutex waiting across a pass; ordinary provider work and the guest execution timer are separate. busy means no fresh observation or guest/lifecycle grant, not that the VM has stopped. Main-process exit is also not physical VM shutdown. Public CLI ps refreshes live state; inspect reports the last durable record. An admitted logs --follow keeps its pinned console through pure mutex contention, but integrity failures and uncertain custody HOLDs still terminate it. Initial log admission and snapshots fail closed.

OCI-root runs select one virtual network with --network nat|host-only|none and publish guest ports with the repeatable --publish [HOST_IP:]HOST_PORT:GUEST_PORT[/tcp|/udp] (-p):

palimpsest run ./service.oci.tar --name api -d \
  --network nat --publish 127.0.0.1:18080:8080

Omitting --network now means nat: the guest gets a private 10.0.2.15/24 address with outbound NAT and DNS. This is an explicit breaking change from the previous no-NIC default, so use --network none to keep the old isolation. host-only keeps the private address but blocks every outbound path. Inbound traffic only reaches published ports, host addresses default to 127.0.0.1, and external exposure requires writing 0.0.0.0 explicitly. Palimpsest creates no libvirt network, bridge, firewall rule or DNS service: the NIC and every host listener belong to the VM's own QEMU process. palimpsest ps includes configured publications in its PORTS column, palimpsest inspect NAME emits them as typed JSON, and palimpsest oci network NAME performs the stronger OCI-specific committed-plan verification and external-exposure classification. Configured publications on a stopped run are not live-listener claims. See the network contract for limits, including no IPv6, no privileged host ports and no VM-to-VM network. IPv6 host publication and a shared VM network are separately gated future contracts; neither is implied by the current per-VM network modes.

The Dockerfile workflow keeps BuildKit's logical vertex cache separate from the runtime artifact. BuildKit reuses unchanged build work; Palimpsest feeds BuildKit's metadata-preserving rootfs tar directly into SquashFS, binds the block to its boot-base/platform contract, and the Linux KVM runtime attaches the verified result as a read-only virtio-blk disk.

Unreleased source requires an explicit owner-only upstream image-source policy for online image intake/builds and retained upstream runtime adoption. Configure each exact registry/namespace/repository; absent or empty policy denies images. Registry credentials or an allowed host do not grant repository permission. Buildx must be stable0.11 or newer and every running BuildKit node0.12 or newer. This source/local-proof feature has not been built into or deployed as new Kolla images; existing release/deployment receipts remain separate.

palimpsest build . \
  --frontend dockerfile \
  -f Dockerfile \
  --registry corp \
  --cache-registry hub --cache-package project-apps/demo \
  --tag demo:v1 \
  --runtime-base sha256:<boot-image-digest> \
  --runtime-tag demo-runtime \
  --push \
  --runtime-push

The default --cache-mode native requires digest-pinned remote bases/frontends and native cache authorization for cache:read and cache:write on an exact package before builder preflight. Native output defaults cache selection to its profile and namespace/package. OCI output in this mode requires both --cache-registry NATIVE_ALIAS and --cache-package NAMESPACE/PACKAGE, even when PALIMPSEST_TOKEN is set. The cache is Hub-first, digest-verified and fail-closed; every online native-cache build refreshes it. Local generations and remote fallback are partitioned by project/package, cache scope, platform and builder fingerprint. OCI external cache definitions are additive only in native cache mode. --cache-mode local --registry docker instead uses managed host cache without Hub authorization; it rejects native/external cache selection and permits --no-cache. It is not strict offline mode. --push uses Buildx for OCI profiles and the native package API for native profiles; --runtime-push uses the separate original-token legacy Hub path for SquashFS. No unqualified native cache writes are allowed.

Strict --offline uses only verified local OCI layouts and local cache with --network none. It never loads registries.toml or resolves profiles, never authenticates and never constructs a Hub or registry client, so it writes no typed native package references. It rejects --registry ("--offline cannot select an external registry"), --cache-registry, --cache-package, --pull, both push flags and external caches. To publish an offline result, run a native push --input ARCHIVE --manifest sha256:... afterwards. Docker may still read DOCKER_CONFIG to locate the existing local builder. Profiles do not rewrite Dockerfile FROM lines. See BuildKit cache and block runtime workflow for cache bindings, runtime upload and remaining acceptance gates.

macOS Apple Silicon

Install Lima and use an ARM64 Ubuntu cloud image.

brew install lima

palimpsest image import ./ubuntu-24.04-server-cloudimg-arm64.img \
  --disk-format qcow2 --arch aarch64 --os-variant ubuntu-24.04

palimpsest run sha256:<image-digest> --name ubuntu-arm --memory 4096 --vcpus 2
palimpsest inspect ubuntu-arm
palimpsest shell ubuntu-arm
palimpsest exec ubuntu-arm -- uname -m

The VZ backend provides managed NAT. inspect reports the guest IPv4 address and Lima's host-local SSH endpoint. shell opens a Lima shell; exec runs one command in the guest.

The experimental QEMU/libvirt alternative requires the host tools and [kvm] extra in the install guide. It is opt-in, runs conventional ARM64 cloud images through qemu:///session, and leaves Lima/VZ as the default:

virsh -c qemu:///session list --all
palimpsest run sha256:<image-digest> --name ubuntu-hvf \
  --memory 2048 --vcpus 2 --backend libvirt-hvf
palimpsest exec ubuntu-hvf -- uname -m
palimpsest stop ubuntu-hvf
palimpsest rm ubuntu-hvf --volumes

This does not enable the Linux-only OCI-root runtime on macOS.

Hardware accelerator on macOS (Vulkan GPU via krunkit)

Apple's ParavirtualizedGraphics framework accelerates macOS guests. For Linux guests on Apple Silicon, experimental --backend lima-krunkit runs a lightweight VM through krunkit and libkrun, exposing a virtio-gpu device to the guest. Mesa's Venus Vulkan driver remotes compute commands to the host Apple Silicon GPU via Metal:

brew tap slp/krun
brew install krunkit

palimpsest run sha256:<image-digest> --name fedora-gpu \
  --memory 4096 --vcpus 2 --backend lima-krunkit
limactl shell fedora-gpu

Direct Hypervisor.framework integration remains an optional alternative if libvirt is bypassed; default selection (auto) remains lima-vz. This does not expose CUDA or the Apple Neural Engine to Linux guests.

A macOS build uses a disposable Lima guest and produces the same portable SquashFS layer artifact used by the content store:

palimpsest build \
  --base sha256:<image-digest> \
  --tag tools-arm \
  -f ./Palimpsestfile \
  --network none

palimpsest run sha256:<image-digest> \
  --layer sha256:<built-layer-digest> \
  --name tools-arm
palimpsest exec tools-arm -- ls /opt/layers/merged

commit is not available for Lima-managed macOS runs; create a new portable layer with build.

Linux KVM

The KVM runtime requires:

  • Linux x86_64 with /dev/kvm
  • QEMU, libvirt, qemu-img, cloud-localds, mksquashfs, OpenSSH
  • a configured qemu:///system connection and default libvirt network
  • palimpsest-client[kvm]

Run a base image and ordered layers:

palimpsest run sha256:<image-digest> \
  --name web-dev \
  --layer sha256:<root-layer-digest> \
  --layer sha256:<leaf-layer-digest> \
  --memory 4096 \
  --vcpus 2 \
  --network default

palimpsest ps
palimpsest inspect web-dev
palimpsest logs web-dev --follow
palimpsest shell web-dev
palimpsest exec web-dev -- ls /opt/layers/merged
palimpsest stop web-dev
palimpsest rm web-dev --volumes

Layers are exposed inside the guest at /opt/layers/merged in leaf-to-root overlay order.

The branch PR's native KVM stage-1 gate verifies OCI-root guest root switching and PID 1; it does not prove the revised conventional cloud-image readiness path after merge. The serial-bound first-boot and cloud-init-disabled reboot changes still need a native post-merge cloud-image boot/reboot check before being treated as a deployed runtime qualification. Release builds and deployment are outside this documentation update.

Multi-VM projects (palimpsest.yml)

Use the Compose-shaped project workflow when several VMs belong together:

version: "1"
name: demo
volumes:
  data: {driver: block, size: 20GiB}
services:
  db:
    image: sha256:<boot-image-digest>
    volumes: ["data:/var/lib/data"]
  api:
    image: sha256:<boot-image-digest>
    layers: [sha256:<runtime-layer-digest>]
    depends_on: [db]
    ports: ["127.0.0.1:18080:8080"]
    environment:
      APP_ENV: ${APP_ENV:-development}
palimpsest compose config --quiet
palimpsest compose up -d
palimpsest compose ps
palimpsest compose exec api -- uname -a
palimpsest compose down             # keep persistent block volumes
palimpsest compose down --volumes   # delete owned volumes too

The schema deliberately rejects unsupported Compose fields. Named storage is a single-writer block device, never NFS or a host bind. Lima supports static TCP forwarding; the current Linux libvirt network path rejects ports until a verified passt implementation is available. See Declarative multi-VM projects for the complete schema, cloud-init subset, interpolation rules, and backend differences.

Building layers

A Palimpsestfile declares one base image, optional parent layers, environment values, a working directory, and one or more RUN commands.

FROM sha256:<image-digest>
LAYER sha256:<parent-layer-digest>
WORKDIR /opt/app
ENV APP_ENV=production
RUN mkdir -p /opt/app && printf 'hello\n' > /opt/app/message.txt

Build it with the same base and parent chain:

palimpsest build \
  --base sha256:<image-digest> \
  --layer sha256:<parent-layer-digest> \
  --tag app-layer \
  -f ./Palimpsestfile \
  --network default

The command prints the generated layer digest. Use it with run --layer or layer push.

클라우드 목표 구조: 제어는 VM 밖에서, 레이어는 공유 저장소에서

목표 계약이며, 현재 구현·배포 완료나 실기 검증을 뜻하지 않는다. Docker를 외부 클라이언트로 제어하듯, Palimpsest 클라이언트·Hub API·오케스트레이터가 워크로드 VM 밖에서 이미지 획득·빌드·변환, 레이어 선택·순서, 마운트 명세, 접근권한·lease와 Nova 수명주기를 맡는다. 게스트에는 확정된 명세대로 마운트하고 워크로드를 실행하는 최소 helper만 필요하며, Palimpsest CLI나 별도 제어면을 설치해 운영하는 구조가 아니다.

flowchart TB
  client["VM 밖: 클라이언트"] --> control["Hub API · 외부 오케스트레이터"]
  control --> db["Hub DB: digest · size · 레이어 순서 · runtime · job/provenance"]
  control --> builder["별도 빌드 worker: 획득 · 빌드 · 변환 · 검증"]
  builder -- "RW: staging과 새 digest 발행" --> bytes["Manila가 관리하는 CephFS: SquashFS 실제 바이트"]
  control -- "확정 mount 명세 · RO 권한 · lease · Nova 수명주기" --> helper
  subgraph consumer["워크로드 VM: 마운트와 실행만"]
    helper["최소 게스트 mount helper: CLI/제어면 아님"] --> lower["공유 RO → SquashFS RO lower: 지정 순서"]
    lower --> overlay["OverlayFS → 워크로드"]
    private["VM 전용 RW upper · work"] --> overlay
  end
  bytes -- "소비자는 RO 접근" --> lower
  • DB와 바이트는 다르다. Hub DB가 메타데이터의 권위다. 레이어 payload는 Manila가 노출·관리하는 CephFS에 두며, VM별 다운로드 저장소나 로컬 catalog를 클라우드 메타데이터의 권위로 삼지 않는다.
  • 빌드 RW와 실행 RO는 별도 권한이다. worker는 staging과 새 digest 발행에 쓸 수 있지만 이미 발행된 digest의 바이트는 덮어쓰지 않는다. 소비자는 공유 경로와 각 SquashFS lower를 모두 RO로 사용한다. 실행 중 변경과 copy-up은 VM 전용 upper·work에만 남으며 공유 CephFS에 쓰지 않는다.
  • 외부에서 결정, 게스트에서 적용. 외부 제어가 공유·레이어·순서·권한과 mount 명세를 확정하고, 게스트 helper가 게스트 커널에서 실제 마운트를 수행한다. export 프로토콜이나 자격증명 방식은 아직 선택하지 않았다. 운영으로 확정할 Manila 공유 경로·RO 접근권한과 tenant/workload 격리, lease 해제·권한 회수는 구현 전환 및 라이브 검증이 필요하다.

빌드 발행부터 마운트까지의 목표 순서

sequenceDiagram
  actor Client as 클라이언트 (VM 밖)
  participant Control as Hub API · 외부 제어
  participant DB as Hub DB (메타데이터)
  participant Worker as 별도 빌드 worker
  participant Share as Manila 관리 CephFS (바이트)
  participant Guest as 워크로드 VM · 최소 helper
  Client->>Control: 빌드 요청
  Control->>DB: job · 입력 · provenance 기록
  Control->>Worker: 획득 · 빌드 · 변환 · 검증
  Worker->>Share: RW staging → 새 digest 불변 발행
  Worker-->>Control: 검증된 digest · size · 결과
  Control->>DB: 레이어 순서 · runtime · 결과 확정
  Client->>Control: 선택한 레이어로 실행 요청
  Control->>DB: 권한 · digest · 순서 · lease 확인
  Control->>Share: 운영으로 확정할 공유 경로·RO 접근권한
  Control->>Guest: Nova 수명주기 · 확정 mount 명세 전달
  Guest->>Share: 지정 공유를 RO로 읽기
  Guest->>Guest: SquashFS RO lower + VM 전용 upper/work
  Guest->>Guest: OverlayFS에서 워크로드 실행
  Guest-->>Control: 외부에서 실행 상태 관찰

현재 구현과의 차이: 이 통합 소스의 hub/src/palimpsest_hub/services/instance_bootstrap.py의 게스트 bootstrap은 레이어를 HTTPS로 다운로드한 뒤 RO loop mount한다. 이 경로도 게스트에서 Palimpsest CLI를 실행하지는 않지만, 위 Manila 공유 기반 실행 경로는 아니다. 이 체크아웃의 Nova capture/Cinder ext4 RW → 별도 봉인·RO 연결 프로토타입도 목표 구조와 별개다. 그 소스와 과거 벤치마크는 보존하되, Manila/CephFS 목표의 구현 또는 성능 검증으로 해석하지 않는다.

별도 선택 모드인 로컬 실행은 유지한다. 로컬 CLI·로컬 저장소에서 Lima/VZ 또는 KVM으로 일회성 빌드·일반 VM을 실행할 수 있다. 로컬 일반 cloud-image는 OS /와 별개인 /opt/layers/merged에 레이어를 합치며 기본 빌드 캡처는 tmpfs다. OCI-root는 실제 게스트 /를 구성하는 별도 Linux amd64 KVM 경로다. 로컬 모드에서 Hub가 선택적이라는 사실을 위 클라우드 목표에 적용하지 않는다.

기준 계약과 현재 구현 근거: 목표와 구현 차이, 역사적 Nova 빌드, 역사적 외부 계층 마운트. 한국어 시각 안내서, 대화형 전체 구조도, 대화형 빌드→마운트 시퀀스는 같은 목표 계약을 설명한다. 안내서와 그림은 2026-10-29 aa397a0 작업트리 및 별도 977c4f2 구현을 명시한 역사적 스냅샷 그대로 보존하며, 현재 통합 소스나 배포 상태의 검증으로 다시 이름 붙이지 않는다. 그림 자체는 런타임 성공 증거가 아니다.

Runnable Examples

Quick rootfs layer example

Pack a directory tree into a SquashFS layer and register it in the local content store:

# From the repository root
./examples/hello-layer/run.sh

# The runner also works when invoked by path from another directory
/path/to/palimpsest/examples/hello-layer/run.sh my-custom-layer

The script packs ./examples/hello-layer/rootfs/ (containing /opt/palimpsest-example/hello.txt), outputs the resulting sha256: layer digest, and lists layer artifacts via palimpsest store ls --kind layer to prove registration in the local content store. mksquashfs records image creation time, so repeated runs produce new digests; set an absolute PALIMPSEST_STATE_HOME to keep repeated experiments out of your working store.

Complete VM workflow example

Import a cloud image, build a layer in a disposable guest, and boot a VM with that layer attached:

# From the repository root; pass the image matching your host architecture
./examples/hello-vm/run.sh /path/to/ubuntu-24.04-server-cloudimg-arm64.img

# Optional second argument: a custom run name
./examples/hello-vm/run.sh /path/to/ubuntu-24.04-server-cloudimg-arm64.img my-demo-vm

The runner maps the host to an architecture and backend (macOS arm64 to aarch64/lima-vz, Linux to kvm), imports the image, builds a no-network Palimpsestfile layer, starts a 2048 MiB / 2 vCPU VM, verifies the layer under /opt/layers/merged, and leaves the VM running with cleanup commands printed. See the Hello VM walkthrough for the step-by-step tutorial and the VM workflow guide for the manual command reference.

Command groups

palimpsest registry ls|add|use|rm|inspect|buildkit-config
palimpsest login|logout|pull|push|tag|images
palimpsest history|rmi|save|load             # Docker top-level aliases
palimpsest docker <docker-cli-arguments...>  # generic passthrough
palimpsest image  inspect|history|rm|save|load # Docker/OCI image
palimpsest image  ls|pull|verify|import|push # Hub boot image
palimpsest layer  ls|pull|pack|push
palimpsest bundle pull|verify
palimpsest oci materialize
palimpsest build
palimpsest run
palimpsest start
palimpsest compose config|up|down|ps|logs|exec|stop|port
palimpsest ps|inspect|logs|shell|exec|stop|rm|commit
palimpsest web                               # foreground local dashboard; no Hub required
palimpsest store show|ls|catalog|rm|move|set # selected-state storage & artifact metadata
palimpsest completion zsh|bash|fish          # shell completion generator

Use palimpsest <command> --help for exact arguments. The checked generated CLI reference records the complete command tree, and the command workflow catalog documents the per-command order, configuration, and platform limits with Archify workflow diagrams.

Local metadata catalog

palimpsest store catalog             # persisted selected-root frame; no refresh
palimpsest store catalog --refresh   # recollect local ledgers and commit a frame

The private catalog-v1/metadata.sqlite3 in the selected state stores discovery registrations and observations of build/provenance, original ordered image graphs, derivation receipts, distinct real aliases/output labels and UUID-bound run ledgers. Existing JSON/CAS, ownership, leases, deletion guards and Hub retain their authority; a DB row is not proof that an image can run or bytes can be deleted. Source/config descriptors do not duplicate image process environments.

Artifact/build inventory queries may refresh this metadata cache without probing live VMs, downloading inputs, initializing absent state/config or repairing runtime journals. An existing state may gain only this private catalog subtree. Inspect observation.scope, captured_at, complete and warnings in the catalog output; legacy build list/detail shapes do not imply complete discovery. Malformed entries preserve valid unrelated facts with warnings. A corrupt or unknown-schema DB fails visibly; it is not silently rebuilt from another parser.

Build/materialize commands synchronize after their outputs commit. If the metadata step fails, the command reports it while preserving committed bytes and successful build records; do not blindly replay. Build context/Dockerfile hashes are pre-solve lookup observations; canonical-json-semantic-v1 record hashes are not raw file or atomic BuildKit attestations. State moves close/quiesce the catalog, preserve graph facts and revalidate destination source bytes while invalidating copied derivations; no lease or execution authority is copied. Actual VZ run linkage remains an open Goal item.

Local web dashboard

palimpsest web                    # read-only dashboard; opens a browser
palimpsest web --no-browser       # print the URL without opening a browser
palimpsest web --allow-control    # enable build/run, consoles and resource controls

The loopback server runs only while this foreground command runs. Ctrl-C stops it; installation and other CLI commands do not start a background web service. Hub configuration is unnecessary: local images, retained acquired sources, BuildKit exports, build logs, VM observations, volumes, networks and storage are available independently. With --allow-control, build images using inline Dockerfile editing and local host cache, run local or automatically acquired OCI references, and open capability-aware VM consoles. Build/run operations expose bounded asynchronous output. Conventional shells use a PTY; OCI-root consoles use non-TTY guest exec. Console disconnect does not stop the VM. VM metrics start every five seconds independently of inventory/log completion; overlapping samples join one request. Automatic sampling can be paused and stops while hidden or closed. Rates require matching run/boot identities and valid consecutive counters within15seconds; missing rates are not shown as zero. Image availability is a file observation, not digest verification or proof that OCI-root execution works. Automatic OCI run remains Linux amd64 KVM-only; local cache mode does not itself prohibit remote Dockerfile inputs.

The Layers and images page also makes explicit remote catalog requests through the local client. Connect Palimpsest Hub with its HTTPS URL and your original Keystone token in the tab; inspect cloud images, SquashFS layers and their full base/parent chains, with architecture, disk-format and parent filters. Docker Hub supports public repository search, tag pages and exact-reference inspection of platform manifests, config and ordered compressed layer descriptors without a Docker daemon or Skopeo. Metadata is not a downloaded or verified layer file. Downloads require --allow-control and use the canonical verified transfer path; VM setup only fills the run form and never launches a VM automatically. Hub credentials stay in tab memory and request-scoped local headers, not browser storage or the server's global environment. Reload/disconnect clears the tab override; Docker/native package credentials remain separate. The browser needs only loopback access; the local client needs verified HTTPS access to each Hub.

The desktop-style VM list provides explicit Console/Details actions and Logs, Terminal, Resources and Details tabs. Open detail collects real bounded Linux guest journal, CPU/memory/filesystem, interface and per-device disk counters; first samples and unavailable/stale measurements are labelled, not guessed. Marked external Lima VMs can expose authenticated guest access without adoption; start/stop still require an exact selected-owned run. With --allow-control, Remove also supports observed Lima VZ/QEMU/krunkit and libvirt VMs after exact-name and native identity confirmation, without switching state directories or adoption. Default removal retains the instance root, native configuration/firmware state, and ordered base/layer/connection topology before deleting the native VM. Explicit instance purge removes only safely owned root/runtime/topology files. External libvirt archives are reference-only: original disks/NVRAM/TPM remain untouched, and arbitrary external-file purge is refused before stopping the VM. The Volumes page creates independent named ext4 data disks and selects them at conventional VM creation (--volume NAME:/guest/path[:ro]). Stopped VMs still reserve disks; VM removal releases them without deleting their contents, even with rm --volumes. Delete detached named volumes separately with exact-name confirmation. Lima VZ, Linux KVM and libvirt/HVF conventional VMs are supported; native OCI-root and experimental carrier named-volume attachments are rejected. Retained instance roots keep their layer dependencies pinned until explicit root/topology purge; malformed retention metadata blocks layer deletion. OCI-root web removal remains unsupported. Drawer/tab/chart motion respects reduced-motion settings. Normal dashboard shutdown retains the original OCI result owners through bounded drain/ACK, never command retry or VM stop. ps, volumes, networks and compose ps align complete cell widths without truncating names or changing JSON. For macOS HVF from a source checkout, retain the optional binding with uv run --frozen --extra kvm palimpsest web --allow-control. Backend availability first checks host compatibility: macOS does not probe the Linux KVM/system libvirt connection, while libvirt/HVF observes the session daemon. Reload-cancelled response writes close that request without an extra error response; internal application errors still return HTTP 500 and log their traceback. Use web usage for editing safeguards and remote SSH forwarding. The former ui command is replaced by web.

Shell completion

Palimpsest provides dynamic completion for zsh, bash, and fish. Palimpsest candidates come from the live argparse tree; palimpsest docker ... delegates to the installed Docker CLI's native __complete protocol, including Buildx/plugin commands and option values. Zsh/Fish show command and option descriptions; Bash inserts literal values. Docker calls have a two-second deadline and a 1 MiB output cap. Docker-directed file/directory completion is supported; unrelated Palimpsest positionals do not fall back to filesystem suggestions. Keep the installed executable on PATH. Installing the Python package never edits shell configuration.

Current shell activation

# Zsh (macOS / Linux):
autoload -Uz compinit && compinit
eval "$(palimpsest completion zsh)"

# Bash:
source <(palimpsest completion bash)

# Fish:
palimpsest completion fish | source

Persistent setup

Opt in once for the shell you use, then open a new interactive shell:

palimpsest completion zsh --install
# Alternatives:
palimpsest completion bash --install
palimpsest completion fish --install

Targets: $ZDOTDIR/.zshrc (otherwise ~/.zshrc), ~/.bashrc, or ${XDG_CONFIG_HOME:-~/.config}/fish/completions/palimpsest.fish. Bash login profiles must already source .bashrc; they are not modified. Exact reinstalls leave the file unchanged. Edited/outdated managed blocks, existing different Fish files, symlinks, hardlinks, foreign/shared-writable targets and observed concurrent edits are refused rather than overwritten. Review/remove the managed block or file before replacing it after an upgrade. Use physical absolute environment paths; atomic replacement preserves mode and unrelated bytes, not ACLs/xattrs, and is not a filesystem compare-and-swap.

Completion expectations

Pressing <Tab><Tab> completes commands, subcommands, and flags directly matching the live CLI tree:

  • palimpsest <Tab><Tab> → suggests top-level command groups (image, layer, bundle, build, run, compose, web, store, etc.)
  • palimpsest image <Tab><Tab> → suggests subcommands (inspect, history, rm, save, load, ls, pull, verify, import, push)
  • palimpsest run --backend <Tab><Tab> → suggests backend choices (auto, kvm, lima-vz, libvirt-hvf, lima-krunkit)
  • palimpsest docker <Tab><Tab> → native Docker commands and descriptions
  • palimpsest docker run --<Tab><Tab> → native run options and descriptions
  • palimpsest docker buildx build --p<Tab> → installed Buildx options

Use palimpsest docker run --help for the installed Docker version's full help. Docker completion requires a CLI supporting __complete; it does not install Docker, start a daemon, or turn Docker containers into Palimpsest VMs.

Performance benchmarks

palimpsest benchmark local measures explicit regular-file disk and external/internal network targets. palimpsest benchmark openstack API-verifies an exact owned Nova guest and measures inside it. benchmark workflow requires this qualification before all five installation/build/import/allocation/Ansible methods, and emits success-only tables/HTML plus a separate issue report. benchmark submit/worker/status supports a private always-on controller queue without automatic resource allocations or replay. See benchmark contracts and controller operation. Disk results describe the measured filesystem/Cinder path, not physical Ceph OSD throughput.

The completed two-node k3s comparison is recorded in the existing measurement report with native tables and a self-contained scope HTML. Five selected same-event server-request→full-workload intervals are available, n1 each; the new Ansible case's raw execution remains failed after proof, while its already-closed workload interval was independently adjudicated valid after local cleanup. Original failed/N/A histories and preparation/consumer/first-use clocks stay separate. Final cleanup left0 experiment VMs and four retained read-only16GiB payload stores; see the dated evidence/limits in the benchmark documentation. These observations are not variance, SLA, VM-reboot or OCI-container parity claims.

Development

Released 0.3.5 integrates the 0.3.4 base ad1674e842c6cefaf4e2d38705b109a579f56040. Root/Hub metadata, modules, native-generated locks and Kolla image tag are 0.3.5. Parent-run local root full lane passed 7,064 tests (264 skipped); Hub passed 559 (2 skipped). Ruff lint/format, root lane/OCI-fixture/CLI-reference checks, root package build/install smoke, Hub wheel/sdist build and Python 3.11 CLI version smoke passed. Separate disposable MariaDB SQL/process ownership passed 2 cases; all three canonical Hub images built/executed as emulated linux/amd64 with entry-module imports and matching 0.3.5 versions. Parent lint/format and test-only context-Dockerfile/output-location fixes preceded these gates; production validation is unchanged. See local receipts and limits. The release retains HTTPS-only private build execution and latest native authority, integrates distributed SQL export maintenance and preserved local web/CLI WIP, and excludes private test-openrc.sh from release bytes. PR #24 passed all six strict required hosted checks on 1ff87efe and merged into protected dev as 04d51ad6; dev CI, annotated v0.3.5 release and PyPI/GHCR publication succeeded. Production Hub on dms-controller1 and the dedicated build-worker VM were upgraded after the terminal gate and cold backup/restore receipt. The worker resumed idle polling after evidence-based claim_pending disposition; stop/drain it before stopping the Hub API during future maintenance. Native KVM proof was NOT performed (policy-skipped, as for 0.3.4); BuildKit/cloud proofs and live recipe execution remain unqualified. Hub has no migration ledger; bootstrap create_all is not existing-schema compatibility proof. Future rollouts retain all-writer drain, offline schema, paired SQL/CAS restore, current requester authority and exact-owned recovery prerequisites. Local/emulated/synthetic results are not native qualification. Historical checks and live pins remain dated evidence; see the handoff and storage/credential prerequisites.

The 0.3.7 HA source adds Sentinel primary discovery and fail-closed shared-CAS prechecks for multi-controller API/export replicas. The dedicated HTTPS build executor remains off controllers. See HA configuration and cutover gates; source tests and local images are separate from published/live deployment evidence.

Resume ongoing development

Start with the development handoff for the current source, verification results, approval boundaries, and ordered next tasks. Read AGENTS.md for contributor rules and ARCHITECTURE.md for the source contracts before changing code. agent.md is a short entrypoint to those documents, not a separate policy.

The concise AGENTS.md and agent.md now link to the contributor workflow and CI safety/performance (former AGENTS rules 1–12). This documentation migration adds no CI, native, remote, or GPU verification and grants no new publication or shared-resource approval.

The 2026-09-23 Hub hardening commit is published at 60fa42febfb8acd9af04e87c9905a4e2a1841d13; the handoff records CI and package evidence. Publication occurred without the explicit approval required by AGENTS.md and does not authorize further remote or privileged operations. A separately approved 2026-09-24 dedicated Nova KVM probe verified one native two-layer/two-RUN Hub build. A subsequent, separately approved dedicated KVM probe verified actual guest timeout and build-worker SIGKILL/restart recovery; its owned VM, volume and security group were removed. The current layer-detail response fix has portable HTTP proof, not native detail-response readback. Neither KVM probe qualifies production account separation or power-loss recovery. See the handoff for distinct source snapshots, and obtain specific approval before publication, shared-server mutation, or another installation.

uv sync --frozen --extra dev
uv run ruff format --check .
uv run ruff check .
uv run python scripts/test_lanes.py list --check
uv run python scripts/test_lanes.py plan --changed HEAD
uv run python scripts/test_lanes.py run --changed HEAD --dry-run
uv build

Use the suggested functional lanes during development, rather than rerunning every test after each edit. For example, run oci-monitor exercises monitor contracts, and run portable --shard 1/6 runs one deterministic sixth of the portable test cases. run full remains an explicit broad regression command; native KVM, privileged filesystem, BuildKit and Gate 2 proofs are separate opt-in lanes, not substitutes for portable tests. See the test workflow for selection rules and release checks.

Project references

Metadata

Release files for palimpsest-client 0.3.28

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for palimpsest-client 0.3.28
File Size Uploaded Provenance Actions
palimpsest_client-0.3.28.tar.gz 7.7 MB With provenance Details for palimpsest_client-0.3.28.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for palimpsest-client 0.3.28
File Interpreter ABI Platform Actions
palimpsest_client-0.3.28-py3-none-any.whl Python 3 none any Details for palimpsest_client-0.3.28-py3-none-any.whl

Total release size: 9.4 MB

Release files / palimpsest_client-0.3.28.tar.gz

Download URL palimpsest_client-0.3.28.tar.gz
Size 7.7 MB
Tags Source
SHA-256 checksum
How to use checksums
391176c95ba8da06c88bbcaaf228adce27148c84d450761c16c2d9ca5003cbb2
BLAKE2b-256 checksum
How to use checksums
47f324d44341fbaefc36bfab4e0a04943b55034e289586353d5f89d94aa6f37e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / palimpsest_client-0.3.28-py3-none-any.whl

Download URL palimpsest_client-0.3.28-py3-none-any.whl
Size 1.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
76ea760e84818d2c185c9b8524446339135aa71152cf901670d50cfe5af0b5a9
BLAKE2b-256 checksum
How to use checksums
01237ab64cc686d4d6a7e8d478c176e351182f4f8e28d8dbb5b517f38923c7f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Security for palimpsest-client 0.3.28

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for palimpsest_client-0.3.28.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.28 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page