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

nvx-run

Skill296 starsChanged 58 days agoMITView on GitHub

Run NVX interactively on a local or SSH-connected Linux/KVM, Linux/MSHV, or Windows/WHP host. Use for boot smoke tests, guest shell sessions, virtio-fs mounts, networking, kernel command-line options, and clean guest shutdown.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the current local workspace when the user requests local execution or the local host provides the required backend.

    line 14
  2. Distinctive:

    Run from the NVX repository root.

    line 20
  3. Very specific:

    Run python3 scripts/nvx.py verify on Linux or python scripts\nvx.py verify on Windows.

    line 22
  4. Very specific:

    Use scripts/nvx.py run rather than invoking OpenVMM directly.

    line 34
  5. Distinctive:

    Start with an explicit backend and add only options required by the task:

    line 41
  6. Distinctive:

    Do not start a competing VM unless the user confirms the existing process is expected and the host has sufficient resources.

    line 83

≈ “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

Run NVX

Boot NVX in the appropriate local or remote execution context and verify guest behavior.

1. Choose the Execution Context

Use the current local workspace when the user requests local execution or the local host provides the required backend. Use SSH when the user names a remote host, the required backend is unavailable locally, or the target machine itself matters.

For local execution:

  • Run from the NVX repository root.
  • Record the OS, git rev-parse HEAD, and git status --short.
  • Run python3 scripts/nvx.py verify on Linux or python scripts\nvx.py verify on Windows.
  • Select kvm or mshv on Linux and confirm the matching device is readable and writable. Select only whp on Windows.
  • Preserve a dirty checkout and report it. Do not silently change revisions or replace artifacts.

For SSH execution, load and complete nvx-host-connect, then reuse its persistent session, repository directory, backend, revision, and artifact provenance. Keep standard input attached to the guest; use ssh -tt if opening a direct interactive command.

Use scripts/nvx.py run rather than invoking OpenVMM directly. If artifacts are missing, choose an explicit download --hypervisor <backend> for packaged artifacts or the relevant build command for checkout changes. Do not overwrite artifacts the user wants to preserve.

2. Assemble the Run

Start with an explicit backend and add only options required by the task:

backend=kvm # Use mshv when required.
python3 scripts/nvx.py run --hypervisor "$backend" --dry-run
python scripts\nvx.py run --hypervisor whp --dry-run

Supported examples:

python3 scripts/nvx.py run --hypervisor kvm \
    --memory-mib 256 --net 10.0.0.2/24 --network-profile portable \
    --cmdline "quiet loglevel=0"
python3 scripts/nvx.py run --hypervisor mshv \
    --mount "/mnt/host,/absolute/host/share,rw"
python scripts\nvx.py run --hypervisor whp `
    --mount "/mnt/host,C:\Users\me\microvm-share,rw"

For --mount, the guest target must be an absolute Linux path. Host paths containing commas are unsupported. Use ro unless guest writes are required.

3. Check for Conflicts

Immediately before booting, check for an existing OpenVMM process in the selected execution context:

pgrep -af openvmm || true
Get-Process openvmm -ErrorAction SilentlyContinue

Do not start a competing VM unless the user confirms the existing process is expected and the host has sufficient resources. Never terminate a process the current session did not start.

4. Run Interactively

backend=kvm # Use mshv when required; append the approved options.
python3 scripts/nvx.py run --hypervisor "$backend"
# Append the options approved from the dry run when needed.
python scripts\nvx.py run --hypervisor whp

Success requires the ALPINE-MICROVM-BOOT-OK marker and a responsive root shell. Exercise the requested behavior, then exit cleanly inside the guest:

/sbin/nvx-exit 0

Record the host process exit status. If the guest hangs, interrupt only the command started by the current terminal or SSH session and preserve its output. Do not issue a host-wide killall or an unscoped Stop-Process.

Report

Report whether execution was local or SSH, the host, backend, commit, dirty status, artifact source, exact run command, boot marker result, guest checks, and host exit status. For a failure, preserve the terminal output and continue with nvx-debug.

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.