Windows VM for build and test checks #8

Closed
UnflavoredMeson/Primal_Plus_Plus
opened 2026-11-24 20:15:49 +00:00 by UnflavoredMeson · 0 comments
Owner

Why

Most Windows checks (does it build with MSVC, do the tests pass, does D3D12 run on WARP) don't need the real GPU, and rebooting the desktop for each one is slow. A VM on the Linux machine does them while you keep working.

Decided

  • A Windows 11 KVM VM driven over SSH: Tools/WinVM/winvm.sh sync copies the working tree to C:\primal, winvm.sh run '<PowerShell>' runs there.
  • D3D12 runs on WARP and Vulkan on lavapipe in the VM; performance and visual checks still happen on the desktop.
  • winvm.sh screenshot shows the VM's own screen only.
  • This is a helper, not engine work: Claude can set most of it up while you review.

Read first

  • UnflavoredMeson/Primal#37.

Steps

  • 1. Decide whether you want the VM now or later (everything else works without it, just with more reboots).
  • 2. Create the VM with the fork's Tools/WinVM/ scripts (copy them in, or have Claude do it) and provision MSVC Build Tools and the Vulkan SDK.
  • 3. Run winvm.sh sync and build the four configurations there.
  • 4. Take a snapshot of the clean state.

Done when

  • winvm.sh run builds the solution and runs UnitTests in the VM.
  • A clean snapshot exists.

Claude can help with

  • Most of it: the unattended install, provisioning, the sync script. You review and keep the credentials.

Learn

  • What WARP is and what it can't tell you (performance, driver bugs).
## Why Most Windows checks (does it build with MSVC, do the tests pass, does D3D12 run on WARP) don't need the real GPU, and rebooting the desktop for each one is slow. A VM on the Linux machine does them while you keep working. ## Decided - A Windows 11 KVM VM driven over SSH: `Tools/WinVM/winvm.sh sync` copies the working tree to `C:\primal`, `winvm.sh run '<PowerShell>'` runs there. - D3D12 runs on WARP and Vulkan on lavapipe in the VM; performance and visual checks still happen on the desktop. - `winvm.sh screenshot` shows the VM's own screen only. - This is a helper, not engine work: Claude can set most of it up while you review. ## Read first - `UnflavoredMeson/Primal#37`. ## Steps - [x] 1. Decide whether you want the VM now or later (everything else works without it, just with more reboots). - [x] 2. Create the VM with the fork's `Tools/WinVM/` scripts (copy them in, or have Claude do it) and provision MSVC Build Tools and the Vulkan SDK. - [x] 3. Run `winvm.sh sync` and build the four configurations there. - [x] 4. Take a snapshot of the clean state. ## Done when - [x] `winvm.sh run` builds the solution and runs UnitTests in the VM. - [x] A clean snapshot exists. ## Claude can help with - Most of it: the unattended install, provisioning, the sync script. You review and keep the credentials. ## Learn - What WARP is and what it can't tell you (performance, driver bugs).
Sign in to join this conversation.
No description provided.