r/VFIO • • 23h ago

Resource Wise Linux Studio v1.1.2 — Multi-distro VFIO configuration utility (Workstation focus, Phase 1 boot & detection hardening)

0 Upvotes

Wise Linux Studio v1.1.2 is now available. It is an open-source Bash and Python GUI utility designed to automate VFIO / GPU passthrough configuration across Fedora**,** Ubuntu/Debian (and derivatives), and Arch Linux (and derivatives).

Project Scope

Following earlier feedback from this community, all references to anti-cheat compatibility or VM stealth have been removed from the project scope. Wise Linux Studio does not attempt to bypass kernel-level anti-cheat systems. It is strictly intended for workstation and creative workflows (Adobe Creative Cloud, Microsoft Office, 3D applications) as well as games that do not enforce VM bans.

Technical Highlights in v1.1.2 (Phase 1 Hardening)

Recent updates focused on hardening the hardware detection, bootloader, and initramfs stages:

* Read-Only Hardware Gatekeeper (`gpu_detect.sh`):

* Duplicate PCI ID Collision Lock: Scans all PCI devices outside the candidate slot for matching `vendor:device` pairs (including companion audio functions). Because `vfio-pci.ids=` binds globally by PCI ID rather than slot, systems with identical dual GPUs are blocked rather than allowing `boot_vga` to be captured.

* Fail-Closed Classification: Replaced the AMD integrated GPU blacklist with an explicit discrete-family allowlist so unlisted or newer AMD APUs are rejected by default. Missing or unreadable `lspci` output now fails closed instead of falling back to an unclassified state.

* Topology Checks: Enforces IOMMU group isolation across all slot functions (permitting `0x0604` PCI bridges) and handles Optimus `3D controller` nodes lacking a `boot_vga` attribute.

* Testable Sysfs Root: Added `WISE_SYSFS_ROOT` (defaulting to `/sys`) for deterministic unit testing against synthetic PCI/IOMMU trees.

* GRUB & IOMMU Configuration (`grub_setup.sh`, `iommu_enable.sh`):

* Replaced regex-based `sed` manipulation with `IFS`-safe, glob-safe word-based parameter filtering to prevent adjacent kernel arguments from concatenating.

* Added post-write whole-word verification against `/etc/default/grub`; any missing or altered original parameter triggers an automatic rollback from backup.

* Initramfs Management (`initramfs_setup.sh`):

* Saves a pre-rebuild snapshot of the running kernel's initramfs image and replaces silent rollback commands with explicit status checks, image restoration fallback, and critical recovery warnings.

* Resolves Arch Linux kernel images via `/usr/lib/modules/$(uname -r)/pkgbase` (`linux-lts`, `linux-zen`, etc.) instead of wildcard matching.

* Enforces non-silent `vfio-pci` presence verification across `dracut`, `initramfs-tools`, and `mkinitcpio`, with explicit warnings on UKI or non-standard boot layouts.

Current Verification Status

* Fedora: Tested on bare metal, including read-only detection and `--dry-run` workflows.

* Ubuntu/Debian & Arch Linux: Verified via syntax validation and isolated synthetic test harnesses (`WISE_SYSFS_ROOT`, mock GRUB, and mock initramfs rollback suites). Bare-metal validation across additional distributions and hardware topologies is currently ongoing.

* Non-Destructive Inspection: `./gpu_detect.sh` operates strictly read-only, and `--dry-run` mode allows inspecting planned operations without modifying system files.

Repository

https://github.com/t11man/Wise-Linux-studio

Technical code reviews, bug reports, and read-only `./gpu_detect.sh` outputs from multi-GPU, Optimus, or AMD APU configurations on Arch and Debian/Ubuntu are welcome via GitHub Issues or in the comments.