vmix.nix/lib/images/windows
Git Sagar 0e4619eb39 pci: keep multifunction devices together; data disk: diskpart, not Storage cmdlets
Two defects found while getting a GPU through Proxmox to a nested guest.

Passthrough gave every address its own pcie-root-port, which splits a GPU from
its own HDMI audio: 05:00.0 and 05:00.1 arrived in the guest as two devices on
two buses instead of functions 0 and 1 of one device. Navi needs both halves on
one device to reset or power-manage either, so the guest got a card stuck in D3
and a reset that could not be performed. Addresses are now grouped by
everything left of the function digit, and each group goes behind one root port
at one slot with multifunction=on on function 0 -- which is also where the
VBIOS and the VGA route belong.

The data-disk setup used Initialize-Disk/New-Partition/Format-Volume. Only the
first of those works that early in specialize; the rest need services that are
not up yet, and with ErrorActionPreference=Stop the script gave up straight
after writing a GPT header. The result was a 50G disk carrying 24KB of nothing
and a ProfilesDirectory pointing at a volume that never existed. diskpart works
at that stage. It also tries assigning the letter before laying the disk out,
so a disk that already holds a profile is lettered rather than cleaned.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0117qMyjpuXsjpVAcpJbFD8g
2026-09-10 04:58:54 -03:00
..
drivers sync with labv2.nix + standalone flake with toDisk app 2026-05-23 19:18:10 -03:00
helpers windows images: stop a non-matching display glob from poisoning the build env 2026-09-10 00:06:07 -03:00
templates pci: keep multifunction devices together; data disk: diskpart, not Storage cmdlets 2026-09-10 04:58:54 -03:00
win10 laptop image tiers, devshell, partition preserve, cleanup 2026-05-24 13:32:18 -03:00
win11 laptop image tiers, devshell, partition preserve, cleanup 2026-05-24 13:32:18 -03:00
default.nix sync with labv2.nix + standalone flake with toDisk app 2026-05-23 19:18:10 -03:00