azahar

by HenriqZimer

Helm chartv1.4.6App latestMITVerified publisher

A Helm chart for Azahar - the linuxserver.io 3DS emulator KasmVNC webtop image

About this chart

Azahar Helm Chart

A Helm chart for Azahar - the linuxserver.io Nintendo 3DS emulator (based on Citra), served as a full desktop over the browser via KasmVNC.

TL;DR

# Add the Helm repository
helm repo add azahar-helm-chart https://henriqzimer.github.io/azahar-helm-chart/
helm repo update

# Install Azahar
helm install my-azahar azahar-helm-chart/azahar --version 1.0.5

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.0+
  • A default StorageClass available in the cluster if you enable persistence (or your own storageClass/existingClaim values)
  • 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 enable gpu.enabled

Installing the Chart

From Helm Repository

helm repo add azahar-helm-chart https://henriqzimer.github.io/azahar-helm-chart/
helm repo update

helm install my-azahar azahar-helm-chart/azahar --version 1.0.5

From Source

git clone https://github.com/HenriqZimer/azahar-helm-chart.git
cd azahar-helm-chart

helm package chart/
helm install my-azahar ./azahar-1.0.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: azahar.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

Azahar crashes when launching a game (SIGBUS)

If the dashboard/UI works but a game crashes on boot (check the container logs for Unhandled SIGBUS), Azahar'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 Azahar, 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=1 on its kernel command line (e.g. via GRUB), or the compositor's own screen buffer allocation fails with DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied and 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 Azahar itself crashes with Unhandled SIGBUS in the container logs on boot (i.e. the dashboard works but launching a game doesn't), see shmSize below and seccompUnconfined above — try those first, it's usually not a GPU problem.

RomM emulator streaming — not available for Azahar

The sibling PCSX2/Dolphin/xemu/Eden charts (and, experimentally, RPCS3) can run as a target for RomM's Emulator Streaming feature via a third-party Docker Mod that adds an HTTP broker RomM talks to. No such mod exists for Azahar — unlike PCSX2/Dolphin/xemu/Eden/RPCS3/PPSSPP, there isn't even a placeholder repository: azahar-romm-integration does not exist anywhere on GitHub.

The chart still carries streaming.enabled/streaming.brokerPort in values.yaml so its shape matches its siblings and it's ready to use if a mod ever ships, but there is nothing to enable today — leave it false and use Azahar directly through its own desktop (service.httpsPort), opening ROMs from wherever you mounted your library (see extraVolumes above).

Values

KeyDefaultDescription
replicaCount1Number of replicas. Must stay at 1 — no session clustering.
image.repositorylscr.io/linuxserver/azaharContainer image.
image.taglatestImage tag.
env.PUID / env.PGID1000 / 1000User/group the app runs as; match your storage's ownership.
env.TZEtc/UTCTimezone.
env.KASMVNC_ENABLE_BASIC_AUTHfalseRequire basic auth on the web UI.
service.httpPort / service.httpsPort3000 / 3001KasmVNC ports.
streaming.enabledfalseExpose the RomM streaming broker port (see above).
streaming.brokerPort8000Broker port to expose, must match the mod's BROKER_PORT.
ingress.enabledfalseExpose the HTTP port via Ingress.
persistence.config.enabledfalsePersist /config. false uses an ephemeral emptyDir.
extraVolumes / extraVolumeMounts[]Raw volume/volumeMount entries, e.g. a ROMs library.
shmSize2GiSize of the memory-backed /dev/shm mount (KasmVNC and the JIT both need this).
gpu.enabled / gpu.vendorfalse / intel-amdEnable GPU passthrough; intel-amd (VA-API, /dev/dri) or nvidia (device plugin, nvidia.com/gpu).
seccompUnconfinedfalseDisable the default seccomp profile if the JIT crashes with SIGBUS.
resources500m/1Gi requests, 2/4Gi limitsContainer resources.
serviceAccount.createfalseCreate a dedicated ServiceAccount.

See values.yaml for the full, commented list.

Uninstalling the Chart

helm uninstall azahar

This does not delete PVCs created by the chart; remove them manually if you no longer need the data.

License

MIT — see LICENSE.

Deploy azahar with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has azahar 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartazahar is pinned at v1.4.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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