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

[Question]: what would be needed to run this in Docker / colima / other on macOS? #123

Open
2 tasks done
tkothe opened this issue Nov 13, 2024 · 1 comment
Open
2 tasks done
Labels
question Further information is requested

Comments

@tkothe
Copy link

tkothe commented Nov 13, 2024

Is your question not already answered in the FAQ?

  • I made sure the question is not listed in the FAQ.

Is this a general question and not a technical issue?

  • I am sure my question is not about a technical issue.

Question

I searched existing issues and was surprised I could not find the question.
So my question is: Why does the project not support running in Docker (or equivalent) on macOS and what would be required to make that work?

Thank you!

@tkothe tkothe added the question Further information is requested label Nov 13, 2024
@kroese
Copy link
Contributor

kroese commented Nov 16, 2024

macOS does not support KVM acceleration, but invented something similar: HVF acceleration. The container uses QEMU, and QEMU supports both KVM and HVF. But the Linux-version of QEMU is compiled without HVF enabled (because it does not exist on Linux normally).

So the first step to make it work would be to use a custom compiled version of QEMU with the HVF flag enabled, so that it can be activated.

The next step would be to pass the HVF device to the container. On Linux you can simply pass /dev/kvm so hopefully macOS has something like /dev/hvf to do the same.

And then it should work. But I have no Apple devices myself, and its a lot of effort, so I dont think it will be done soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants