Skip to content

qemu: fix host Rosetta detection for D3DMetal - #8018

Open
pingu-the-penguin wants to merge 1 commit into
utmapp:mainfrom
pingu-the-penguin:fix/host-rosetta-detection
Open

pingu-the-penguin wants to merge 1 commit into
utmapp:mainfrom
pingu-the-penguin:fix/host-rosetta-detection

Conversation

@pingu-the-penguin

@pingu-the-penguin pingu-the-penguin commented Oct 26, 2026 •

Copy link
Copy Markdown

Previous VZLinuxRosettaDirectoryShare.availability check always returns ".installed" on macOS 27.0, hence the need for this new check. https://developer.apple.com/documentation/virtualization/running-intel-binaries-in-linux-vms#Test-for-Rosetta-on-macOS-26-and-earlier

Tested and confirmed, the "runtime" file only exists when a user explicitly installs Rosetta2 through methods such as "softwareupdate --install-rosetta". "runtime" file is unavailable on clean macOS 27.0 VM or any other VM that didn't manually install Rosetta2.

Retained the macOS 13 guard to keep existent behaviour, let me know if it should be removed.

Resolves #8002

I have read the AI contribution guidelines and have followed them to the best of my ability.

Assisted-by: Codex:gpt-6

Testing: Have not directly tested whether the patch allows UTM to detect Rosetta2 installations or not as I do not have Rosetta2 installed.

@osy

osy commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Please include the assisted-by in the commit message (use /utm-submit skill and it will do all of it for you)

@pingu-the-penguin
pingu-the-penguin force-pushed the fix/host-rosetta-detection branch from 0578f14 to 147660f Compare October 27, 2026 06:31
Previous VZLinuxRosettaDirectoryShare.availability check always returns as available on macOS 27.0 now, hence the need for this new check. https://developer.apple.com/documentation/virtualization/running-intel-binaries-in-linux-vms#Test-for-Rosetta-on-macOS-26-and-earlier

Tested and confirmed, the "runtime" file only exists when a user explicitly installs Rosetta2 through methods such as "softwareupdate --install-rosetta". "runtime" file was unavailable on clean macOS 27.0 VM.

Kept the macOS 13 guard, let me know if needs to be removed.

Resolves utmapp#8002

Assisted-by: Codex:gpt-6
@pingu-the-penguin
pingu-the-penguin force-pushed the fix/host-rosetta-detection branch from 147660f to bf7326f Compare October 27, 2026 06:34
@pingu-the-penguin

Copy link
Copy Markdown
Author

Fixed, let me know if anything else is needed.

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

Successfully merging this pull request may close these issues.

Default DirectX driver picks D3DMetal when only Rosetta for Linux is installed (canRunD3DMetal checks VZLinuxRosettaDirectoryShare)

2 participants