Skip to content

Conversation

@SimonBaars
Copy link

Description

Was testing this on MacOS Sequoia and the tool got into a loop. I did a couple fixes to make it work. Now it fixes MacOS Sequoia out of the box, without any prompts.

I created a release for the binary at: https://github.com/SimonBaars/qe_mac_apid/releases/tag/1.0

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Packaging (updates the packaging)
  • Documentation (updates the documentation)

Checklist:

  • I have performed a self-review of my code
  • I have tested my code in common scenarios and confirmed there are no regressions
  • I have added comments to my code, particularly in hard-to-understand sections
  • I have made corresponding changes to the documentation

Copilot AI review requested due to automatic review settings October 22, 2025 05:41

This comment was marked as spam.

@lj3954
Copy link
Member

lj3954 commented Oct 22, 2025

Quite a bit of code for the main function. I'll go over this later. Not sure how copilot enabled itself.

@SimonBaars
Copy link
Author

@lj3954 Great!

To ensure backwards compatibility, I added the --add-sequoia-patches flag. I only tested the changes on sequoia:

./target/release/qe_mac_apid --bootloader ~/tmp/macos-sonoma/OpenCore.qcow2 --add-sequoia-patches

Will give:

[2025-10-22T05:25:48Z WARN  fatfs::boot_sector] fs compatibility: reserved_sectors value '8' in BPB is not '1', and thus is incompatible with some implementations
Valid serial numbers already configured:
  Serial Number: [omitted]
  MLB: [omitted]

Do you want to regenerate new serial numbers? (y/N) Keeping existing serial numbers.

Adding macOS Sequoia kernel patches for VM detection bypass...

✓ Configuration updated successfully!
✓ Sequoia kernel patches added

IMPORTANT: These patches may prevent macOS system updates.
To update macOS:
  1. Temporarily disable the patches in OpenCore boot menu
  2. Reset NVRAM
  3. Install the update
  4. Re-enable the patches after updating

After which Apple login works fine in the Sequoia qemu VM. The same patches might work for the older Apple versions too, I wasn't sure that's why I added the flag, might be worth testing.

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.

2 participants