Skip to content

Feature Request: macOS Support for Hyperlight #45

Description

@appcypher

Are there any plans to add macOS as a supported platform for Hyperlight? Since macOS has the Hypervisor.framework, it seems doable—projects like libkrun have already made use of it.

This would be great for macOS developers who want to test their apps locally before deployment. Macs are pretty popular among developers, and with Apple Silicon getting ridiculously powerful (plus nested virtualization coming to macOS), I think this feature would be super valuable.

Thanks for considering it!

Activity

  1. changed the title [-]**Feature Request: macOS Support for Hyperlight**[/-] [+]Feature Request: macOS Support for Hyperlight[/+] on Nov 8, 2024
  2. devigned commented on Nov 8, 2024

    @devigned
    Contributor

    Hypervisor.framework support has been a feature I've wanted for a long time. Right now, the issue isn't so much about writing the hypervisor implementation for it, but rather the process model that we currently support is limited by Hypervisor.framework. Hypervisor.framework supports only 1 VM per process. Hyperlight can use KVM and Hyper-V to create thousands of VM instances per process.

    We have discussed changing the process model to support this use case. That would be a pretty big chunk of work.

    We have also discussed exposing Hypervisor.framework support with the caveat that for local OSX dev you'd only be able to start a single VM instance.

    Thoughts?

  3. appcypher commented on Nov 8, 2024

    @appcypher
    Author

    Thanks for clarifying. For macOS development, I think that's an acceptable trade-off.

    Since macOS isn't likely to be a deployment platform, the aim is to be able to build and test apps locally before deploying on Linux machines, having one VM per process should work fine. If needed, one could orchestrate multiple processes to handle multiple VMs.

    I get that changing the process model would be a big task and I wish I could help with the implementation but I don't have enough experience with VMMs to contribute meaningfully.

  4. added
    kind/enhancementFor PRs adding features, improving functionality, docs, tests, etc.
    and removed on Nov 8, 2024
  5. benatkin commented on Nov 12, 2024

    @benatkin

    Would creating more processes be a workaround? It may seem odd and obviously won't work so well for a massive number of processes, but in Activity Monitor on my Mac, Google Chrome and LibreWolf each have more than a dozen processes at present.

  6. devigned commented on Nov 19, 2024

    @devigned
    Contributor

    Would creating more processes be a workaround? It may seem odd and obviously won't work so well for a massive number of processes, but in Activity Monitor on my Mac, Google Chrome and LibreWolf each have more than a dozen processes at present.

    I think that is totally reasonable for local dev. However, it would be a bit different than the current programming model of Hyperlight and will probably need some sort of IPC mechanism to replicate the programming model.

  7. added this to the Backlog milestone on Nov 20, 2024
  8. benatkin commented on Jan 6, 2025

    @benatkin
  9. devigned commented on Jan 6, 2025

    @devigned
    Contributor
  10. added
    lifecycle/confirmedBug is verified or proposal seems reasonable
    and removed
    kind/enhancementFor PRs adding features, improving functionality, docs, tests, etc.
    on Mar 12, 2025
  11. devigned commented on Jan 27, 2026

    @devigned
    Contributor

    Here's a start to OSX support. The branch should work for simple cases, but there's a bunch more work to be done. https://github.com/simongdavies/hyperlight/compare/cow-doc...devigned:hyperlight:feature/aarch64-macos-support?expand=1

  12. devigned commented on Apr 7, 2026

    @devigned
    Contributor

    Related: #677

  13. removed this from the Backlog milestone on Jun 17, 2026
  14. added this to the v0.17.0 milestone on Jul 2, 2026
  15. self-assigned this
    on Jul 2, 2026
  16. jsturtevant commented on Sep 3, 2026

    @jsturtevant
    Contributor

    initial support for this merged in #1674, some future improvements may come in #1706 and #1796

  17. moved this from In Progress to Done in Hyperlight Roadmapon Sep 3, 2026
  18. verdie-g commented on Sep 4, 2026

    @verdie-g

    @jsturtevant I think it's missing hyperlight-dev/hyperlight-sandbox#202 for us to use it :)

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

Metadata

Metadata

Assignees

Labels

lifecycle/confirmedBug is verified or proposal seems reasonable

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions