Hi everyone,
I built a small community app I want to share: Kernbox.
It started with Guillermo Rauch's post about unkernel by Pooya Parsa, a real Linux 7.x kernel compiled to a single WebAssembly module. My first thought was whether this could run as a proper Cloudron app. Cloudron apps have a read-only rootfs, run unprivileged and have no /dev/kvm, so spinning up a fresh Alpine or Debian to try something was never really an option. unkernel needs no host privileges, so it fits.
What Kernbox does:
Every Cloudron user logs in via OIDC and gets their own isolated Linux instances (Alpine, 1 to 4 vCPUs, about 200 ms boot with 2 vCPUs).
The VMs run server side in Node.js 24, the browser only shows an xterm.js terminal. Close the tab, reopen on another device, and the shell is still there with its scrollback.
Each instance stores a sparse ext4 overlay plus a /work folder under /app/data, so everything is part of the normal Cloudron backups. Instances can be cloned or reset.
An encrypted secret vault per user (AES-256-GCM). Secrets reach the VM only in RAM, as env vars and under /run/kernbox/secrets.
Outbound traffic goes through an internal relay that blocks loopback, private ranges, cloud metadata and the Cloudron Docker networks. Web servers inside a VM can be opened through a sandboxed preview port.
Install via the versions URL in the dashboard (App Store, Custom / Community App):
https://raw.githubusercontent.com/patattzel/kernbox/main/CloudronVersions.json
or with the CLI:
cloudron install --versions-url https://raw.githubusercontent.com/patattzel/kernbox/main/CloudronVersions.json --location kernbox.yourdomain.tld
Tested on Cloudron 10. It's MIT licensed. There's a short showcase video in the repo under docs/showcase.mp4, and I wrote up the background, including a fun "Illegal instruction" detour, on my blog: https://tzel.ch/en/kernbox-linux-playgrounds-on-cloudron/
Feedback, issues and PRs are very welcome. I'm especially curious how it runs on other setups.