-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
Add an option to mount Rosetta on Linux guests #313
Conversation
Thanks, @jamestut! I'll take some time to review this as soon as I can. Any suggestion of a distro I could use to test Rosetta functionality? |
Hi @insidegui, any glibc-based distro will work for this purpose (which is basically all the "main" distros like Enterprise Linux family (CentOS, Fedora, Rocky, Alma, etc.), Debian, Ubuntu, etc.). Even a live ISO will do. All we need is to do on the Linux guest is as follows (reference from Apple's documentation):
Then x86_64 binary should run straight away! Oh and also a tips for reference, in Linux we can easily check if a binary is arm or x86 using the |
This is my first time doing serious work on Swift programming language, so please let me know for anything that is amiss in this PR! I'll have more things in the future that I want to make PR off this repository, especially related to Linux guests. Additionally, when you're okay with this, I can add the guide on how to use Rosetta in the README of this project on this PR. And on another note, if this one is approved, I'll make a separate PR to enable AOT caching on macOS Sonoma host (I actually haven't tried yet on how that works). Also it might be nice to have a Linux guest addition that can do the following:
|
Thanks! I like that there's someone who cares about Linux and is willing to contribute, since I'm not much of a Linux person 😅 I'll be reviewing this soon 🙌🏻 |
Don't underestimate VirtualBuddy! With a few polishes, this might be one of the best way to run Linux on aarch64 (yes, not just Linux on Apple Silicon)! VirtualBuddy just fits perfectly with my use case! Now tell me any other virtualisation product that have all these:
I'm so grateful that you made this app. This also forces me to learn Swift. 😅 |
I wouldn't have noticed, because the code looks great 😊 The only thing I'm not 100% happy with is not code related, but I can fix it in a follow-up PR.
Feel free to open a new PR for that. |
This PR add an option to enable Rosetta for Linux guests. This feature is introduced in macOS 13. Full information about this feature here.
This PR only add the Share Rosetta for Linux option under the Sharing section in Linux VM settings, which when checked will allow the guest VM to
mount -t virtiofs Rosetta (mountpoint)
to mount the Rosetta binary.This PR does not include: