Multi-OS VM-in-a-container via QEMU/KVM with noVNC, VNC, RDP, and dynamic verified OS downloads.
2.3K
Maintainer: Daniel G. Cosenza from FNX Labs
FNXVM is a multi-OS QEMU/KVM virtual machine container on Debian 13.8 (debian:13.8-slim). It combines qemus/qemu and dockur/windows with an authenticated noVNC web viewer (HTTP Basic + bcrypt, optional built-in HTTPS/WSS via WEB_TLS=Y), password-protected VNC, RDP (3389), universal bidirectional clipboard (qemu-vdagent, RFB Extended Clipboard, and browser Async Clipboard API), and configurable GPU acceleration (GPU=auto|virtio|virgl|qxl|std).
No OS ISOs or proprietary media are ever bundled or redistributed. When OS= is set, FNXVM resolves the latest official release from the vendor at runtime, downloads it, and verifies checksums and signatures before booting (fail-closed).
latest — latest daily verified multi-arch build (linux/amd64 + linux/arm64)<version> — release version (e.g. 6.06.4), <version>-<YYYYMMDD> (immutable; .N on same-day rebuilds), sha-<short>dgcosenza/fnxvm@sha256:<digest> / ghcr.io/dgcosenza/fnxvm@sha256:<digest> (identical Cosign-signed digests)Set OS= (or BOOT=<url>, or VERSION= for Windows). Unknown OS values fail fast.
OS | Guest | Version policy | Arch | Official source | Runtime verification |
|---|---|---|---|---|---|
debian | Debian Desktop (DESKTOP=gnome|kde) | Latest stable live ISO (amd64); DVD-1 (arm64) | amd64, arm64 | cdimage.debian.org | GPG (SHA256SUMS.sign) + SHA-256 |
ubuntu | Ubuntu Desktop LTS | Latest even-year .04 LTS point release | amd64, arm64 | releases/cdimage.ubuntu.com | GPG (SHA256SUMS.gpg) + SHA-256 |
freebsd | FreeBSD | Latest production -RELEASE | amd64, arm64 | download.freebsd.org | SHA-256 (CHECKSUM.SHA256) |
daemonarchy | Daemonarchy (Hyprland on FreeBSD) | Latest stable; FreeBSD 16.0-CURRENT, no LTS | amd64, arm64 (UEFI) | jordanhubbard/daemonarchy | SHA-256 on .iso.xz before xz -dc |
haiku | Haiku | Latest release (R1/betaN) | amd64 only | haiku-os.org / CDN | SHA-256 (.iso.sha256) |
omarchy | Omarchy (Arch-based) | Rolling; no LTS | amd64, arm64 | omarchy.org | SHA-256 + GPG (.iso.sig) |
windows | Windows (VERSION=11, ltsc, iot-ltsc, ...) | Official Microsoft endpoints | amd64, arm64 (10/11) | Microsoft official | SHA-1/SHA-256 (VERIFY=Y) |
(unset + BOOT=) | Custom ISO / raw / qcow2 / vmdk / vhdx | User URL or /boot.iso / /boot.img | amd64, arm64 | User-specified | User-managed |
Notes: Daemonarchy (Jordan Hubbard) is not affiliated with Omarchy; use
DISK_SIZE>=40Gand keep Internet access during install (~1,200 packages). Itsarm64asset is a UEFI-only community-validation image. Omarchy is also rolling with no LTS.
Built and smoke-tested natively in CI on linux/amd64 (qemu-system-x86_64, OVMF/SeaBIOS/swtpm) and linux/arm64 (qemu-system-aarch64, AAVMF/swtpm). amd64 supports all 7 OSes; arm64 supports all except haiku (fails fast; no official arm64 ISO).
Omit WEB_PASSWORD/WEB_PASSWORD_FILE on first start to auto-generate strong Web UI and independent VNC passwords (printed once in logs; Web UI persists bcrypt hash only).
# Debian Desktop (or OS=ubuntu|freebsd|daemonarchy|haiku|omarchy)
docker run -it --rm --device /dev/kvm --device /dev/net/tun --cap-add NET_ADMIN \
-p 127.0.0.1:8006:8006 -e OS=debian -e DESKTOP=gnome -v fnxvm-debian:/storage \
dgcosenza/fnxvm:latest
# Windows 11 with RDP + built-in HTTPS on 8006
docker run -it --rm --device /dev/kvm --device /dev/net/tun --cap-add NET_ADMIN \
-p 127.0.0.1:8006:8006 -p 127.0.0.1:3389:3389 -e OS=windows -e VERSION=11 -e WEB_TLS=Y \
-v fnxvm-windows:/storage dgcosenza/fnxvm:latest
# Dry-run OS resolution without KVM or download
docker run --rm -e RESOLVE_ONLY=1 -e OS=daemonarchy dgcosenza/fnxvm:latest
Open http://127.0.0.1:8006 (or https://127.0.0.1:8006 with WEB_TLS=Y) and sign in with WEB_USER (fnxvm).
Create chmod 600 ./secrets/web_password.txt and ./secrets/vnc_password.txt first (full file: docker-compose.example.yml):
services:
fnxvm:
image: dgcosenza/fnxvm:latest
environment:
OS: "debian"
DESKTOP: "gnome"
GPU: "auto"
CLIPBOARD: "Y"
WEB_AUTH: "Y"
WEB_USER: "fnxvm"
WEB_PASSWORD_FILE: "/run/secrets/fnxvm_web_password"
VNC_PASSWORD_FILE: "/run/secrets/fnxvm_vnc_password"
# WEB_TLS: "Y" # Built-in HTTPS/WSS on 8006 (or use a TLS reverse proxy)
# RDP: "Y" # Forward 3389/tcp+udp in user-mode networking for Linux/BSD xrdp
RAM_SIZE: "4G"
CPU_CORES: "2"
DISK_SIZE: "64G"
secrets: [fnxvm_web_password, fnxvm_vnc_password]
devices: ["/dev/kvm:/dev/kvm", "/dev/net/tun:/dev/net/tun"]
cap_drop: [ALL]
cap_add: [NET_ADMIN, CHOWN, DAC_OVERRIDE, FOWNER, SETGID, SETUID, NET_BIND_SERVICE]
security_opt: ["no-new-privileges:true"]
ports: ["127.0.0.1:8006:8006"]
volumes: ["fnxvm_storage:/storage"]
stop_grace_period: 2m
restart: unless-stopped
secrets:
fnxvm_web_password: { file: ./secrets/web_password.txt }
fnxvm_vnc_password: { file: ./secrets/vnc_password.txt }
volumes:
fnxvm_storage:
8006): nginx Basic Auth + bcrypt protects /, /vnc.html, /websockify, /status, /audio. Configure WEB_USER (fnxvm) + WEB_PASSWORD_FILE/WEB_PASSWORD (if unset, auto-generates a 24-char secret printed once; bcrypt hash persisted 0600 in /storage/.fnxvm-web.htpasswd). WEB_AUTH=N disables auth (proxy-only).5900): Always password=on (RFB type 2) via QMP set_password (VNC_PASSWORD_FILE/VNC_PASSWORD, or auto-generated 8-char secret in /storage/.fnxvm-vnc.secret). Never expose 5900 publicly (unencrypted, 8-char cap); use noVNC over TLS.Bidirectional copy/paste across noVNC (8006), VNC (5900), and RDP (3389) via virtio-serial-pci + qemu-vdagent (CLIPBOARD=Y, or spicevmc with SPICE=Y).
Guest OS | noVNC (8006) | VNC (5900)* | RDP (3389) | Guest setup / notes |
|---|---|---|---|---|
windows | UTF-8 bidir | UTF-8 bidir | Native (rdpclip) | Auto-stages SHA-256-verified spice-vdagent MSI on x64/x86 (WINDOWS_VDAGENT=Y); ARM64 uses native RDP. |
debian / ubuntu | UTF-8 bidir | UTF-8 bidir | Optional (xrdp) | spice-vdagent (preinstalled on Debian live); RDP=Y forwards 3389; Ubuntu 26.04 adds native Wayland RDP. |
omarchy | UTF-8 bidir | UTF-8 bidir | Optional (xrdp) | Install spice-vdagent; Wayland may need XWayland/wl-clipboard; Type (ASCII) always works. |
freebsd / daemonarchy | Type (ASCII) | Unsupported | Optional (xrdp) | No FreeBSD spice-vdagent; use xrdp + xorgxrdp for bidirectional RDP clipboard, or SSH//shared. |
haiku | Type (ASCII) | Unsupported | Unsupported | No vdagent/RDP; use Type (ASCII) or /shared. |
*QEMU sends guest->client VNC updates only to clients supporting RFB Extended Clipboard (0xC0A1E5CE). Recommended clients: Chrome/Edge/Safari/Firefox on noVNC (HTTPS/localhost); TigerVNC or Remmina for VNC (avoid macOS Screen Sharing, TightVNC, UltraVNC); mstsc.exe / Windows App / Remmina / xfreerdp3 +clipboard for RDP.
WEB_TLS=Y): Async Clipboard API requires HTTPS or localhost (plain HTTP LAN still supports manual panel actions + US-QWERTY Type (ASCII) fallback). WEB_TLS=Y persists an ECDSA P-256 cert in /storage/.fnxvm-tls.{crt,key} (customize via WEB_TLS_SAN, WEB_TLS_CERT/WEB_TLS_KEY, or terminate TLS in a reverse proxy).sudo apt update && sudo apt install -y spice-vdagent (or xrdp xorgxrdp && sudo systemctl enable --now xrdp)sudo pacman -S --noconfirm spice-vdagent && sudo systemctl enable --now spice-vdagentdsudo pkg install -y xrdp xorgxrdp && sudo sysrc xrdp_enable=YES xrdp_sesman_enable=YES && sudo service xrdp start && sudo service xrdp-sesman startspice-vdagent-x64-0.10.0.msi (spice-space.org) or virtio-win-guest-tools.exe (fedorapeople.org).GPU)auto (default): VGA/ramfb without /dev/dri; auto-enables virgl on Linux guests when /dev/dri/renderD* is accessible.std / virtio / qxl / virgl: Software VGA/ramfb; 2D VirtIO; QXL (SPICE=Y); or OpenGL virgl (--device /dev/dri + --group-add "$(stat -c '%g' /dev/dri/renderD128)", optional RENDERNODE=; falls back cleanly if absent).| Variable | Default | Description |
|---|---|---|
OS / DESKTOP / VERSION | debian / gnome / 11 | Guest OS (debian, ubuntu, freebsd, daemonarchy, haiku, omarchy, windows), Debian desktop, Windows edition. |
BOOT / RESOLVE_ONLY | (empty) / N | Custom ISO/disk URL (when OS unset); dry-run OS resolution without QEMU. |
GPU / RENDERNODE | auto / (auto) | Display mode (auto, virtio, virgl, qxl, std) and optional DRM render node. |
CLIPBOARD / WINDOWS_VDAGENT | Y / Y | Attach virtio-serial + qemu-vdagent/spicevmc; auto-stage verified spice-vdagent MSI on x64/x86 Windows. |
RDP | N (Windows: on) | Forward guest 3389/tcp+udp in user-mode networking for Linux/BSD xrdp (NAT forwards all non-reserved ports). |
WEB_TLS / WEB_TLS_SAN | N / localhost | Built-in HTTPS/WSS on WEB_PORT (Y persists self-signed ECDSA cert in /storage/.fnxvm-tls.{crt,key}). |
WEB_TLS_CERT / WEB_TLS_KEY | (empty) | Mounted PEM cert and key paths when WEB_TLS=Y. |
WEB_AUTH / WEB_USER | Y / fnxvm | HTTP Basic Auth toggle and username on WEB_PORT. |
WEB_PASSWORD / WEB_PASSWORD_FILE | (auto-generated) | Web UI password or secret file (bcrypt-hashed into /storage/.fnxvm-web.htpasswd). |
VNC_PASSWORD / VNC_PASSWORD_FILE | (auto, 8 chars) | Independent VNC RFB password or secret file (max 8 chars, applied via QMP). |
SPICE / SPICE_PORT | N / 5901 | Optional QMP-authenticated SPICE server. |
RAM_SIZE / CPU_CORES / DISK_SIZE | 4G / 2 / 64G | Guest RAM, vCPUs, and disk size (>=40G for daemonarchy). |
DISK_FMT / BOOT_MODE / KVM | raw / (auto) / Y | raw/qcow2; uefi/secure/legacy/windows*; KVM (KVM=N for TCG). |
NETWORK / DHCP / USER_PORTS | Y / N / (empty) | Y (NAT/TAP), user/passt, or N; macvlan DHCP; extra user-mode port forwards. |
WEB / WEB_PORT / VNC_PORT | Y / 8006 / 5900 | Web viewer toggle (WEB=N headless VNC) and listening ports. |
USERNAME / PASSWORD / VERIFY | Docker / admin / Y | Windows guest login (separate from WEB_USER) and ESD hash verification. |
AUDIO / SAMBA / ARGUMENTS / DEBUG | N / Y / (empty) / N | Browser audio, /shared Samba/9p, extra QEMU flags, verbose logs. |
Ports: 8006/tcp (noVNC HTTP/HTTPS), 5900/tcp (VNC — keep local), 3389/tcp+udp (RDP), 22/tcp (SSH), optional 5901/tcp (SPICE). Volumes: /storage (disks, NVRAM, auth/TLS state), optional /shared. Users: root (UID 0) for /dev/kvm/TAP; vmuser (UID/GID 1000) for CLI tools. PID 1: tini.
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
CMD ["/usr/local/bin/fnxvm-healthcheck"]
Probes nginx's internal Unix socket (/run/shm/nginx-health.sock -> /healthz), checks http(s)://127.0.0.1:${WEB_PORT}/ returns 401 (WEB_AUTH=Y) or 200 (WEB_AUTH=N), checks /run/shm/status-ws.sock (or 127.0.0.1:${VNC_PORT} when WEB=N), and verifies QEMU's PID. Tested on amd64 + arm64; do not disable in Compose.
| Component | Resolved Version |
|---|---|
| dockur/windows | 6.06 |
| qemus/qemu | 7.50 |
| Base OS | Debian 13.8 (13.8-slim) |
| Architectures | linux/amd64, linux/arm64 |
| Uncompressed size (per arch) | amd64: 248.2 MB, arm64: 1120.1 MB |
| Last verified build (UTC) | 2026-11-28 |
| Published multi-arch digest | dgcosenza/fnxvm@sha256:87fee553e2106f5e5c23d773e56c126cf737961abff99abf3a3837c0152a0ac2 |
| GHCR mirror | ghcr.io/dgcosenza/fnxvm@sha256:87fee553e2106f5e5c23d773e56c126cf737961abff99abf3a3837c0152a0ac2 |
| Supply chain | Cosign OIDC signed + SPDX & CycloneDX SBOM attestations + SLSA Build L3 provenance |
| Security gate (Trivy + Grype on SBOM) | 0 fixable findings of any severity (76 upstream-unfixed) |
Guest OS versions resolved at last build (resolved dynamically at runtime):
OS | Resolved Guest Version |
|---|---|
windows | Windows 11 (win11x64, build 26100.4349) |
haiku | R1/beta6 (amd64) |
freebsd | 15.1-RELEASE |
daemonarchy | 1.5.1 (FreeBSD 16.0-CURRENT, no LTS) |
debian | 13.8.0 (GNOME / KDE) |
ubuntu | 26.04.1 LTS |
omarchy | 4.5.0 (rolling, no LTS) |
Recent upstream tracking:
6.06 -> 6.067.50 -> 7.50debian:13.8-slim pinned at sha256:8aa5a7bf5a1955bddbe7d74fcdd0b91ab30e74362a8b73af672b0481b35b44a0golang:1.27.4-trixie pinned at sha256:430985542100b871e108ccc00e8dcc5eef08ca14ee5825e98ebf563d8ffec4eewindows: Windows 11 (win11x64, build 26100.4349)6.06.4 to 6.06.5: Drop-in fix pre-resolving HTTP redirects once before multi-connection aria2c downloads, adding automatic official Debian CD mirror fallback (verified against canonical cdimage.debian.org GPG-signed SHA256SUMS), and defaulting SUPPORT in init.sh.6.06.3 to 6.06.4: Complete Debian CD signing keys, cleaned Ubuntu key, and live CI gpgv/checksum checks.6.06.2 / earlier: Universal noVNC clipboard (WEB_TLS=Y, RDP=Y), default auth (WEB_AUTH=Y, WEB_USER, WEB_PASSWORD_FILE, VNC_PASSWORD_FILE), drop-in /storage.8006, incl. /websockify, /status, /audio) enforces nginx Basic Auth + bcrypt (0600 /storage/.fnxvm-web.htpasswd) with optional WEB_TLS=Y (TLS 1.2/1.3). VNC (5900) uses QMP set_password with an independent 8-char secret. Never expose 8006, 5900, or 3389 publicly without TLS/tunneling.UNKNOWN–CRITICAL, --ignore-unfixed, exit 1) + Grype on Syft SPDX SBOM (--only-fixed --fail-on negligible) on amd64 + arm64 (unfixed CVEs tracked in versions.json).debian:13.8-slim + golang:1.27.4-trixie, keyless Cosign OIDC (Hub + GHCR), SPDX/CycloneDX SBOMs, SLSA Build L3, Hadolint, Gitleaks, Dive (>=95%), OpenSSF Scorecard & Best Practices Passing, Renovate, Dependabot./etc/fnxvm/keys/*.gpg, live-verified in CI via gpgv + tamper tests), SHA-256 for FreeBSD, Daemonarchy (.iso.xz), Haiku, and optional Windows spice-vdagent MSI; VERIFY=Y for Windows. Pinned fingerprints (THIRD-PARTY-NOTICES.md):
10460DAD76165AD81FBC0CE9988021A964E6EA7D, DF9B9C49EAA9298432589D76DA87E80D6294BE9B, F41D30342F3546695F65C66942468F4009EA8AC3843938DF228D22F7B3742BC0D94AA3F0EFE21092omacom/omarchy manual/48-security.md): 40DFB630FF42BCFFB047046CF0134EE680CAC571 (CI checks gpgv on omarchy-keyring + .iso.sig issuer; full ISO .iso.sig at runtime)cosign verify \
--certificate-identity-regexp='^https://github\.com/dgcosenza/fnxvm-docker/\.github/workflows/daily\.yml@refs/heads/main$' \
--certificate-oidc-issuer=https://token.actions.githubusercontent.com \
ghcr.io/dgcosenza/fnxvm@sha256:<digest>
gh attestation verify oci://ghcr.io/dgcosenza/fnxvm@sha256:<digest> --owner dgcosenza
Report vulnerabilities via GitHub Security Advisories (SECURITY.md).
docker build -t fnxvm:local .
./tests/smoke.sh fnxvm:local
.github/workflows/daily.yml runs daily with --no-cache on amd64 + arm64: resolves upstreams, base digests, and all 7 OSes; runs container, RFB clipboard, Playwright noVNC, GPU, auth, TLS, live gpgv/checksum, and resolver tests; gates on Dive (>=95%), Trivy, and Grype (0 fixable of any severity); publishes Cosign-signed digests + SBOMs + SLSA L3 to GHCR, Docker Hub, and Releases; updates versions.json/README.md/CHANGELOG.md + Hub overview; manages ci-failure issues.
main packages only: Official QEMU, OpenGL/SPICE modules, libegl-mesa0, OVMF/AAVMF/SeaBIOS, Passt, swtpm, nginx, apache2-utils, and openssl keep 0 fixable CVEs without Sid snapshots or third-party .deb bundles.websocketd, boot-logo (golang:1.27.4-trixie), and udfread build from SHA-256-verified source; qemu.qmp runs without pip in runtime.WEB_TLS=Y, and auto-staged verified spice-vdagent on Windows. Heavy gateways (Guacamole) are omitted to preserve minimalism and 0 fixable CVEs; use direct 3389 over VPN/SSH or noVNC over HTTPS.Packaging: MIT License, Copyright (c) 2026 Daniel G. Cosenza from FNX Labs (LICENSE). Reused dockur/windows and qemus/qemu assets are MIT; third-party notices and vendor key details in THIRD-PARTY-NOTICES.md. Guest OS media and runtime agents remain under their vendor licenses.
Maintainer: Daniel G. Cosenza from FNX Labs. Built upon dockur/windows, qemus/qemu, QEMU, EDK2/OVMF, noVNC, Passt, SPICE, Debian, Ubuntu, FreeBSD, Daemonarchy (Jordan Hubbard), Haiku, and Omarchy.
Content type
Image
Digest
sha256:87fee553e…
Size
236.7 MB
Last updated
about 12 hours ago
docker pull dgcosenza/fnxvm