Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Community Packages
  3. Kernbox: personal Linux playgrounds on Cloudron, powered by a WebAssembly kernel

Kernbox: personal Linux playgrounds on Cloudron, powered by a WebAssembly kernel

Scheduled Pinned Locked Moved Community Packages
13 Posts 3 Posters 258 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P pathab

    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.

    timconsidineT
    timconsidineT
    timconsidine
    App Dev CA Maintainer Super Fan
    wrote last edited by
    #3

    @pathab wow, well done, looks interesting, I look forward ro playing with it.

    Indie app dev, scratching my itches : communityapps.appx.uk, portfolio at myca.appx.uk

    1 Reply Last reply
    2
    • timconsidineT
      timconsidineT
      timconsidine
      App Dev CA Maintainer Super Fan
      wrote last edited by timconsidine
      #4

      Loving Kernbox, but there's one gap that's costing real time.

      When you create a box you choose a name, e.g. devbox.
      The actual instance ID becomes devbox-1a2b3c4d.
      The app only ever shows devbox, but every API call and MCP tool requires the full ID. So there's no way to use the API until you've guessed the suffix wrong at least once and read the error.

      Two small fixes would close this:

      • respect the user's name of the box w/o adding a suffix
      • set the suffix (good reasons for it) but show it to the user in the left sidebar.

      It's visible in /app/data/users/<user>/instances, but who wants to go digging for info that should be visible in the UI

      Good work, thank for releasing the community app.

      Indie app dev, scratching my itches : communityapps.appx.uk, portfolio at myca.appx.uk

      1 Reply Last reply
      2
      • timconsidineT
        timconsidineT
        timconsidine
        App Dev CA Maintainer Super Fan
        wrote last edited by
        #5

        FYI : I tested a use case for Kernbox by installing picoclaw lilghtweight agent running as Go binary with a cloud LLM. Actually runs quite nicely.

        Indie app dev, scratching my itches : communityapps.appx.uk, portfolio at myca.appx.uk

        1 Reply Last reply
        2
        • P
          P
          pathab
          App Dev
          wrote last edited by
          #6

          Hey @timconsidine, thanks for the feedback! Good catch, that was definitely annoying.

          This is fixed in the latest update: the full ID is now shown right in the left sidebar with a quick copy button, and the API/MCP now also accept the plain box name (like devbox) directly.

          Really cool to hear picoclaw runs nicely in there! Let me know if you run into anything else.

          timconsidineT 1 Reply Last reply
          3
          • P pathab

            Hey @timconsidine, thanks for the feedback! Good catch, that was definitely annoying.

            This is fixed in the latest update: the full ID is now shown right in the left sidebar with a quick copy button, and the API/MCP now also accept the plain box name (like devbox) directly.

            Really cool to hear picoclaw runs nicely in there! Let me know if you run into anything else.

            timconsidineT
            timconsidineT
            timconsidine
            App Dev CA Maintainer Super Fan
            wrote last edited by timconsidine
            #7

            @pathab cool, thank you so much 👍

            And :

            per-instance Tailscale/Headscale Mesh VPN integration : also cool.
            Screenshot 2026-11-30 at 08.40.25.png

            At the risk of being greedy, similar support for Netbird would be awesome (if viable and if you have time/interest).

            Indie app dev, scratching my itches : communityapps.appx.uk, portfolio at myca.appx.uk

            P 1 Reply Last reply
            2
            • timconsidineT timconsidine

              @pathab cool, thank you so much 👍

              And :

              per-instance Tailscale/Headscale Mesh VPN integration : also cool.
              Screenshot 2026-11-30 at 08.40.25.png

              At the risk of being greedy, similar support for Netbird would be awesome (if viable and if you have time/interest).

              P
              P
              pathab
              App Dev
              wrote last edited by
              #8

              @timconsidine said:

              At the risk of being greedy, similar support for Netbird would be awesome (if viable and if you have time/interest).

              Not greedy at all! Turns out unkernel already has /dev/net/tun built in, so I went ahead and added NetBird support in v0.11.0.

              You can enable it per box under Settings -> NetBird Mesh VPN. It works with both NetBird Cloud and a self-hosted management URL, supports either a Setup Key or browser SSO login (NB Login button in the top bar), and keeps Force Relay on by default so it plays nicely with Cloudron.

              Let me know how it goes!

              timconsidineT 1 Reply Last reply
              4
              • P pathab

                @timconsidine said:

                At the risk of being greedy, similar support for Netbird would be awesome (if viable and if you have time/interest).

                Not greedy at all! Turns out unkernel already has /dev/net/tun built in, so I went ahead and added NetBird support in v0.11.0.

                You can enable it per box under Settings -> NetBird Mesh VPN. It works with both NetBird Cloud and a self-hosted management URL, supports either a Setup Key or browser SSO login (NB Login button in the top bar), and keeps Force Relay on by default so it plays nicely with Cloudron.

                Let me know how it goes!

                timconsidineT
                timconsidineT
                timconsidine
                App Dev CA Maintainer Super Fan
                wrote last edited by
                #9

                @pathab awesome - thank you !

                Indie app dev, scratching my itches : communityapps.appx.uk, portfolio at myca.appx.uk

                1 Reply Last reply
                2
                • robiR
                  robiR
                  robi
                  wrote last edited by
                  #10

                  Very cool, reminds me of sysbox the docker runtime that makes containers more like VMs with greater isolation.

                  Two more things may be of interest,

                  1. pilotprotocol - p2p tunnels between agents, lightweight alternative to VPN mesh. https://github.com/pilot-protocol/pilotprotocol

                  2. someone built a BIOS that boots into an LLM, no OS at all, which is crazy cool. Full bare-metal OS source, hybrid ISO builder, and 0 GB disk Proxmox steps (MIT): https://github.com/alesha-pro/llm.asm/tree/main/02-baremetal-os

                  Frequency tech & energy mastery

                  1 Reply Last reply
                  2
                  • P
                    P
                    pathab
                    App Dev
                    wrote last edited by
                    #11

                    Thanks for sharing those...well the sysbox comparison is actually pretty spot on, just without needing privileged host runtimes on Cloudron.

                    Pilot Protocol looks super interesting for multi-agent setups. Since Kernbox's network relay now forwards UDP too (added in v0.11.0), pilotctl should actually run straight inside a box out of the box if anyone wants to experiment with it alongside the built-in <name>.kernbox.local mesh.

                    And 2. is wild...love seeing projects like that!

                    Honestly this project already feels pretty wild itself, you can even spin up a graphical Linux desktop right inside a box now.

                    robiR 1 Reply Last reply
                    3
                    • timconsidineT
                      timconsidineT
                      timconsidine
                      App Dev CA Maintainer Super Fan
                      wrote last edited by
                      #12

                      spin up a graphical Linux desktop right inside a box now.

                      wow

                      Indie app dev, scratching my itches : communityapps.appx.uk, portfolio at myca.appx.uk

                      1 Reply Last reply
                      0
                      • P pathab

                        Thanks for sharing those...well the sysbox comparison is actually pretty spot on, just without needing privileged host runtimes on Cloudron.

                        Pilot Protocol looks super interesting for multi-agent setups. Since Kernbox's network relay now forwards UDP too (added in v0.11.0), pilotctl should actually run straight inside a box out of the box if anyone wants to experiment with it alongside the built-in <name>.kernbox.local mesh.

                        And 2. is wild...love seeing projects like that!

                        Honestly this project already feels pretty wild itself, you can even spin up a graphical Linux desktop right inside a box now.

                        robiR
                        robiR
                        robi
                        wrote last edited by
                        #13

                        @pathab sysbox doesn't need it either. That was the win for DinD.

                        That UDP is a nice unlock for some agents like Muse, which have UDP blocked.

                        Lots of stuff to play with. 😉

                        yes Tim, we've had that capability for a long while, just not on Cloudron.

                        Frequency tech & energy mastery

                        1 Reply Last reply
                        0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Bookmarks
                        • Search