agentleFS
MicrosoftKnown publishermicrosoft/nvx/.github/skills/nvx-debug/SKILL.md

nvx-debug

Skill296 starsChanged 57 days agoMITView on GitHub

Debug NVX on a local or SSH-connected Linux/KVM, Linux/MSHV, or Windows/WHP host. Use for boot failures, missing readiness markers, OpenVMM errors, benchmark acceptance failures, guest hangs, platform access errors, and detailed diagnostics.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run scripts/nvx.py verify with the platform's Python launcher.

    line 22
  2. Very specific:

    Use trace only when debug does not expose the failing component.

    line 55
  3. Very specific:

    Use scripts/nvx.py run --dry-run to inspect the generated OpenVMM command.

    line 60

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Debug NVX

Reproduce one NVX failure in the appropriate local or remote execution context while preserving enough evidence to identify its controlling layer.

1. Choose the Execution Context

Reproduce on the host where the failure occurred unless the user explicitly wants to test another host. Use the current workspace for local failures. When SSH is required, load and complete nvx-host-connect, then reuse its persistent session, repository directory, backend, revision, and artifact provenance.

For local execution, run from the repository root and record the OS, Python version, git rev-parse HEAD, git status --short, selected backend, and artifact source. Run scripts/nvx.py verify with the platform's Python launcher. Confirm /dev/kvm or /dev/mshv access on Linux; Windows supports only WHP. Preserve dirty checkouts and do not repair host configuration implicitly.

2. Capture the Baseline

Before retrying, preserve:

  • Local or SSH context, host, detected OS, backend, and platform ID.
  • Exact commit, dirty status, and artifact source.
  • Python version and run --dry-run output.
  • Exact failing command, exit status, and complete terminal error.
  • Whether an OpenVMM process remains after the failure.

Change one variable at a time. Never terminate an OpenVMM process the current session did not start.

3. Trace an Interactive Run

Set OpenVMM logging in the selected execution shell and rerun the same command:

export OPENVMM_LOG=debug
backend=kvm # Use mshv when required; append the original options.
python3 scripts/nvx.py run --hypervisor "$backend"
$env:OPENVMM_LOG = 'debug'
# Append the options from the original failing command when needed.
python scripts\nvx.py run --hypervisor whp

Use trace only when debug does not expose the failing component. Keep the guest interactive; do not pipe the command through a logger that can detach standard input. The terminal transcript is the primary debug record. Exit a responsive guest with /sbin/nvx-exit 0.

Use scripts/nvx.py run --dry-run to inspect the generated OpenVMM command. Invoke that printed command directly only when low-level debugging requires options the NVX wrapper does not expose, and record every deviation.

4. Reduce a Benchmark Failure

Reduce a benchmark failure to a one-run acceptance case before modifying the measured suite:

backend=kvm # Use mshv when required.
python3 scripts/nvx.py benchmark --suite e2e --backend "$backend" \
    --warmups 1 --runs 1 --skip-build --output data/runs/debug-e2e.json
python scripts\nvx.py benchmark --suite e2e --backend whp `
    --warmups 1 --runs 1 --skip-build --output data\runs\debug-e2e.json

The benchmark coordinator intentionally suppresses most OpenVMM logging to protect measurements. Missing detailed benchmark logs are not a logging failure. Reproduce the boot through run when OpenVMM traces are needed.

Stopping Conditions

FailureAction
SSH authentication or host-key failureStop and let the user repair trust or credentials.
Missing or inaccessible hypervisor deviceReport the exact device check without elevating.
WHP unavailableReport the smoke-run error; enabling WHP requires an administrator and reboot.
Dirty or wrong revisionStop mutation; use it only with approval or prepare an isolated checkout.
Missing artifactsChoose explicit download or build based on the requested provenance.
Boot marker timeoutTrace the same backend and command before widening scope.
SSH disconnectCheck for the original process and output before starting another run.

Apply SSH-specific conditions only to remote execution.

Report

Report the execution context, smallest reproduction, observed versus expected behavior, relevant trace lines, the layer that appears to control the failure, and the next discriminating check. Include all changed options and unresolved privilege or transport limitations.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.