Skip to content

An open-source, faster Devin alternative

TypeScript

docs(microvm): two migration blockers found on review — templates carrying a rootfs image are refused outright (which is what most existing templates are, so they need rebuilding), and disk is fixed at ~16GB with diskMB accepted-but-ignored, down from a 20GB default; both added to the checklist, FAQ and comparison tables

Brian Reardon085baf762c4d
diff --git a/docs/microvm/faq.mdx b/docs/microvm/faq.mdx
index 5aa920ac..9a9f82b2 100644
--- a/docs/microvm/faq.mdx
+++ b/docs/microvm/faq.mdx
@@ -21,6 +21,19 @@ description: "Questions worth answering before you migrate"
files.
</Accordion>
+ <Accordion title="Will my existing templates work?">
+ Probably not. A template that carries a rootfs image — which is what templates built on the
+ current runtime are — is refused at create with a clear error, because this runtime can only
+ replay the workspace half and silently dropping the rest would give you a template that
+ looks like it worked and hasn't. Rebuild them as workspace templates or checkpoints. See
+ [Templates](/microvm/templates).
+ </Accordion>
+
+ <Accordion title="How much disk do I get?">
+ About 16 GB, fixed. `diskMB` is accepted but ignored, so you cannot ask for more. That is
+ less than the 20 GB default on the current runtime, and well under its 256 GB ceiling.
+ </Accordion>
+
<Accordion title="Do I need to change my code?">
For most workloads, no. Check for `scale`, `setAutoscale`, mounts, image builds and
`createFromCheckpoint`, and review anywhere you assume a sandbox lives indefinitely. The
diff --git a/docs/microvm/migrate.mdx b/docs/microvm/migrate.mdx
index 386310d3..113dfa95 100644
--- a/docs/microvm/migrate.mdx
+++ b/docs/microvm/migrate.mdx
@@ -8,7 +8,7 @@ out ahead of time whether that move is a non-event or something you need to plan
## Step 1 — answer four questions
-Most workloads are unaffected. These five are what separate the two cases:
+Most workloads are unaffected. These seven are what separate the two cases:
<Steps>
<Step title="Does any sandbox need to live longer than 8 hours?">
@@ -26,6 +26,17 @@ Most workloads are unaffected. These five are what separate the two cases:
[Sandbox sizes](/microvm/sizes).
</Step>
+ <Step title="Do you use templates built on the current runtime?">
+ A template that carries a rootfs image is refused outright. Most existing templates do.
+ They need rebuilding as workspace-only templates or checkpoints. See
+ [Templates](/microvm/templates).
+ </Step>
+
+ <Step title="Does any sandbox need more than ~16 GB of disk?">
+ Disk is fixed at roughly 16 GB and `diskMB` is ignored — less than the 20 GB you get today.
+ Data beyond that needs to live outside the sandbox.
+ </Step>
+
<Step title="Do you call scale, autoscale, or mount anything?">
None of these exist on the new runtime. See [What's not supported](/microvm/not-supported).
</Step>
@@ -34,7 +45,7 @@ Most workloads are unaffected. These five are what separate the two cases:
</Step>
</Steps>
-If all five are "no", your migration is a configuration change and you can stop reading here.
+If all seven are "no", your migration is a configuration change and you can stop reading here.
## Step 2 — find the calls in your code
diff --git a/docs/microvm/not-supported.mdx b/docs/microvm/not-supported.mdx
index fb3a93e4..599a737b 100644
--- a/docs/microvm/not-supported.mdx
+++ b/docs/microvm/not-supported.mdx
@@ -16,6 +16,7 @@ These come from the platform underneath. We are not going to ship them.
| **Live-memory checkpoints** | The platform exposes no snapshot or memory-export operation. A filesystem archive is the only checkpoint that can exist. |
| **Mounts (FUSE, NFS, overlay, 9p)** | The guest does not have `CAP_SYS_ADMIN`, and it is absent from the bounding set, so `mount` cannot be performed at all. |
| **Resizing a running sandbox** | Memory is a property of the image a sandbox launched from. It cannot be changed after launch. |
+| **Choosing disk size** | Disk comes from the image and is fixed at ~16 GB. `diskMB` is accepted but ignored. |
| **Live migration** | There are no hosts of ours to migrate between. |
Calls into these surfaces are **refused**, not silently ignored. `scale()` returns a clear
@@ -31,6 +32,7 @@ These are gaps in our implementation, not the platform's.
| **Image builds** | Declarative `image:` manifests and the build pipeline are unavailable. Use [templates](/microvm/templates) or checkpoints. |
| **Checkpoint patches** | The patch API is not wired to this runtime. |
| **Promoting a checkpoint to full** | Depends on memory capture, so it is blocked behind a permanent limit. |
+| **Templates carrying a rootfs image** | Refused at create. Templates built on the current runtime capture the whole disk; this runtime can only replay the workspace. See [Templates](/microvm/templates). |
## Behaves differently rather than missing
diff --git a/docs/microvm/sizes.mdx b/docs/microvm/sizes.mdx
index e1b55131..b52eb539 100644
--- a/docs/microvm/sizes.mdx
+++ b/docs/microvm/sizes.mdx
@@ -48,6 +48,22 @@ Measuring CPU from inside the guest is misleading: `nproc` and `/proc/cpuinfo` r
underlying machine rather than your sandbox's share, so a 4 GB sandbox may report 8 processors.
Benchmark actual throughput rather than reading the core count.
+## Disk
+
+Disk is **fixed at roughly 16 GB** and is not configurable. It comes from the image, the same
+way memory does.
+
+<Warning>
+`diskMB` is accepted by the create API and has **no effect** — asking for 64 GB returns `201`
+and gives you the standard ~16 GB. Do not rely on it.
+</Warning>
+
+This is smaller than the current runtime's 20 GB default, and much smaller than the 256 GB
+ceiling it allows. If any workload needs more disk than 16 GB, it needs somewhere else to put
+the data — object storage, or a service it streams from — before you migrate.
+
+Roughly 14 GB of the 16 GB is free on a fresh sandbox; the rest is the base image.
+
## Which sizes are available to you
Every size above is *possible*; which ones are *published in your region* is configuration.
diff --git a/docs/microvm/templates.mdx b/docs/microvm/templates.mdx
index 5bc62aff..29e14c77 100644
--- a/docs/microvm/templates.mdx
+++ b/docs/microvm/templates.mdx
@@ -1,36 +1,69 @@
---
title: "Templates"
-description: "Starting from a prepared environment"
+description: "Which templates carry over, and which do not"
---
-Named templates work on this runtime.
+Templates work on this runtime, but **the templates you have today probably do not.** This is
+the migration issue most likely to affect you, and it is worth checking before anything moves.
+
+## How a template is applied here
+
+A template create claims a standard pooled sandbox and unpacks the template's **workspace
+archive** on top of it. That keeps the fast pooled create and makes a template cost a tarball
+rather than a separately published machine image.
```typescript
const sandbox = await Sandbox.create({ templateID: "my-template" });
```
-A template create claims a standard pooled sandbox and unpacks the template's workspace onto
-it. That means a template costs an archive rather than a separately published machine image,
-and new templates are available immediately rather than after an image build.
+## The catch: rootfs templates are refused
+
+<Warning>
+A template that carries a **rootfs image** cannot be used on this runtime. The create fails with
+*"template … carries a rootfs image, which this runtime cannot restore."*
+</Warning>
+
+Templates built on the current runtime capture the **whole disk** — every system-level change,
+not just your workspace. This runtime can only replay the workspace half, and doing that
+silently would hand you your files while dropping every system change the template existed for:
+a template that looks like it worked and hasn't.
+
+So it refuses instead. That is the right failure, but it means:
+
+**Any template that installed system packages, changed system configuration, or was built
+before your org moved will need rebuilding on the new runtime.**
-## What a template carries
+## What to do
-The workspace — your files, installed dependencies, anything on disk. It does not carry a
-memory image, for the same reason [checkpoints](/microvm/checkpoints) do not.
+<Steps>
+ <Step title="List your templates and try each one">
+ A refused template fails loudly at create with the message above. That is the fastest audit
+ — you do not need to inspect anything.
+ </Step>
+ <Step title="Rebuild the ones that fail">
+ Start a sandbox on the new runtime, install what the template provided, and capture it as a
+ [checkpoint](/microvm/checkpoints) or a new template. What can be captured is the
+ filesystem, so anything you can install with files and packages carries over.
+ </Step>
+ <Step title="Move system-level setup into the image, or into your startup">
+ If the template depended on changes outside the workspace, they need to live somewhere else
+ — either in a published image (talk to us) or as a step your sandbox runs on boot.
+ </Step>
+</Steps>
-## Image builds are not available yet
+## Image builds are not available
<Warning>
Declarative image manifests (`image:` on create) and the image build pipeline are **not
-supported** on this runtime. They depend on a build fleet that this runtime does not have.
+supported** on this runtime. They depend on a build fleet it does not have.
</Warning>
-If you build images today, that workflow needs an alternative before you migrate. The two that
-work now:
+If you build images today, that workflow needs an alternative before you migrate:
<CardGroup cols={2}>
- <Card title="Templates" icon="layer-group">
- Prepare a workspace once and start sandboxes from it.
+ <Card title="Workspace templates" icon="layer-group">
+ Prepare a workspace once and start sandboxes from it — as long as it does not need a
+ rootfs.
</Card>
<Card title="Checkpoints" icon="camera">
Install into a sandbox, checkpoint it, and restore that checkpoint when you need the
diff --git a/docs/microvm/whats-different.mdx b/docs/microvm/whats-different.mdx
index 19f85ec5..dcd9b9a8 100644
--- a/docs/microvm/whats-different.mdx
+++ b/docs/microvm/whats-different.mdx
@@ -17,6 +17,8 @@ Everything not listed here behaves identically, and the same SDK code runs on bo
| Resize a running sandbox | supported | not supported |
| Sizes | any memory value at create | a fixed enum, 512 MB – 8 GB, default 4 GB |
| CPU | selectable via `cpuCount`, scales with memory | allocated by the platform; `cpuCount` is not a control |
+| Disk | 20 GB default, up to 256 GB via `diskMB` | **fixed ~16 GB**; `diskMB` is ignored |
+| Existing templates | work | **refused if they carry a rootfs** — most do |
| Mounts (FUSE/NFS/overlay) | supported | not possible |
| Image builds | supported | not yet |
| Fork from a checkpoint | supported | not yet |