127.0.0.1. There’s no second machine, no VPN and no open port. It’s the quickest way to try ephemera.
Every sandbox is still its own microVM, with its own kernel, no network unless you allow it, and a signed record of what it did. What you give up is the other half: the work no longer runs off your laptop.
What the machine needs
- x86_64 Linux with KVM. Check with
ls /dev/kvm. ephemera is tested on Ubuntu 24.04. - systemd, which runs the host agent as a service.
- Memory to spare. An idle sandbox costs about 60 MB, and a busy one uses what its workload uses, up to 1 GB by default. A 16 GB laptop runs a handful of busy sandboxes next to everything else.
Set it up
1
Make a join code
In the dashboard, under Hosts, choose Make a join code. It works once, for 15 minutes.
2
Install the host agent
--address 127.0.0.1 makes the host listen on this machine only. The installer takes a few minutes: it installs Firecracker and builds the guest image.3
Install the CLI and sign in
4
Run something
From a git repository:The first run pins the host’s key and takes a few seconds; later ones take about half a second. If anything fails,
ephemera doctor says what.On Windows, with WSL2
WSL2 runs a real Linux kernel, and on Windows 11 it can give that kernel KVM. Do the steps above inside an Ubuntu WSL distribution, after two checks:-
KVM. In WSL,
ls /dev/kvmshould list it. If it doesn’t, turn on nested virtualization in%UserProfile%\.wslconfig(Windows 11 only), then runwsl --shutdownfrom Windows and open WSL again: -
systemd.
ps -p 1 -o comm=should printsystemd. If it doesn’t, add this to/etc/wsl.confin WSL, thenwsl --shutdownand reopen:
memory=12GB, or whatever suits you, under [wsl2] in .wslconfig.
What’s different
- Sandboxes share the laptop. They use its CPU and memory alongside your editor and browser. A host takes 20 sandboxes at once by default; on a laptop you may want fewer. Change it with
--host-args "--capacity 4"when you run the host installer again. - The host is only up while the laptop is. When it sleeps, the dashboard shows the host offline, and a run says so:
your only host, my-laptop, is offline. The host agent starts again with the machine, or with WSL. - Ports are already local.
ephemera dev -p 3000forwards the sandbox’s port to this machine’s localhost, so openhttp://localhost:3000as usual. - On WSL2, sandboxes run inside Windows’ own VM, so they can start a little slower than on a Linux machine of its own. Fine for trying things out; benchmark on real hardware.