eden
by HenriqZimer
A Helm chart for Eden - the linuxserver.io Nintendo Switch emulator KasmVNC webtop image
About this chart
Eden Helm Chart
A Helm chart for Eden - the linuxserver.io Nintendo Switch emulator, served as a full desktop over the browser via KasmVNC.
TL;DR
# Add the Helm repository
helm repo add eden-helm-chart https://henriqzimer.github.io/eden-helm-chart/
helm repo update
# Install Eden
helm install my-eden eden-helm-chart/eden --version 1.1.5
Prerequisites
- Kubernetes 1.19+
- Helm 3.0+
- A default
StorageClassavailable in the cluster if you enable persistence (or your ownstorageClass/existingClaimvalues) - Ingress controller (optional, only if
ingress.enabled: true) - cert-manager (optional, for automatic TLS certificates)
- A node exposing
/dev/dri(gpu.vendor: intel-amd) or the NVIDIA device plugin (gpu.vendor: nvidia) if you enablegpu.enabled
Installing the Chart
From Helm Repository
helm repo add eden-helm-chart https://henriqzimer.github.io/eden-helm-chart/
helm repo update
helm install my-eden eden-helm-chart/eden --version 1.1.5
From Source
git clone https://github.com/HenriqZimer/eden-helm-chart.git
cd eden-helm-chart
helm package chart/
helm install my-eden ./eden-1.1.5.tgz
Configuration
Persistence
By default persistence.config.enabled is false, so /config (app settings, BIOS, save
states) is an ephemeral emptyDir — everything is lost when the pod restarts. For anything but a
quick test, enable it:
persistence:
config:
enabled: true
type: pvc # pvc | hostPath | emptyDir
storageClass: "" # leave empty to use the cluster default
size: 10Gi
ROMs / BIOS library
The chart does not manage a ROMs volume directly. Use extraVolumes/extraVolumeMounts to
mount an existing PVC, NFS share, or hostPath:
extraVolumes:
- name: roms
persistentVolumeClaim:
claimName: my-roms-library
extraVolumeMounts:
- name: roms
mountPath: /roms
Ingress
Disabled by default. Reach the UI via kubectl port-forward for quick testing, or:
ingress:
enabled: true
className: "traefik"
hosts:
- host: eden.example.com
paths:
- path: /
pathType: Prefix
Access control
The KasmVNC desktop has no authentication by default. Either restrict access at the network layer (ingress auth, NetworkPolicy, VPN-only), or set:
env:
KASMVNC_ENABLE_BASIC_AUTH: "true"
CUSTOM_USER: "myuser"
PASSWORD: "changeme" # prefer envFrom with a Secret instead
Eden crashes when launching a game (SIGBUS)
If the dashboard/UI works but a game crashes right after boot (check the container logs for
Unhandled SIGBUS), Eden's JIT recompiler may need more /dev/shm than the small
default — this is confirmed for this chart's sibling, pcsx2-helm-chart (PCSX2's EE recompiler
uses a shared-memory-backed "fastmem" mmap trick and crashes with SIGBUS right after a game
starts when /dev/shm is too small); not independently confirmed on Eden, but worth trying
first since the base image/toolchain is the same:
shmSize: 2Gi # chart default; raise further if it still crashes
If that alone doesn't fix it, the JIT may also be hitting Docker/Kubernetes' default seccomp profile (blocks syscalls it needs to allocate executable memory on some kernel/libseccomp combinations):
seccompUnconfined: true
GPU / hardware acceleration
Intel/AMD (VA-API)
gpu:
enabled: true
vendor: intel-amd
devicePath: /dev/dri
supplementalGroups: [44, 109] # host's video/render group GIDs; check with `getent group video render`
NVIDIA
Requires the NVIDIA device plugin already installed on the cluster (this chart only requests the resource, it doesn't install the plugin):
gpu:
enabled: true
vendor: nvidia
nvidia:
count: 1
This sets resources.limits."nvidia.com/gpu" and the NVIDIA_VISIBLE_DEVICES/NVIDIA_DRIVER_CAPABILITIES
env vars — it does not need devicePath/supplementalGroups, the device plugin injects /dev/nvidia*
itself.
Two node-level prerequisites this chart cannot set for you (see the linuxserver.io GPU Configuration docs):
- The node needs
nvidia-drm.modeset=1 nvidia_drm.fbdev=1on its kernel command line (e.g. via GRUB), or the compositor's own screen buffer allocation fails withDRM_IOCTL_MODE_CREATE_DUMB failed: Permission deniedand the desktop renders solid black even though the container itself looks healthy. - On a genuinely headless node (no monitor ever attached to that GPU), DRM may still need a physical HDMI/DP dummy plug in the port for the driver to initialize a display at all.
If Eden itself crashes with Unhandled SIGBUS in the container logs right after boot (i.e. the
dashboard works but launching a game doesn't), see shmSize above and seccompUnconfined above —
this is usually not a GPU problem.
Save states
RomM's streaming integration does not support save states for Eden (Switch has no equivalent to PCSX2/Dolphin/xemu's slot-based save states) — the RomM player hides the save-state UI for this platform. In-game saves (NAND) still sync normally via the broker.
RomM emulator streaming
This chart can also run as a target for RomM's Emulator Streaming feature, which launches ROMs directly inside this container and streams them back to the browser (as opposed to in-browser emulation). That feature is provided by a third-party Docker Mod (not maintained by this chart or by linuxserver.io/RomM) — this chart only adds the plumbing to expose its broker port:
env:
DOCKER_MODS: "ghcr.io/loneangelfayt/eden-romm-integration-mod:latest"
ROM_ROOT: "/romm/library" # must match the mountPath below
envFrom:
- secretRef:
name: streaming-broker-secret # must provide BROKER_SECRET
streaming:
enabled: true # exposes containerPort/servicePort "broker" (8000)
# Mount the same ROM library RomM uses, at the same path RomM sees it at.
extraVolumes:
- name: roms
persistentVolumeClaim:
claimName: romm-library-truenas
extraVolumeMounts:
- name: roms
mountPath: /romm/library
Then in RomM's config.yml, broker_host and host mean different things
and are reached from different places — mixing them up is the most common
way to get this stuck:
broker_hostis called server-to-server, by RomM's own backend. Point it at this Service's ClusterIP on the broker port, e.g.http://eden.<namespace>.svc.cluster.local:8000— cluster-internal DNS is fine, nothing outside the cluster ever needs to reach it. Keep it off any externally-reachable Ingress/LoadBalancer.hostis opened directly by the end user's browser, so it must be an address that specific browser can reach and gets HTTPS from — cluster- internal DNS (*.svc.cluster.local) will not resolve there, and a bare ClusterIP won't either. Two ways to satisfy that:- Set
ingress.enabled: true(pointing atservice.httpPort, since the Ingress controller terminates TLS) and use a real certificate — this also sidesteps the next point entirely. - Reach the container's own KasmVNC HTTPS port directly (
service.httpsPort, via a LoadBalancer Service or NodePort). Its self-signed cert hasCN=*with no Subject Alternative Name, which Chrome/Firefox will let you click through but which some browsers (notably Safari) refuse outright instead of showing the usual "unsafe site" warning — ifhostloads fine in Chrome but fails immediately in Safari with a vague "might be down or moved" error, this is why.
- Set
See the Configuration File reference
for the full streaming schema.
Values
| Key | Default | Description |
|---|---|---|
replicaCount | 1 | Number of replicas. Must stay at 1 — no session clustering. |
image.repository | lscr.io/linuxserver/eden | Container image. |
image.tag | latest | Image tag. |
env.PUID / env.PGID | 1000 / 1000 | User/group the app runs as; match your storage's ownership. |
env.TZ | Etc/UTC | Timezone. |
env.KASMVNC_ENABLE_BASIC_AUTH | false | Require basic auth on the web UI. |
service.httpPort / service.httpsPort | 3000 / 3001 | KasmVNC ports. |
streaming.enabled | false | Expose the RomM streaming broker port (see above). |
streaming.brokerPort | 8000 | Broker port to expose, must match the mod's BROKER_PORT. |
ingress.enabled | false | Expose the HTTP port via Ingress. |
persistence.config.enabled | false | Persist /config. false uses an ephemeral emptyDir. |
extraVolumes / extraVolumeMounts | [] | Raw volume/volumeMount entries, e.g. a ROMs library. |
shmSize | 2Gi | Size of the memory-backed /dev/shm mount (KasmVNC and the JIT both need this). |
gpu.enabled / gpu.vendor | false / intel-amd | Enable GPU passthrough; intel-amd (VA-API, /dev/dri) or nvidia (device plugin, nvidia.com/gpu). |
seccompUnconfined | false | Disable the default seccomp profile if the JIT crashes with SIGBUS. |
resources | 500m/1Gi requests, 2/4Gi limits | Container resources. |
serviceAccount.create | false | Create a dedicated ServiceAccount. |
See values.yaml for the full, commented list.
Uninstalling the Chart
helm uninstall eden
This does not delete PVCs created by the chart; remove them manually if you no longer need the data.
License
MIT — see LICENSE.
Deploy eden with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has eden on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charteden is pinned at v1.4.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply