Free, open-source diskless boot and network storage for managed fleets.
Boot whole rooms of PCs (gaming cafés, schools, labs) from one server. Local-first: no account, no subscription, no cloud dependency, no client cap.
Getting started · Documentation · Changelog · Report a bug · Security
Table of contents
DiskX turns one Linux server into the boot drive for a fleet of PCs. Clients network-boot (PXE → iPXE → iSCSI) into a shared, versioned system image, and each one writes to its own private thin volume. You update an image once and every client picks it up on the next boot. A client that misbehaves is reset in seconds by discarding its writes.
It is built for places that run many identical machines: gaming cafés, school labs, training rooms and kiosks. Everything runs on your own hardware and network, with nothing phoning home.
| Feature | Description |
|---|---|
| Network boot | PXE → iPXE → HTTP chain for UEFI and Legacy BIOS, with ProxyDHCP next to your existing DHCP or a dedicated DHCP server. Boot is off by default. |
| System disks | Images (RAW, VHD, VHDX, WIM), private per-client volumes, disposable / persistent / maintenance writeback, snapshots and restore, durable jobs. |
| BootStorm admission | Paces boots so a room powering on at once doesn't flatten the storage. |
| NVMe read cache | Optional writethrough cache in front of the thin pool. |
| GameDisk & GameSync | Shared game libraries served as extra LUNs with private writes per client, changed-block updates, scheduled promotion and one-command rollback. |
| Management | Web dashboard and Tauri desktop app, scoped roles (viewer / operator / admin), Windows and Linux agents with reboot, shutdown and Wake-on-LAN. |
| DiskX Doctor | Read-only health checks with remedies, plus a secret-free support bundle. |
| Hardened | One small root helper with a closed request set, TLS listeners, credential rotation, request limits, a Secure Boot path, sandboxed units and supply-chain checks. |
| Operations | Multiple boot segments and VLANs, health alerts, backup sets with offline restore. |
| Packaged | Debian packages with upgrade-safe catalog migration, rollback and uninstall, plus signed, checksummed releases with SBOMs. |
flowchart LR
FW["Client firmware<br/>(PXE)"] -- "ProxyDHCP / TFTP<br/>(dnsmasq)" --> IPXE[iPXE]
IPXE -- HTTP --> BOOT["diskx-server<br/>boot listener"]
OP["Operator<br/>diskx CLI · dashboard"] --> ADMIN["admin API<br/>(loopback / TLS)"]
BOOT --> DB[("SQLite catalog<br/>jobs · audit")]
ADMIN --> DB
DB -- "Unix socket<br/>peer UID checked" --> HELPER["diskx-helper (root)<br/>LVM thin pool + LIO"]
IPXE -- "iSCSI sanboot" --> VOL[["Client's private<br/>thin volume"]]
HELPER --> VOL
diskx-serverruns two listeners. The admin listener serves/healthzand the bearer-token API under/api/v1. The boot listener (onboot.boot_address, only when boot is enabled) serves iPXE scripts and checksum-pinned artifacts, and has no admin routes.- A client is discovered the first time it asks for a script. Until an
operator enrolls it and assigns it a profile (
linux-diagnosticorsystem-disk), it gets a script that exits back to firmware. diskx-helperis the only process running as root. It accepts a closed set of typed requests from allowed UIDs only, and touches onlydsk-*volumes in one approved thin pool anddsk-*exports on one approved portal (docs/lab/storage.md).- Proxy mode needs an explicit interface and subnet. Dedicated DHCP also needs
allow_dedicated_dhcp = trueand a lease range.
- Server: Ubuntu 24.04 LTS (see the support matrix)
- For system disks: an LVM thin pool and LIO (
targetcli) - To build: the Rust toolchain pinned in
rust-toolchain.toml(SQLite is bundled), and Node.js with pnpm for the dashboard
Install the package built by packaging/deb/build.sh, or one from a release:
sudo apt install ./diskx_<version>_amd64.deb
diskx statusIt starts only the server, on loopback, with boot disabled. Upgrades copy the catalog before migrating it. docs/upgrade.md covers install, upgrade, rollback and uninstall.
git clone https://github.com/Layfate/DiskX.git
cd DiskX
cargo build --release --locked
# Checks CI runs on every push
cargo fmt --all -- --check
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo test --workspace --locked
# Dashboard
pnpm --dir web install --frozen-lockfile
pnpm --dir web buildmkdir -p /etc/diskx /var/lib/diskx
cp config/diskx.example.toml /etc/diskx/diskx.toml
head -c 32 /dev/urandom | base64 | install -m 0600 /dev/stdin /etc/diskx/admin.token
diskx config check --config /etc/diskx/diskx.toml
diskx-server --config /etc/diskx/diskx.toml &
diskx status
diskx clients list
diskx clients enroll <client-id>
diskx clients assign <client-id> linux-diagnosticTip
Both binaries read --config or DISKX_CONFIG, and default to
/etc/diskx/diskx.toml. The CLI reads the admin token from
admin.token_file and never accepts it as an argument. Add --json for
machine-readable output, and set the server's log level with DISKX_LOG
(for example DISKX_LOG=debug).
To enable boot, build the diagnostic payload on a Linux host and paste the
profile block it prints into the config. Its /init prints
DISKX_DIAG_READY to every active console.
KERNEL=/boot/vmlinuz-$(uname -r) boot/diagnostic/build.sh out/diagnostic
diskx boot dnsmasq-config --config /etc/diskx/diskx.toml # read-only previewdocs/lab/network-boot.md covers installing dnsmasq, packet-capture diagnostics and uninstalling.
Set up the helper and a thin pool (docs/lab/storage.md),
uncomment [storage] in the config, then:
diskx images create win11
diskx images import win11 /var/lib/diskx/import/win11.raw
diskx images publish win11 1
diskx clients assign <client-id> system-disk --image win11 --writeback persistent
diskx clients reset <client-id> # verified detach, then discard its writesA game library served as LUN 1 of the client's export, with private writes per client (docs/lab/gamedisk.md):
diskx images create steam --kind game
diskx images import steam /var/lib/diskx/import/steam.img
diskx images publish steam 1
diskx games assign <client-id> steam --lun 1 --writeback disposable
diskx images update steam /var/lib/diskx/import/steam-patched.img # stages v2: changed blocks only
diskx images publish steam 2 --at 2026-12-01T05:00:00+08:00 # scheduled promotion
diskx images rollback steamThe dashboard is served at /ui/ on the admin listener when admin.ui_dir
is set, and the same build runs in the Tauri desktop app (desktop/).
Operators sign in with a scoped token. Agents on client OSes report telemetry
and carry out operator-requested reboot and shutdown
(docs/management.md).
diskx operators create alice --role operator --token-out alice.token
diskx clients agent-credential <client-id> --out pc-01.token
diskx clients action <client-id> reboot
diskx doctor --bundle support.jsonThe admin API is frozen at v1. docs/api/v1.md is the complete reference, with every route and the role it needs.
| Area | Routes (examples) |
|---|---|
| Health | GET /healthz, GET /api/v1/health |
| Clients | GET /api/v1/clients, POST …/{id}/enroll, PUT …/{id}/assignment |
| Images | GET/POST /api/v1/images, POST …/import, …/{image}/publish, …/update, …/rollback |
| Sessions & snapshots | GET /api/v1/sessions, GET/POST /api/v1/clients/{id}/snapshots, POST …/restore |
| Games | GET /api/v1/clients/{id}/games, PUT/DELETE …/games/{game} |
| Jobs & events | GET /api/v1/jobs/{id}?wait=<seconds>, GET /api/v1/events (server-sent events) |
| Fleet | GET /api/v1/fleet, POST /api/v1/clients/{id}/actions (reboot / shutdown / wake) |
| Operators & audit | GET/POST /api/v1/operators, GET /api/v1/audit, GET /api/v1/doctor |
Errors look like {"error":{"code":"…","message":"…"}}, and the codes are
stable. Long-running work returns 202 with a durable job, and job requests
accept an Idempotency-Key.
Warning
DiskX is pre-release (working toward 0.1.0). Don't run it in production yet.
What is proven:
- The PXE → iPXE → HTTP boot chain boots OVMF (UEFI) and SeaBIOS (Legacy)
VMs with ProxyDHCP and with dedicated DHCP. CI runs it on every push
(
tests/boot/run.sh). - System disks, GameDisk, snapshots and recovery pass against an in-memory
backend, and in CI against a real LVM thin pool and LIO with QEMU clients
(
tests/storage/rehearse.sh). - Debian packages install, upgrade, roll back and uninstall under systemd
in CI (
tests/package/lifecycle.sh).
What is not proven yet:
- No physical client has booted an operating system from DiskX. This is the open v0.1.0 gate (docs/lab/physical-boot.md), so no line of the support matrix is marked supported.
- No game title, launcher or anti-cheat has been tested.
- No performance result is claimed (BENCHMARKS.md).
The implementation plan has the roadmap, and the changelog records what each gate has actually proven.
| Guide | What's in it |
|---|---|
| Management | Dashboard, desktop app, roles, agents, Doctor |
| Security | TLS, credential rotation, request limits, Secure Boot, process isolation, supply chain |
| Operations | Boot segments and VLANs, alerts, backups and restore |
| Upgrade · Recovery | Install, upgrade, rollback, uninstall, disaster recovery |
| Qualification · Pilot | Fault, timing and soak harnesses; running a pilot |
| Release · Compatibility | Verifying signed releases; what stays stable |
| Support matrix | What has been tested on what |
| API v1 | Every admin, agent and boot route |
| Lab guides | Network boot, storage, GameDisk, physical boot, archived evidence |
Show the repository layout
| Path | Contents |
|---|---|
apps/server |
diskx-server binary and library (config, catalog, API, boot policy, storage jobs) |
apps/cli |
diskx operator CLI |
apps/helper |
diskx-helper: the restricted root helper (LVM thin volumes, LIO targets, import/export) |
apps/agent |
diskx-agent: the optional client agent (Windows and Linux) |
web/ |
React/TypeScript dashboard, its unit tests and Playwright end-to-end tests |
desktop/ |
Tauri desktop app around the dashboard |
crates/storage |
Helper protocol, validated names, socket client and the in-memory test backend |
migrations/ |
SQLite schema; CHECKSUMS locks released migrations |
boot/diagnostic/ |
Diagnostic initramfs /init and its reproducible build script |
boot/systemd/ |
diskx-server, diskx-helper, diskx-dnsmasq and diskx-agent units |
tests/boot/ |
Namespace/QEMU boot harness and packet-capture analyzer |
tests/iscsi/ |
Disposable LIO lab targets, scratch LUN builder and the iSCSI sanboot rehearsal |
tests/physical/ |
Evidence recorder for physical boot runs |
tests/storage/ |
System-disk rehearsal on a real LVM thin pool and LIO with QEMU clients; fault scenarios and soak mode |
tests/package/ |
Package lifecycle test: install, upgrade, rollback, uninstall under systemd |
tests/soak/ |
Soak summarizer and its tests |
packaging/ |
Debian package build, release assembly, third-party notices |
benchmarks/ |
fio workload, run driver and summarizer; method and results in BENCHMARKS.md |
docs/ |
Guides and the API reference |
config/ |
Example server and helper configuration |
Contributions are welcome, and physical boot reports are the most useful kind right now.
- Fork the repository and create a branch (
git checkout -b my-change). - Make your change, and run
cargo fmt,cargo clippyandcargo test(pluspnpm --dir web testfor dashboard changes). - Open a pull request that describes what you changed and how you tested it.
To report a physical boot run, fill in the hardware record template and attach it to an issue.
Please don't open public issues for vulnerabilities. Report them privately through the Report a vulnerability button on the Security tab. See SECURITY.md for details.
DiskX is licensed under the Apache License 2.0. Operators supply appropriately licensed Windows, WinPE and game media.