Skip to content

Add hyperlight-check tool for hypervisor setup - #2120

Open
Anurag-S1ngh wants to merge 1 commit into
hyperlight-dev:mainfrom
Anurag-S1ngh:feat/288-hypervisor-check-tool
Open

Anurag-S1ngh wants to merge 1 commit into
hyperlight-dev:mainfrom
Anurag-S1ngh:feat/288-hypervisor-check-tool

Conversation

@Anurag-S1ngh

@Anurag-S1ngh Anurag-S1ngh commented Nov 29, 2026 •

Copy link
Copy Markdown

Summary

Adds hyperlight-check, a small binary that reports whether Hyperlight can find a usable hypervisor and what to do when it cannot. It exits non-zero when no hypervisor is usable, so it can be used in setup scripts.

Changes

  • New src/hyperlight_host/src/bin/hyperlight-check.rs, which uses hyperlight_host::is_hypervisor_present() for the actual probe.
  • On Linux, reports whether /dev/kvm and /dev/mshv exist and can be opened read-write, and prints the usermod command when a device exists but is not accessible.
  • On Windows, reports Windows Hypervisor Platform availability and the PowerShell command that shows the relevant optional features.
  • On macOS, reports Hypervisor.framework availability.
  • Documented the tool in the troubleshooting section of docs/getting-started.md.

Testing

  • cargo run -p hyperlight-host --bin hyperlight-check on macOS aarch64 reports hypervisor: available and exits 0.
  • cargo clippy -p hyperlight-host --bin hyperlight-check
  • cargo fmt -p hyperlight-host -- --check

Closes #288

New users often hit NoHypervisorFound without an obvious cause. Add
a small binary that reports the detected hypervisor, checks access to
/dev/kvm and /dev/mshv on Linux, and prints the command that fixes a
permission problem. It exits non-zero when no hypervisor is usable.

Signed-off-by: Anurag Singh <anuragsingh2313@gmail.com>
@Anurag-S1ngh
Anurag-S1ngh force-pushed the feat/288-hypervisor-check-tool branch from a70446d to 50f5962 Compare November 29, 2026 08:10

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create tool for verifying access to kvm/mshv/whp

1 participant