Skip to content

feat(tofu,dotfiles): VirtIO GPU and a baked first sign-in for dot-windows (#1108) - #1112

Merged
Gerrrt merged 8 commits into
mainfrom
gerrrt/dot-windows-display
Oct 9, 2026
Merged

Gerrrt merged 8 commits into
mainfrom
gerrrt/dot-windows-display

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Covers #1108's "look at the slowness". Saruman isn't the cause. The guest was slow for two reasons, and both are fixed and applied to dot-windows (198).

What I measured

Ruled out:

  • Saruman: CPU, IO and memory pressure all at 0, with 42 GiB of memory free.
  • The guest's disk: latency under 2 ms.
  • The guest's memory: 6.6 of 8 GiB free.
  • VBS/HVCI: off.
  • Defender: no scans.
  • Idle load: about 4% CPU.

Found:

  1. No graphics driver. Proxmox's default VGA has no Windows driver, so the guest ran on the Microsoft Basic Display Adapter at 1024×768 and drew every frame on the CPU, then sent it through noVNC.
  2. An expensive first sign-in. tester had never signed in interactively. Its first sign-in reached a desktop in 37 s, then ran the CPU at 30–100% for 3½–7½ minutes (OneDriveSetup, MsMpEng, SearchIndexer). Every run from clean paid that again.

The change

  • tofu/modules/guest: a new vga input, null by default (the block is left out, so no other guest's plan changes), validated to std, virtio or qxl.
  • tofu/guests.tf: dot-windows sets vga = "virtio". The viogpudo driver was already in 911's driver store, so the clone needs nothing more.
  • test-the-dotfiles-layers.md §3: after the prerequisite bake, sign tester in once through a one-shot autologon, wait until the guest is idle, sign out, and remove the autologon (AutoAdminLogon=0, no DefaultPassword). §3 also notes the display. There's an as-run row and a changelog entry.

Applied and verified on 198

  • Plan: untargeted from this branch, it was 0 to add, 1 to change: dot-windows in place, + vga { type = "virtio" }. Applied targeted, and qm config shows vga: memory=16,type=virtio.
  • Display: the guest came up on the Red Hat VirtIO GPU DOD controller at 1280×800.
  • First sign-in: baked, then signed out. The console rests at LogonUI with autologon off and no stored password. clean was retaken while stopped.
  • A sign-in from the new clean: the desktop appears in 36 s and the guest settles in about 2 minutes, down from 3½–7½. Rolled back to clean afterwards.
  • Not verified here: how the console feels. That's for the console run.

This PR is based on #1111's branch, because it extends the bake section #1111 adds. Merge #1111 first; after that, this diff is only the display and sign-in changes. markdownlint-cli2, check_docs.py, tofu fmt -check and tofu validate are clean.

🤖 Generated with Claude Code

Gerrrt and others added 7 commits October 9, 2026 13:41
…ws (#1108)

At the console, tester is a standard user, so each machine-wide install
in the layer's configuration.dsc.yaml asked for the Administrator
password. §3 now installs those packages before `clean` is taken:
PowerShell 7, Git, WSL and Wireshark, each checked against its
publisher's SHA-256. It also turns on Developer Mode and `winget
configure`. §4 drops the steps those cover, and the OOBE workaround that
#1093 made unnecessary. Done on 198 today; the as-run table and the
changelog record it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…over SSH (#1108)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1108)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dows (#1108)

Two things made dot-windows slow, and neither was Saruman. Proxmox's
default VGA has no Windows driver, so the guest drew every frame on the
CPU as the Basic Display Adapter. The guest module gains a `vga` input,
null by default, and dot-windows sets "virtio"; viogpudo is already in
911. And tester's first sign-in ran the CPU at 30-100% for 3.5-7.5
minutes, so §3 now signs it in once before `clean`, after which a
sign-in settles in about 2 minutes. Both are applied to 198, and the
as-run table and changelog record the measurements.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 9, 2026 21:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The infrastructure change is narrowly scoped, validated, applied successfully, and accompanied by complete operational guidance.

0 open findings

What changed in this PR

Adds VirtIO graphics and bakes the initial interactive sign-in into dot-windows, reducing console overhead and repeated startup work.

Changes:

  • Adds an optional validated VGA setting to the guest module.
  • Configures dot-windows with VirtIO GPU.
  • Documents prerequisite and first-sign-in baking, verification, and results.
File Description
tofu/​modules/​guest/​variables.tf Defines the optional VGA input.
tofu/​modules/​guest/​main.tf Conditionally configures the VGA block.
tofu/​guests.tf Enables VirtIO GPU for dot-windows.
docs/​runbooks/​test-the-dotfiles-layers.md Documents baking and console procedures.
docs/​changelog.md Records the performance improvements.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

…splay

# Conflicts:
#	docs/changelog.md
#	docs/runbooks/test-the-dotfiles-layers.md
@Gerrrt
Gerrrt merged commit ae975ad into main Oct 9, 2026
8 checks passed
@Gerrrt
Gerrrt deleted the gerrrt/dot-windows-display branch October 9, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants