The boot server itself needs no packages. Only the VM features (QEMU, OVMF,
KVM; installable from the Diskless page) and formatting a disk as XFS
(xfsprogs) use programs of the system; install-service needs systemd.
The golden's startup task fetches the server's script at every start; for the VM of a running Add hardware job the server answers with broom-onboard.ps1 and the job's token. The script gets the job and the library's drivers over HTTP and posts its result; the VM's disk is an NBD export. Nothing is written into the golden's disk by the server: no iscsiadm, no ntfs-3g. The Update script feature is removed. The VM features now need QEMU and OVMF only.
The daemon serves a golden / games disk to QEMU over a root-only Unix socket (NBD) through the same layers and write-key rule as an iSCSI update session; the maintenance VM needs no open-iscsi. pkgmgr is per feature (VM: QEMU + OVMF).
Server packages card on the Diskless page: detects apt / dnf / yum, lists what the VM features lack with that system's package names, and an owner-only Install button that runs the command as root with live output.
Diskless goldens over iSCSI, Add hardware, maintenance VM in the browser, machine power / display / hardware list, roles with permissions and HTTPS for the web admin. Includes the security fixes from the review on #2.
Co-authored-by: Mojo-LB <35627917+Mojo-LB@users.noreply.github.com>
BIOS PXE ROMs (DHCP arch 0) got no boot file; Broom was UEFI-only.
- DHCP/TFTP: serve undionly.kpxe (iPXE + embedded bios.ipxe:
chains autoexec.ipxe, so router-DHCP mode does not loop)
- iPXE patch 0003: menu rules as CP437 0xc4 on the BIOS text
console, which does not decode UTF-8 (screen was garbled)
- SSD on BIOS machines: MBR (Windows boots BIOS only from MBR),
disk id "BROM" ("BROL" Linux-only), partition role from its
place. Relaid only when the table is surely of the other kind
- Windows stage: no BootNext under BIOS. Writes the boot
partition + MBR code from bios.tar.gz, then POST
/api/boot/local; next /boot.ipxe sanboots that drive once
(300 s, only from the IP of the machine's menu choice). Drive
from EDD MBR ids in /sys/kernel/boot_params, no edd module
- prep-win: build broom\bios (fixed MBR VHD, bcdboot /f BIOS);
any failure there leaves a UEFI-only golden, never stops prep.
Publish packs it as bios.tar.gz when present
- strict reset on BIOS: bootorder task deletes \bootmgr and drops
BROOMWIN/BROOMEFI drive letters
- shim line skipped on pcbios; deploy warns on firmware mismatch
- docs: legacy BIOS, tested on Windows 11 Pro and Enterprise
Windows goldens prepped before this boot UEFI clients only: run the
prep command again, upload, Publish. Stage bundle needs a rebuild.
BIOS PXE ROMs (DHCP arch 0) got no boot file; Broom was UEFI-only.
- DHCP/TFTP: serve undionly.kpxe (iPXE with bios.ipxe embedded:
chains autoexec.ipxe, so router-DHCP mode does not loop)
- SSD on BIOS machines: MBR (Windows boots BIOS only from MBR),
marked by disk id "BROM" ("BROL" Linux-only); partition role
from its place. GPT<->MBR layout redone on firmware mode switch
- Windows stage: no BootNext under BIOS. Writes the boot
partition + MBR code from bios.tar.gz, then POST /api/boot/local;
the next /boot.ipxe sanboots that drive once (120 s, only from
the IP of the machine's menu choice). Drive found via EDD MBR ids
in /sys/kernel/boot_params, no edd module
- prep-win: build broom\bios (fixed MBR VHD, bcdboot /f BIOS);
publish packs it as bios.tar.gz when present
- strict reset on BIOS: bootorder task deletes \bootmgr and drops
BROOMWIN/BROOMEFI drive letters
- shim line skipped on pcbios; deploy warns on UEFI image to BIOS PC
Windows goldens prepped before this boot UEFI clients only: run the
prep command again, upload, Publish. Stage bundle needs a rebuild.
Each upload/Capture writes a new image.img, so every version took its
full size. On XFS reflink/btrfs the version before a new golden now
gives back shared blocks (FIDEDUPERANGE; blake3/64K index in .bhash).
Only version files are deduped, never a served image.img.
- publish rebuilds an image.img scattered by dedupe before serving it
(rollback, → New image); stamp kept, no rehash or golden rebuild
- Dedup button for versions saved earlier, after a move or restore
- Server → Disks formats XFS with reflink first, ext4 as fallback
- fix: move left a Linux image without its iSCSI target, and a
Windows golden served from the old, deleted file
- docs: user guide; README and Pages updated
The web admin and Capture ran over plain HTTP and sent the owner
password in the clear on a LAN that may not be isolated.
- auth: 4-message handshake (hello → salt + nonce → proof → server
proof). PBKDF2-SHA256 runs on the client; the server keeps a
verifier only, so a copied DB logs nobody in and a sniffed sign-in
yields no password or replayable proof.
- new passwords (setup, change, owner reset) travel as verifiers
sealed with the handshake's session key, or the setup token for
the first owner; neither the token nor the password is sent
- web: SHA-256/HMAC/PBKDF2 in plain JS (crypto.js), since WebCrypto
is off on http:// to an IP; values pinned against the Rust side
- capture: same handshake, checks the server's proof
- deps: argon2 out (no server-side KDF left), pbkdf2 in; random
bytes from getrandom(2)
- ci: SLSA build provenance (attest-build-provenance) on every
release file
- docs: quick start checks SHA256SUMS and explains
`gh attestation verify`; read-before-run variant of the prep
scripts
- prep-linux.sh: body in main() so a cut-off `curl | bash` runs
nothing
- comments: drop stale "one-time token" wording for the prep
scripts
BREAKING CHANGE: accounts store a verifier instead of an argon2
hash and sessions gain a key column; an existing bootrom.db no
longer works, so start with a new one. /api/auth/login takes
{hs, proof} after /api/auth/hello; /api/password and /api/users
take a sealed `cred` instead of a plain password.
Parser inputs come from the LAN or uploads and run as root; mutation
fuzzing found three panics:
- dns: a query with QDCOUNT 0 panicked the response builder
(any LAN host could take DNS answers down)
- gpt: huge LBAs overflowed the byte offsets
- lvm: negative or huge metadata numbers overflowed segment offsets
Sessions move to a `sessions` table (blake3 of the token stored, never
the token): logout ends the session on the server, so a copied cookie
dies too; a password change or a deleted account ends all of that
account's sessions.
- agentauth: hmac crate instead of a hand-rolled HMAC-SHA256
- tests: no-panic fuzz of DHCP, DNS, TFTP, iSCSI sessions, SCSI CDBs,
GPT/MBR, VMDK, LVM, ext4, NTFS (BROOM_FUZZ=N for deeper runs)
- tests: app.js lint, every ${} in HTML templates escaped or vetted;
esc the volume state, CSS.escape the page selector
- tests: account rights and session ends in the API contract test
- build: binary version = release tag (UTC timestamp) via
BROOM_VERSION; build.sh stamps local builds with the build time
BREAKING CHANGE: session_secret and pw_gen are gone; existing session
cookies are invalid, everyone logs in again.
No server runs an older version; every deploy starts fresh, so the
code that migrated old installs goes.
- remove LIO/zram-kernel cleanup, dnsmasq/tftpd takeover, old
directory layout move, admin_pw → owner account conversion
- remove DB migrations: schema comes from SCHEMA only, unique
indexes live there; leases lose the always-"full" source column
- rename config keys ltsp_user/ltsp_password → guest_user/
guest_password
- golden: no ServeFile fallback for a golden.vhdx file (404 →
publish again), drop tower dependency
- versions: drop 4 MB chunk versions, a version is its file only
- iscsid: peers is a plain list, no "old daemon" branch
- publish refuses a golden prepped without the script stubs
(was a warning: its scripts never updated)
- stage/linux-cache: stop cleaning delta-update leftovers
- tests: reuse disk.rs readers in vhdx tests
- docs: README rewritten shorter (618 → 259 lines), Pages updated,
imaging (capture/deploy) added to the comparisons
BREAKING CHANGE: an existing bootrom.db is not migrated: start with
a new one. Goldens prepped before 2026-10-09 must be prepped again
in the VM before upload.
- Removed the `base_mode` field from the `Image` struct and related database schema.
- Introduced `base_image` field in the `Machine` struct to track the Windows image that boots its base.
- Updated database schema to reflect changes, including migration for existing databases.
- Modified relevant database methods to support new base mode functionality.
- Updated API routes and handlers to manage base mode settings for machines.
- Adjusted frontend code to include base mode selection and display.
- Removed obsolete references to the old base mode logic in tests and other modules.
Behavior changes:
- boot_timeout falls back to 3 s, not 10, when the stored value is bad
- MACs are trimmed and accepted in more forms (aa-bb..., aabb.ccdd...)
by every endpoint, via devices::norm_mac
- account API 500s return "internal error"; details only in the log
- durable writes go through <file>.tmp with fsync
Kept on purpose: Db trait (MySQL/Postgres planned), hand-rolled
crc32c and HMAC, every dependency.
- Add `move_backup_gpt` function to relocate the GPT backup header and entries to the end of a larger disk.
- Modify the export module to include `full_disk` function for handling Windows images with preserved boot partitions.
- Introduce new API endpoints `/api/images/deploy-map` and `/api/images/deploy-chunk` for retrieving image deployment information and chunks.
- Update image routing to include the new deployment endpoints.
- Enhance end-to-end tests for capturing and deploying images, ensuring proper functionality of the new features.
- Add unit tests for the `move_backup_gpt` function to verify correct behavior and partition integrity after relocation.
- Implemented disk size retrieval in `disk.rs` to handle empty files.
- Introduced a new module `capture` in `main.rs` for handling disk capture requests.
- Added a new endpoint `/broom-capture` to serve the binary for capture operations.
- Enhanced NTFS reading capabilities with methods to retrieve file head and used ranges.
- Updated SSD settings to include a configurable pagefile size, with appropriate validation.
- Modified frontend to support new SSD settings, including pagefile input.
- Added tests for capture functionality and NTFS bitmap handling.
- Added `forget_update` function in `games.rs` to handle the deletion of update machines for disks.
- Enhanced `forget` function in `machines.rs` to remove associated disks and remote keys when a machine is deleted.
- Introduced `moved` function in `machines.rs` to manage MAC address changes and update associated configurations.
- Integrated new DNS recursive functionality in `sysmon.rs` to provide additional DNS metrics.
- Updated frontend JavaScript in `app.js` to support new DNS settings and improve user experience.
- Modified `page-network.html` to include new DNS resolution options and improve layout.
- Added unit tests for DNS resolution and caching in `dnsrec.rs` to ensure reliability and correctness.
- Enhanced SQLite database tests to validate machine uniqueness constraints and ensure proper handling of legacy data.
- Updated logging and error messages to replace "games disk" with "iSCSI disk" for consistency across the codebase.
- Added a new DNS module to manage DNS server functionality for healthy machines.
- Enhanced the monitoring system to include DNS status and blocked states.
- Updated front-end pages to reflect changes from "games disks" to "iSCSI disks" and added DNS configuration options.
- Implemented unit tests for the new DNS functionality, including query handling and IP resolution logic.
- Updated CSS to hide owner-specific actions for staff accounts.
- Modified JavaScript to load user roles and manage permissions based on user type.
- Enhanced HTML structure to reflect user roles and permissions in navigation and forms.
- Updated login functionality to support user accounts instead of a single admin password.
- Added tests for session tokens and user permissions to ensure proper access control.
- Implemented checks for games update permissions based on IP and MAC address.
- Added functionality to display and manage local disks in the server and games pages.
- Implemented disk visibility options for machines, allowing users to hide non-Broom disks from guests.
- Introduced server disk selection for images and games, enabling users to choose where to store new disks.
- Updated various HTML pages to reflect new disk management features, including server disk selection in images and games sections.
- Added unit tests for disk parsing and volume management to ensure robustness.
- Improved user experience with clearer messaging and options related to disk management.
- Added a new "Logs" page accessible from the navigation menu, displaying the last 2000 log lines with filtering options.
- Enhanced the server monitoring page by adding visualizations for CPU, RAM, network usage, and disk activity over the last 10 minutes.
- Introduced a new test for token rechecking to ensure token validity based on the current secret and expiry.
- Added unit tests for log buffer functionality, ensuring proper filtering and color stripping.
- Implemented a new test for calculating traffic rates between two samples in the system monitoring tests.
- Updated README.md to reflect support for up to ~100 PCs per server and added sizing details.
- Revised Vietnamese documentation to clarify the capacity of Broom for larger rooms.
- Adjusted comparison documentation to indicate that Broom is designed for larger setups.
- Enhanced index documentation to include sizing information.
- Implemented DHCP pool management to calculate the number of required addresses based on registered machines and leases.
- Improved VNC management to handle viewer attachments and control sessions more effectively.
- Added client-side paging options for machine and remote views, allowing for better navigation and organization.
- Updated tests to cover new DHCP pool calculations and VNC viewer behavior.
- Updated documentation for guest user settings in Broom's web admin.
- Improved VNC agent script with enhanced logging and privilege management.
- Modified PowerShell script to compile VNC agent using .NET Framework's csc.
- Added new HTML pages for server and games management, including relevant functionality.
- Updated existing pages to reflect new structure and improved user experience.
- Removed obsolete SSD settings from system page and consolidated them into the Windows page.
- Enhanced server monitoring features and adjusted alert settings for better resource management.
- Introduced a new `metrics.rs` module to handle per-machine hardware health metrics (CPU %, RAM %, temperatures, disks).
- Updated the `broom-watch.ps1` script to reference System.Management for improved functionality.
- Modified `AppState` to store and retrieve metrics for each machine.
- Enhanced the `MachineStatus` struct to include metrics data.
- Implemented disk health checks using SMART data for NVMe and SATA disks in `sysmon.rs`.
- Updated the VNC agent to push hardware health metrics over WebSocket connections.
- Enhanced the frontend to display hardware health metrics in the UI, including disk status and temperatures.
- Added unit tests for metrics parsing and disk health attribute extraction.
- Implemented a remote agent (broom-vnc.exe) that allows viewing and controlling Windows machines via a WebSocket connection.
- Updated broom-watch.ps1 to start the VNC agent and ensure it runs in the console session.
- Added new API endpoints for VNC agent management and viewing.
- Created a new remote page in the web interface for connecting to and controlling Windows machines.
- Enhanced asset management to include VNC-related scripts and binaries.
- Updated the frontend to support remote control features, including mouse and keyboard events.
- Added tests for VNC agent and viewer functionality.
- Introduced a configuration option to serve games.img from a RAM copy, improving read performance.
- Implemented background loading of the RAM copy and handling of stale copies during merges.
- Updated the state structure to track RAM loading status and merge counts.
- Enhanced the API to toggle RAM serving and retrieve relevant information.
- Added frontend support for managing the RAM serving option in the UI.
- Updated tests to cover new RAM functionality and ensure proper behavior with incompressible blocks.
- Updated page-groups.html to enhance layout with Bootstrap classes, improving responsiveness and visual hierarchy.
- Refined page-images.html with similar Bootstrap enhancements, ensuring a more modern look and feel.
- Modified page-machines.html to align with new design standards, including better button styles and input fields.
- Revamped page-network.html to utilize Bootstrap components for a cleaner interface and improved usability.
- Enhanced page-system.html with consistent styling and layout adjustments for better user experience.
- Added tests in auth.rs to ensure public paths include stylesheets while excluding app scripts.