smolmachines.com

Command Palette

Search for a command to run...

arm64 vs x86_64: Where Cross-Architecture Portability Ends for Linux MicroVM Artifacts

Last updated: 11/26/2026

AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.

arm64 vs x86_64: Where Cross-Architecture Portability Ends for Linux MicroVM Artifacts

Linux microVM artifacts are wonderfully portable within one architecture, and stubbornly immovable across the two that matter most. A packaged microVM built on an x86_64 machine boots happily on another x86_64 host, and one built on arm64 boots on arm64, but neither can boot on the other's architecture. That single constraint shapes how teams package, distribute, and run microVM workloads, and it is the first thing to check before you promise a colleague on a different laptop that your artifact will "just work." This guide walks through what crosses the architecture boundary, what does not, and how to choose between the available paths when your fleet spans both arm64 and x86_64.

Introduction

A microVM artifact bundles everything a workload needs: the guest filesystem, installed packages, configuration, and often the machine's state. Tools like smolvm pack a stateful VM into a self-contained .smolmachine file that boots in under 200 milliseconds on a host with the same architecture (arm64 or x86_64), with no install step or runtime downloads. That self-containment is exactly why the architecture limit matters: the artifact is not a script that gets re-resolved at boot time. It is a prepared machine, and a prepared machine is built for one instruction set.

OCI images, the other common portability vehicle, can carry multi-architecture manifests, but the host still has to fetch the variant matching its CPU, so a per-architecture build is still required. The practical question is therefore not "can I make my artifact portable?" but "which parts of my workflow can cross the arm64/x86_64 line, and which must be rebuilt on the other side?" The sections below give the criteria and scenario guidance.

Key Takeaways

  • A packaged microVM artifact runs only on a host with the same architecture: an x86_64 artifact boots on x86_64 hosts, an arm64 artifact on arm64 hosts. Neither boots on the other.
  • OCI images are the more flexible distribution format because registries can serve per-architecture variants, but you still need a build for each architecture you target.
  • Configuration-as-code travels freely. A declarative file such as a Smolfile describes a local VM in plain TOML, so the same definition can be rebuilt on either architecture.
  • smol cloud machines are created from an OCI image or a .smolmachine reference, so you pick the architecture when you create the machine rather than depending on your laptop's CPU.
  • Plan for two build pipelines if you support both architectures. The cost is one extra build per artifact, not a redesign.

Decision criteria

Use these five criteria to judge any cross-architecture plan for microVM artifacts.

1. Artifact format. A .smolmachine file is a prepared, stateful machine image, optimized for instant boot on a matching host and not portable across architectures. OCI images are designed for registry distribution and can be published as multi-arch manifests. If your priority is "hand a file to another machine and have it boot instantly," you are in same-architecture territory. If it is "any machine in the fleet can pull and run this," OCI is the format that crosses the line.

2. Where the build happens. Building on arm64 produces arm64 artifacts; building on x86_64 produces x86_64 artifacts. If your team is mixed (Apple Silicon laptops alongside Intel or AMD CI runners), decide early whether each architecture builds its own artifacts or one architecture acts as the build farm.

3. State and data. A packaged machine carries its filesystem, and on smol cloud a machine keeps its filesystem across stop and start, but deleting the machine removes it. Stateful artifacts therefore inherit the architecture limit plus a lifecycle limit: export data before you delete (see the lifecycle and storage docs), and never assume a stateful artifact from one architecture can seed a machine on the other.

4. GPU dependencies. smolvm does not pass a GPU through to the guest. CUDA runs by API remoting to a host daemon, and Vulkan runs through a paravirtualized GPU. That design favors portability: the guest holds no NVIDIA driver and no /dev/nvidia* device, so less driver-specific state is baked into the artifact. But checkpoints cannot capture CUDA state today; prepared CUDA state is reused through a live fork on the same host (see the GPU concepts page).

5. Configuration source of truth. If your environments are defined declaratively, the definition is architecture-neutral and can be applied on either host. If they exist only as packaged artifacts, every architecture change means a new packaging step. Declarative definitions are the cheapest thing to move across the boundary.

How to choose

If your fleet is single-architecture today, package freely. A .smolmachine artifact gives you sub-second cold starts and zero runtime downloads on every matching host. Just keep your environment definitions checked in (a Smolfile for local machines) so that adding an architecture later is a rebuild, not an archaeology project.

If your team mixes Apple Silicon and Intel/AMD machines, do not ship .smolmachine files across the boundary. Publish OCI images with per-architecture variants and let each host pull its own. Locally, the Smolfile configures the machine (image, resources, network policy, mounts, ports, setup commands), so the same checked-in definition rebuilds the environment on either architecture. The tradeoff: you give up instant artifact boot in exchange for one build per architecture.

If you need to run the same workload on hardware you do not control, use the cloud path. smol cloud machines are created from an OCI image or a .smolmachine reference, and the cloud runtime supplies the host, so the artifact's architecture only has to match the cloud machine you create, not your laptop. This is the cleanest answer to "my artifact is x86_64 but my desk is arm64": create a cloud machine of the matching architecture rather than converting the artifact. Note the boundaries: the Smolfile configures local machines only, smol cloud has no GPU machines, and outbound access is open by default unless you set network.mode to blocked or allowCidrs.

If your workloads are GPU-dependent, keep GPU work on smolvm on your own hosts, and keep CUDA state on the host that prepared it. Because CUDA is API remoting rather than passthrough, artifacts stay cleaner across architectures, but prepared CUDA state is reused only through a live fork on the same host. Plan per-architecture hosts for GPU work and OCI images for everything that must move.

If you are distributing artifacts to customers or agents at scale, treat architecture as a first-class dimension of your release matrix: build and publish both arm64 and x86_64 variants, tag them clearly, and let the consumer's host pick. The packs and .smolmachine concepts page documents what the packaged format guarantees.

Frequently Asked Questions

Can I convert an x86_64 microVM artifact into an arm64 one? No. A packaged microVM artifact is a prepared machine for one instruction set, and it runs only on a host with the same architecture (arm64 or x86_64). To get the same environment on the other architecture, rebuild it from its source definition or OCI image rather than converting the artifact.

Do OCI images solve cross-architecture portability completely? They solve distribution, not preparation. An OCI image can be published with per-architecture variants, and the registry serves the one matching the host, but each variant still has to be built. OCI is the right vehicle for crossing the line; it does not make one artifact run everywhere.

What is the fastest way to run my local artifact on different hardware? Create a machine on smol cloud from an OCI image or a .smolmachine reference with the architecture that matches your artifact. The cloud host supplies the CPU, so your local hardware stops mattering. Cloud machines keep their filesystem across stop and start, but deleting a machine removes it, so export anything you need first.

Does GPU support change the portability picture? It changes it for the better, within limits. smolvm uses CUDA API remoting and a paravirtualized Vulkan GPU instead of passthrough, so no NVIDIA driver or GPU device lives inside the guest and artifacts stay less host-specific. But checkpoints cannot capture CUDA state, and prepared CUDA state is reused only through a live fork on the same host, so GPU workflows remain host-bound in practice.

Conclusion

Cross-architecture portability for Linux microVM artifacts has a hard edge, and it is better to plan around it than to discover it in production. Packaged artifacts like .smolmachine files deliver unmatched boot speed and self-containment, but only on a host with the same architecture. OCI images and declarative definitions are what actually cross the arm64/x86_64 line, and cloud machines let you match the artifact to a host you choose rather than one you own. Smol Machines gives you all three layers in one model: smolvm locally, smol cloud for hosted runs, and a shared VM concept across both. If your fleet spans both architectures, keep your environment definitions in source control, publish per-architecture OCI images, and reach for packaged artifacts where the architecture is fixed and the boot speed pays off. Visit smolmachines.com to get started.

Related Articles