Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhaofengli/rosetta-spice
RosettaLinux augmentation tool
https://github.com/zhaofengli/rosetta-spice
Last synced: 1 day ago
JSON representation
RosettaLinux augmentation tool
- Host: GitHub
- URL: https://github.com/zhaofengli/rosetta-spice
- Owner: zhaofengli
- License: other
- Created: 2023-07-15T05:37:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-26T16:47:11.000Z (about 1 year ago)
- Last Synced: 2024-04-16T12:11:28.749Z (7 months ago)
- Language: Rust
- Size: 53.7 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# rosetta-spice (WIP)
`rosetta-spice` patches [RosettaLinux](https://developer.apple.com/documentation/virtualization/running_intel_binaries_in_linux_vms_with_rosetta) to enable features and fix issues:
- Enables AOT caching without [involvement](https://developer.apple.com/documentation/virtualization/running_intel_binaries_in_linux_vms_with_rosetta#4239539) of the virtualization app
- This requires the RosettaLinux version from Sonoma
- Fixes segfaults when running patched binaries (https://github.com/NixOS/nixpkgs/issues/209242)
- No longer needed since Sonoma Beta 5 (23A5312d)!
- Allows the use of another RosettaLinux version than what's supplied by the host## Usage
Enable the NixOS module on the guest VM. The host MacOS machine does not need modification.### Example System Flake
The NixOS module can be enabled on an `aarch64-linux` NixOS virtual machine via a configuration similar to the following:
```nix
{
description = "System Configuration";inputs = {
(...other inputs here...)
rosetta-spice.url = "github:zhaofengli/rosetta-spice";
};outputs = {rosetta-spice, ...}: {
nixosConfiguration = {
myHost = lib.nixosSystem {
modules =
[
rosetta-spice.nixosModules.rosetta-spice
(...other modules here...)
];
};
};
};
}
```## Notes
This tool does _not_ bypass the licensing check.
You must mount the Rosetta share at `/run/rosetta` for this to work.
To quote the original message:> Rosetta is only intended to run on Apple Silicon with a macOS host using Virtualization.framework with Rosetta mode enabled