AGENT SKILL
validate-windows-vm-config
暂无简介
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 3
02 资源文件 2
- 脚本validate_windows_vm_config.py25.8 KB
- 参考文档windows-vm-validation.yaml5.9 KB
03 SKILL.md 正文
/validate-windows-vm-config
Validate Windows VM YAML configuration against validation rules.
Rules
windows-vm-validation.yaml— defines all required Windows VM settings to validate (in this skill directory)rules/windows-vm-example.yaml— reference Windows VM configuration
Methodology
- Read
methodology/vm-tuning-guide.mdfor background on Windows VM performance tuning (hyperv enlightenments, ioThreads, C-states)
Steps
-
Run the validation:
python3 skills/validate-windows-vm-config/validate_windows_vm_config.py <vm.yaml> -
Report findings to the user — include table, recommendations, and guest-side steps
Output Sections
- Audit table: per-setting PASS/FAIL/WARN (sorted: ❌ first, ⚠️ second, ✅ last)
- SEVERITY: CRITICAL / WARNING / OK derived from fails and warns
- RECOMMENDATION → FINDINGS: all critical and warning issues listed
- GUEST-SIDE STEPS: bcdedit, VBS, C1 tuned
- CORRECTED VM YAML: auto-generated fix (only when critical failures exist)
- SUMMARY: X/N checks passed count
Notes
- For Linux VMs use
skills/validate-linux-vm-config/ - Corrected YAML is valid YAML-only — apply with
oc apply -f <yaml_file> - MSSQL balloon consideration: For VMs running SQL Server (MSSQL),
autoattachMemBalloonmust befalse. SQL Server manages its own memory pool aggressively via its buffer pool — an in-memory cache of data and index pages. When the virtio-balloon driver reclaims guest memory, the guest OS evicts pages from SQL Server's buffer pool, forcing expensive disk re-reads and degrading query performance. This also applies to other memory-intensive workloads that pre-allocate large regions (Java heaps, in-memory databases). The validation script flags this as a critical failure.