Repository navigation
Add hyperlight-check tool for hypervisor setup - #2120
Open
Anurag-S1ngh wants to merge 1 commit into
Open
Anurag-S1ngh wants to merge 1 commit into
Anurag-S1ngh wants to merge 1 commit into
Conversation
Anurag-S1ngh
requested review from
andreiltd,
danbugs,
dblnz,
devigned,
jprendes,
jsturtevant,
ludfjig,
simongdavies,
squillace and
syntactically
as code owners
November 29, 2026 07:56
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
force-pushed
the
feat/288-hypervisor-check-tool
branch
from
November 29, 2026 08:10
a70446d to
50f5962
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
src/hyperlight_host/src/bin/hyperlight-check.rs, which useshyperlight_host::is_hypervisor_present()for the actual probe./dev/kvmand/dev/mshvexist and can be opened read-write, and prints theusermodcommand when a device exists but is not accessible.docs/getting-started.md.Testing
cargo run -p hyperlight-host --bin hyperlight-checkon macOS aarch64 reportshypervisor: availableand exits 0.cargo clippy -p hyperlight-host --bin hyperlight-checkcargo fmt -p hyperlight-host -- --checkCloses #288