SkillsReviewed · smol-machines

smolvm pack skill

The smolvm pack skill gives developers and coding assistants instructions for shipping prepared Linux virtual machines, but artifacts need compatible hosts and checks that installed files survive. It includes Bash scripts for packing images or stopped machines, checking preserved state and cleaning up. Output is two files by default; a single executable requires --single-file.

Researched 16 Nov 2026

In short.

The smolvm pack skill helps developers and coding assistants package prepared Linux environments, with host compatibility and preserved files requiring explicit verification. Its strongest feature is checking a known value before and after export, because an artifact can boot while missing intended state. Source-reported results cover different releases on different platforms: macOS has newer successful records, while Windows and Linux aarch64 have documented failures. Independent execution and current-release compatibility are not established.

Researched and written by an AI model and checked by a second AI model. How it works

Covers all 11 supplied files under docs/pack at revision 9890e8a28b06a03270de95488122535ba690210b: SKILL.md, README.md, four references and five Bash scripts, plus the repository LICENSE and THIRD-PARTY-NOTICES.md. Excludes the broader runtime implementation, release binaries, guest-image contents, related skill folders and linked material not supplied. Script observations come from the supplied text. No code was executed; performance replication, complete filesystem preservation, cross-host portability, registry behavior and later-release compatibility remain unassessed.

The overview

Identity

Published in smol-machines/smolvm, docs/pack contains an assistant-oriented SKILL.md, a README, four reference documents and five Bash scripts. Its purpose is to turn an image or provisioned machine into a runnable artifact containing the VM runtime and prepared filesystem.

The original location is [https://github.com/smol-machines/smolvm/tree/main/docs/pack]. The supplied version is pinned to revision 9890e8a28b06a03270de95488122535ba690210b; its behavior should not be assumed to match a later main branch.

Assessment

This is useful when the deliverable is an environment containing specific installed files. pack-machine.sh writes a marker, reads it back from the source and refuses export if it is absent. verify-pack.sh then checks that value inside the artifact. This addresses a documented failure in which startup succeeds despite missing prepared state.

The checks have a narrow scope. A marker confirms one value, and a Linux kernel string confirms a guest response; neither establishes application correctness, complete filesystem preservation or security. The scripts also need care around machine-name collisions and cleanup.

Users

The skill suits developers handing over prepared command-line environments and coding assistants carrying out that work. Beginners get an ordered procedure and explanations of common failures; experienced developers get release-specific flags, resource settings, storage details and preservation checks.

The Bash helpers cover macOS and Linux. Windows users must translate the procedure into direct CLI commands, and the supplied Windows record reports artifacts failing to run on several releases through v1.22.2.

Capabilities

The procedure covers packing a stock image and exporting a stopped provisioned machine. Artifacts support temporary run sessions and persistent start, exec and stop operations. A .smolmachine payload can also create a named machine whose subsequent writes persist across restarts.

Machine packs carry the root filesystem and workload settings. /workspace requires --include-workspace; host mounts, remote volumes and credential bindings are excluded. The documentation describes branched-machine exports from v1.16.1, SSH-agent forwarding from v1.18.1 and source CPU/memory inheritance from v1.29.0, subject to overrides.

Using it

Requirements

Building artifacts requires smolvm and usable virtualization: Hypervisor support on macOS or accessible /dev/kvm on Linux. The helpers require Bash. The embedded runtime removes a receiving-host installation step, but the executable still needs a compatible host operating system, architecture and virtualization environment.

In the documented releases, image packing starts a helper configured for four vCPUs and 8192 MiB; --mem changes the artifact rather than this helper. From v1.16.2, machine export normally requests 4096 MiB or less on Linux and accepts SMOLVM_EXPORT_HELPER_MEMORY_MIB. These are memory caps, so available-memory comparisons do not establish a minimum host requirement or guarantee successful startup.

Mechanism

Default output separates a host-specific executable stub from a .smolmachine payload containing filesystem layers and storage. Both files must travel together. --single-file embeds the payload in one executable, with a documented warning about possible macOS notarization issues. The README calls the payload cross-platform, but the supplied records do not establish general cross-platform reuse; one foreign-platform sidecar invocation was rejected.

For eligible single-layer container packs on macOS, the storage-seed path extracts files inside a short-lived Linux helper using two vCPUs, 1 GiB RAM and no network. Each machine receives an independent writable APFS clone of the prepared ext4 disk. Checkpoints, workspace seeds, multiple layers and OCI whiteouts use the previous import path.

Setup

Keep the folder hierarchy intact and install smolvm separately. The scripts find it on PATH or through SMOLVM. From docs/pack, scripts/preflight.sh reports version, virtualization access, helper memory and relevant path problems without starting a VM. Its ready result does not prove that packing or booting will succeed.

Choose an unused machine name and output path. pack-image.sh accepts an image and output name; pack-machine.sh accepts a name beginning with smolskill-. Output names identify the executable, so do not append .smolmachine. If output paths change, pass the same paths explicitly to verify-pack.sh.

Example

For an existing machine named myapp, first identify a file representing required state. The documented sequence reads its value with smolvm machine exec --name myapp -- tail -1 /root/provisioned.txt, stops the machine with smolvm machine stop --name myapp, then exports it with smolvm pack create --from-vm myapp --output ./myapp-portable --single-file.

From docs/pack, use scripts/verify-pack.sh --machine ./myapp-portable --marker-path /root/provisioned.txt --marker EXPECTED_VALUE, replacing EXPECTED_VALUE with the source file's actual last line. Restart the source with smolvm machine start --name myapp when needed. This is a documented usage example; its outcome is not independently established.

Assessment & evidence

Limitations

Windows records report first-layer extraction failures with os error 123 on releases from v1.18.2 through v1.22.2 on one host. Linux aarch64 packing attempts on v1.18.2 and v1.22.2 were blocked by guest startup timeouts. A fix in a later release is not established. Successful transfer between compatible separate hosts, registry operations and Linux SSH-agent forwarding are also not demonstrated.

Static inspection shows pack-machine.sh records the chosen name without explicitly checking that machine creation succeeded. An existing machine with that prefixed name could therefore become eligible for cleanup. cleanup.sh deletes recorded prefixed machines and their branch descendants; its optional --reap can kill other matching VMs, and --artifacts removes the supplied files.

The instructions contain a resource-default inconsistency: the v1.29-specific passage says CPU and memory caps are inherited unless overridden, while a later security paragraph still describes fixed defaults. Confirm behavior for the installed release.

Reasoning

Choose image packing when the required environment is the image itself; choose machine packing when the installed state is the deliverable. A successful boot cannot distinguish these outcomes because the guest can start despite missing intended files.

Use assertions tied to the application: package versions, configuration values, required data and relevant ownership or permissions. A marker provides a useful minimum check. verify-pack.sh also compares extraction-cache directory counts between runs, which is an indirect reuse indicator rather than a cache-integrity check.

Alternatives

Developers can invoke smolvm pack create directly and supply their own preservation checks when they do not need assistant instructions or the bundled helpers. The source points to dev-env for a machine kept for repeated development and throwaway-machine for running untrusted code.

Those related folders and competing packaging tools are outside the supplied material. Their comparative capabilities, costs and security are not assessed.

Evidence

All execution outcomes are source-reported; independent runtime verification is absent. The skill reports successful marker preservation on macOS arm64 v1.29.0 on 2026-10-15. Its Linux and Windows records cover different releases and conditions, so they do not establish equivalent support.

The 2026-10-22 storage-seed document reports first-create times of 50.414 seconds versus 5.393 seconds for a 100,000-file fixture on an M4 Max with 36 GiB RAM. These are single observations using development-profile binaries against a v1.31.2 baseline, not release-build benchmarks or general application-speed estimates. The larger synthetic fixture is explicitly distinct from the customer's original 3.2 GB pack; that pack and direct language SDK packages were not exercised.

The supplied files were captured on 2026-11-16 at revision 9890e8a28b06a03270de95488122535ba690210b. Runtime implementation files and linked pull requests are referenced by the documents but are not included.

Access & freshness

Costs

The Apache license grants royalty-free permissions, but no purchase price, support price or operational cost estimate is supplied. Total cost is unknown and depends on host resources, storage, downloads and the contents being packaged.

Disk requirements can exceed the compressed payload substantially. Recorded default-mode size reports omit appended runtime libraries, so actual files should determine transfer and storage budgets. macOS storage seeds use a default 20 GiB cache budget, can retain a single seed exceeding it and temporarily need space for both the layer TAR and extracted filesystem. The documentation also records an anonymous Docker Hub pull-limit failure.

Rights

The repository LICENSE identifies Apache-2.0 terms for smolvm. It permits reproduction, modification and redistribution subject to conditions including providing the license, marking modified files and retaining applicable notices. It provides no warranty and grants no general trademark permission.

Runtime bundles have additional terms: libkrun is Apache-2.0; libkrunfw is LGPL-2.1-only and bundles a GPL-2.0-only Linux kernel; macOS rendering components include MIT and Apache-2.0 libraries. The notices identify corresponding source locations. A redistributed executable containing these components needs their applicable notices and obligations considered separately. Licenses for arbitrary guest images and user files are unknown.

Freshness

The main procedure and preflight identify v1.29.0 as their verified version, with the newest full macOS procedure record dated 2026-10-15. Storage-seed validation is dated 2026-10-22. These dates describe separate evidence scopes rather than a single release validated across every platform.

The text also describes option-handling changes around v1.34 without establishing a matching complete rerun. Current release status, resolution of the Windows failures and compatibility with later binaries remain unknown. Check the installed binary's help and resulting artifact settings before relying on version-sensitive instructions.

Actions

Before adoption, confirm the target host and smolvm release, use an unused machine name and decide whether one executable or a two-file artifact is required. Verify application-specific state on the source and artifact, including /workspace when needed. Establish a working target-host run before distributing an artifact; the supplied Windows failures warrant particular attention.

Inspect the source filesystem for credentials, histories and caches before export, because rootfs files travel with it even though credential bindings do not. Check inherited network and resource settings. Forward an SSH agent only to a trusted artifact: private keys stay on the host, but the guest can request signatures.

Review recorded machine names, branch descendants and artifact paths before cleanup. Avoid --reap unless terminating every matching VM is intended, and measure actual output-file sizes.

Evidence for this report

LICENSEnotice · checked 2026-11-16
THIRD-PARTY-NOTICES.mdnotice · checked 2026-11-16
docs/pack/README.mdselected · checked 2026-11-16
docs/pack/SKILL.mdselected · checked 2026-11-16
docs/pack/references/macos-storage-seeds.mdselected · checked 2026-11-16
docs/pack/references/traps.mdselected · checked 2026-11-16
docs/pack/references/windows.mdselected · checked 2026-11-16
docs/pack/scripts/cleanup.shselected · checked 2026-11-16
docs/pack/scripts/pack-image.shselected · checked 2026-11-16
docs/pack/scripts/pack-machine.shselected · checked 2026-11-16
docs/pack/scripts/preflight.shselected · checked 2026-11-16
docs/pack/scripts/verify-pack.shselected · checked 2026-11-16