microsoft/openvmm/vmm-tests

Claude Code and agent skill by microsoft/openvmm

Trust tier 4
  • vendor
Source check pending

Checking that the SKILL.md file is still in the repository.

Run VMM tests locally with cargo xflowey vmm-tests-run. Load when running or debugging VMM tests, or when you need to understand the petri test framework, artifact handling, or cross-compilation for VMM tests.

Install

npx vskill@latest install microsoft/openvmm/vmm-tests

SKILL.md

The same SKILL.md was published earlier as microsoft/openvmm/vmm-tests.

Running VMM Tests

VMM tests boot full virtual machines and validate behavior. They live in vmm_tests/vmm_tests/tests/tests/ and use the petri test framework.

Always use `cargo xflowey vmm-tests-run` — never raw cargo nextest run -p vmm_tests. The xflowey command handles artifact discovery, dependency building, and test execution automatically.

Quick Start

bash
# Run a specific test
cargo xflowey vmm-tests-run --filter "test(my_test_name)"
# Run all tests matching a prefix
cargo xflowey vmm-tests-run --filter "test(/^boot_/)"
# Run all tests (rarely needed locally)
cargo xflowey vmm-tests-run --filter "all()"

Omitting --filter selects all tests. Use an explicit selection so the command's scope is clear.

Output Directory

Usually you don't need --dir — it defaults to target/vmm_tests. When cross-compiling for Windows from WSL2, --dir on the Windows filesystem (e.g., --dir /mnt/d/vmm_tests) is required only when the selected tests use disk images that need a Windows filesystem: Hyper-V tests, or tests using VHDX / dynamic VHD1 images. For everything else (streamed disks, or plain fixed VHD1 / VMGS / ISO files), the default WSL-side directory works. vmm-tests-run detects this and errors with a clear message if --dir is required.

Filter Syntax

Filters use nextest filter expressions:

ExpressionMatches
test(foo)Tests with foo in the name
test(/^boot_/)Tests starting with boot_ (regex)
test(foo) & !test(hyperv)foo tests excluding Hyper-V variants
all()Everything

Platform Targeting

By default, tests build for the current host. Use --target for cross-compilation:

bash
# Cross-compile and run Windows tests from WSL2
cargo xflowey vmm-tests-run --target windows-x64 --filter "test(my_test_name)"
TargetDescription
windows-x64Windows x86_64 (Hyper-V / WHP)
windows-aarch64Windows ARM64 (Hyper-V / WHP)
linux-x64Linux x86_64

Windows from WSL2: Cross-compilation setup is required first — see Guide/src/dev_guide/getting_started/cross_compile.md.

Artifact Handling (Lazy Fetch)

By default, disk images (VHDs/ISOs) are streamed on demand via HTTP with local SQLite caching. This avoids multi-GB upfront downloads.

  • --no-lazy-fetch — download all images upfront instead of streaming
  • Lazy fetch is automatically disabled for Hyper-V tests (they need local files)
  • --skip-vhd-prompt — skip interactive VHD download prompts (useful for

automation)

Viewing Logs

Test output (petri logs, guest serial, etc.) is shown by default on failure. For full OpenVMM tracing, set the OPENVMM_LOG environment variable:

bash
OPENVMM_LOG=trace cargo xflowey vmm-tests-run --filter "test(foo)"

Other Useful Flags

FlagPurpose
--releaseRelease build (default: debug)
--build-onlyBuild without running
--verboseVerbose cargo output
--install-missing-depsAuto-install missing system dependencies
--custom-uefi-firmware <PATH>Use a custom UEFI firmware (MSVM.fd)
--custom-kernel <PATH>Use a custom kernel image

Run cargo xflowey vmm-tests-run --help for the full option list.

Common Pitfalls

  • Don't use `cargo nextest run -p vmm_tests` directly — artifacts won't

be present and tests will fail with missing-artifact errors.

  • Hyper-V tests — require Hyper-V Administrators group membership and

disable lazy fetch automatically.

  • CI failures — use the openvmm-ci-investigation skill to diagnose

failing VMM tests in CI, not this workflow.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 16 Jul 2026.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1,859
Repository forks
209
7-day trend score
38

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill CERTIFIED badge
[![vskill CERTIFIED](https://verified-skill.com/api/v1/skills/microsoft/openvmm/vmm-tests/badge)](https://verified-skill.com/skills/microsoft/openvmm/vmm-tests)

Something wrong with this skill or its page? Tell us.