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.
In this repository12 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- address-pr-commentsSkill
- agentic-workflowsSkill
- commit-messageSkill
- create-prSkill
- nvx-benchmarkSkill
- nvx-ci-investigationSkill
- nvx-debugSkill
- nvx-host-connectSkill
- nvx-openvmm-promoteSkill
- rebase-and-validateSkill
- review-changesSkill
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
- Distinctive: line 14
Use the current local workspace when the user requests local execution or the local host provides the required backend.
- Distinctive: line 20
Run from the NVX repository root.
- Very specific: line 22
Run python3 scripts/nvx.py verify on Linux or python scripts\nvx.py verify on Windows.
- Very specific: line 34
Use scripts/nvx.py run rather than invoking OpenVMM directly.
- Distinctive: line 41
Start with an explicit backend and add only options required by the task:
- Distinctive: line 83
Do not start a competing VM unless the user confirms the existing process is expected and the host has sufficient resources.
≈ “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.
Files
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, andgit status --short. - Run
python3 scripts/nvx.py verifyon Linux orpython scripts\nvx.py verifyon Windows. - Select
kvmormshvon Linux and confirm the matching device is readable and writable. Select onlywhpon 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-runpython scripts\nvx.py run --hypervisor whp --dry-runSupported 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 || trueGet-Process openvmm -ErrorAction SilentlyContinueDo 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 whpSuccess 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 0Record 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.
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
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.

