Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS x86-64 support #34

Open
jrmuizel opened this issue Sep 3, 2021 · 4 comments
Open

macOS x86-64 support #34

jrmuizel opened this issue Sep 3, 2021 · 4 comments

Comments

@jrmuizel
Copy link

jrmuizel commented Sep 3, 2021

This would be nice to have. What all needs to be done to make it work?

@satmandu
Copy link

Looks like https://github.com/containers/libkrun/tree/main/src/arch/src/x86_64 needs to be modified not to use the kvm_bindings crate, which is linux specific.

The aarch64 functionality in https://github.com/containers/libkrun/tree/main/src/arch/src/aarch64 appears to work without that, which is why that works for macos.

This would be really nice to have on macOS x86_64...

@slp
Copy link
Contributor

slp commented Nov 15, 2021

Supporting macOS's Hypervisor.framework on x86_64 is doable, but requires some work, given that we need to emulate more devices than with KVM (which provides in-kernel implementations of them). So far nobody has volunteer to work on that.

@satmandu
Copy link

I'm not seeing a rust implementation for using the macOS Hypervisor.framework, but I am seeing:

Objective C implementation: https://github.com/evansm7/vftool
Swift implementation: https://github.com/gyf304/vmcli

@flouthoc
Copy link
Contributor

@satmandu There is C API for hypervisor framework. I think you could use that and FFI into libkrun.

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

No branches or pull requests

4 participants