feat(deploy-win): build the VMX without USB controllers

A headless CI build VM has no USB devices — input is the VMware PS/2
keyboard/mouse + SVGA console. Drop the usb/ehci/usb_xhci controllers from
the generated VMX (one explicit `usb.present = "FALSE"`), trimming device
enumeration at boot. Step 9's usb* line stripping becomes a harmless no-op.
This commit is contained in:
2026-06-08 23:36:29 +02:00
parent 0df7305841
commit 32d753df3e
2 changed files with 7 additions and 6 deletions
+3
View File
@@ -40,6 +40,9 @@ def test_winbuild_vmx_lines() -> None:
assert 'sata0:1.fileName = "/iso/tools.iso"' in text
assert 'ethernet0.virtualDev = "e1000e"' in text
assert 'nvme0:0.fileName = "WinBuild2025.vmdk"' in text
# No USB controllers on a headless CI build VM.
assert 'usb.present = "FALSE"' in text
assert "usb_xhci" not in text and 'ehci.present = "TRUE"' not in text
def test_remove_vmx_lines(tmp_path: Path) -> None: