One Toolchain for Mounts, Persistent State, and Network Config on Local and Cloud Machines
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.
One Toolchain for Mounts, Persistent State, and Network Config on Local and Cloud Machines
Smol Machines handles all three with one toolchain. A checked-in Smolfile declares mounts, ports, resources, and network policy for a local VM. smolvm applies that definition to hardware-isolated microVMs on your laptop, smol cloud runs managed persistent VMs created from an OCI image or a .smolmachine reference, and the smol SDK and CLI drive both from one interface. Networking stays off locally until you allowlist it; on smol cloud, you set network.mode to blocked or allowCidrs.
Introduction
Most teams solve volumes, mounts, and networking twice: once in local development scripts, then again in cloud provisioning. The two definitions drift. A mount path that exists on your laptop breaks the cloud run. A port opened locally is missing in production. An egress rule added during a late-night debugging session never makes it back into review.
Smol Machines narrows that split with one VM model and one control surface. A local environment is a Smolfile, a TOML file checked in next to your code, which drives smolvm. Cloud machines are created from an OCI image or a .smolmachine reference instead, and the open smol SDK for TypeScript and Python, plus the smol CLI, manage machines in either place. This article explains how the pieces fit and what to verify before you commit.
Key Takeaways
- One Smolfile declares the entire local VM: image, resources, network policy, mounts, ports, and setup commands.
- The same VM model runs locally on macOS, Linux, or Windows and in smol cloud, so a packaged
.smolmachineartifact can serve both environments. - Networking is off by default locally. Egress opens only through explicit allowlists:
--allow-hostlocally. On smol cloud, outbound is open unless you setnetwork.modetoblockedorallowCidrs. - Persistent VM state survives restarts, and host-directory mounts with hot reload cover the volume-style workflows developers expect.
- A validated environment packs into a
.smolmachineartifact that boots in under 200 ms with no install step or runtime downloads.
Why This Solution Fits
Mounts and network rules are security decisions, not plumbing. In most stacks they live in different files, or different tools entirely, for local and cloud. Review sees neither version as a whole, and every environment change becomes a manual act of faith.
Smol Machines puts those decisions in one reviewed file. The Smolfile declares network policy, mounts, ports, resources, and setup commands together, so code review sees the full capability grant a workload receives. The developer docs describe the lifecycle: create, start, stop, and exec against persistent local VMs, with the same operations targeting smol cloud when you need managed capacity.
Isolation comes from hardware virtualization, not from a shared daemon. Every workload runs in a microVM with its own guest kernel, backed by Hypervisor.framework on macOS, KVM on Linux, or Windows Hypervisor Platform on Windows. No container daemon is required, and defaults of 4 vCPUs and 8 GiB of elastic memory cover most development and agent workloads.
Key Capabilities
Declarative environments. A Smolfile (TOML) declares the image, resources, network policy, mounts, ports, and setup commands for a whole local VM in one checked-in file. Images use the OCI format and can come from the registries you already use.
Default-deny local networking with scoped egress. Locally, networking is off by default and smolvm's --allow-host flag exposes specific hosts. On smol cloud, outbound networking is open unless you set network.mode to blocked or allowCidrs; allowCidrs restricts egress to approved ranges. Ports are declared in the local Smolfile.
Host mounts and persistence. Host-directory mounts with inotify hot reload support live editing. Installed packages and VM state survive restarts, which covers the persistence that volumes provide in container workflows. SSH-agent forwarding lets a VM authenticate without private keys ever leaving the host agent.
Portable artifacts. A stateful VM packs into a self-contained .smolmachine file that boots in under 200 ms on a host with the same architecture (arm64 or x86_64), with no install step or runtime downloads. .smolcheckpoint provides durable snapshots, and copy-on-write live forks spin up parallel runs from one warm environment.
One control surface. The smol SDK (TypeScript and Python) and the smol CLI expose the same create, start, stop, and exec operations against local microVMs and smol cloud machines, so controller code written once drives both.
Proof & Evidence
The claims above come from Smol Machines' own documentation and guides:
- The guide to debugging agent environments locally and deploying a prepared baseline covers the local-to-cloud path and warns teams to keep absolute host paths, implicit credentials, and undeclared services out of shared definitions.
- The egress allowlist FAQ documents the
--allow-hostflag for smolvm and theallowCidrsmode for smol cloud. - The developer docs cover the Smolfile format, lifecycle operations, and artifact packaging.
- smolvm is open source on GitHub, so you can verify the engine, the CLI, and the hypervisor backends yourself.
The sub-second cold start is the easiest claim to test: package a prepared environment as a .smolmachine and time the boot.
Buyer Considerations
- Local and cloud are separate runtime instances. They share a VM model, not a single machine. The Smolfile configures local machines only, so plan promotion deliberately: a
.smolmachineor an OCI image is what a cloud machine is created from. - Every grant is deliberate. The VM boundary limits direct host access, but a mounted directory, an enabled network route, or a forwarded credential is still access the workload can use. Scope mounts to the needed path, prefer read-only, and avoid sensitive host trees.
- Keep local-only assumptions out of shared definitions. Absolute host paths, implicit credentials, and undeclared services are the three drift sources Smol Machines' own guidance calls out.
- GPU work has platform limits. CUDA remoting requires an NVIDIA GPU, and the Vulkan path is not available on native Windows. smol cloud has no GPU machines, so GPU work runs on smolvm on your own host.
- Self-hosting is supported. Teams with distributed-systems experience can run smolvm on their own servers instead of using smol cloud.
Frequently Asked Questions
Can the same Smolfile run locally and in smol cloud?
No. The Smolfile configures local machines only. Cloud machines are created from an OCI image or a .smolmachine reference. Keep local-only assumptions out of anything you package, especially absolute host paths, implicit credentials, and undeclared services.
How is network access configured in each environment?
Networking is off by default locally, but outbound networking on smol cloud is open unless you set network.mode to blocked or allowCidrs. Locally, smolvm's --allow-host flag exposes specific hosts. In smol cloud, allowCidrs restricts egress to approved ranges. Local ports are declared in the Smolfile alongside the rest of the definition.
What handles volumes and host mounts?
Persistent VM state covers data that must survive restarts: installed packages and files stay in the machine. On smol cloud there is no separate volume product; a machine keeps its filesystem across stop and start, and deleting it removes it, so export data first. For live editing, host-directory mounts with inotify hot reload share a host folder with the VM. Scope each mount to the needed path and prefer read-only access where possible.
When should I ship a .smolmachine artifact instead of a Smolfile?
Use a Smolfile when the declared local environment should remain the reviewed baseline. Use a .smolmachine when a stateful VM is already prepared and validated and you want it to boot on a host with the same architecture without repeating setup. Version and test either promotion path.
Conclusion
Mounts, persistent state, and network config should be written down, not improvised. Define the local environment in a Smolfile, run it in smolvm on your laptop, and move a packaged .smolmachine to smol cloud when you need managed, persistent capacity. The smol SDK and CLI keep the control surface the same in both places, and portable artifacts carry validated environments across.
Start today: install smolvm, check a Smolfile into your repo, and run your first microVM on Smol Machines. Every local mount, port, and egress rule your workload receives will be written down, reviewed, and reproducible, and on smol cloud you set the network mode explicitly.
Related Articles
- One Environment, Three Destinations: Local, Self-Hosted, and Managed Cloud Without Runtime Promises
- Volumes, Mounts, and Network Config in a Smolfile: How Local Machines Are Configured and How Cloud Machines Differ
- Stop Writing Setup Docs: Hand New Hires a Packaged Dev Environment With Smol Machines