Skip to content

Ci/check macos virtualization#159

Merged
simongdavies merged 2 commits into
hyperlight-dev:mainfrom
simongdavies:ci/check-macos-virtualization
May 19, 2026
Merged

Ci/check macos virtualization#159
simongdavies merged 2 commits into
hyperlight-dev:mainfrom
simongdavies:ci/check-macos-virtualization

Conversation

@simongdavies
Copy link
Copy Markdown
Member

No description provided.

Adds a workflow_dispatch-only job that runs on an Apple Silicon (arm64) GitHub-hosted macOS runner and reports whether the Virtualization framework is available. Probes layer from cheapest to most authoritative: runner identity dump, arm64 assertion, kern.hv_support sysctl, framework bundle presence, and finally VZVirtualMachine.isSupported via an inline Swift program. Writes a result table to the job step summary.
On Apple Silicon kern.hv_support does not exist, so the previous hard-fail was wrong. Demote sysctl inspection to diagnostic-only (now also captures kern.hv_vmm_present and CPU brand), let the Swift VZVirtualMachine.isSupported probe be the sole pass/fail signal, and record each step's findings to GITHUB_OUTPUT so the always()-summary renders an accurate table even when later steps fail.
Copilot AI review requested due to automatic review settings May 19, 2026 22:03
@simongdavies simongdavies merged commit 83ab39c into hyperlight-dev:main May 19, 2026
12 of 13 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a manually triggered GitHub Actions workflow to inspect whether GitHub-hosted macOS runners can support Hyperlight-style micro-VM virtualization through Apple’s Virtualization.framework.

Changes:

  • Adds runner identity and hypervisor diagnostic reporting.
  • Adds a Swift-based VZVirtualMachine.isSupported probe as the workflow pass/fail check.
  • Publishes a workflow summary with OS, CPU, framework, and virtualization support details.

Comment on lines +29 to +30
name: Inspect Virtualization.framework on ARM macOS
runs-on: macos-latest
Comment on lines +8 to +9
# verify before betting on macOS hosting (see /memories/azure-hosting-kvm.md
# for why "just use platform X" warrants a real check first).
simongdavies added a commit that referenced this pull request May 19, 2026
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.

2 participants