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

bug: Cannot login into Apple ID on macos VM #1547

Open
1 task done
GuiFlam opened this issue Jan 1, 2025 · 9 comments
Open
1 task done

bug: Cannot login into Apple ID on macos VM #1547

GuiFlam opened this issue Jan 1, 2025 · 9 comments

Comments

@GuiFlam
Copy link

GuiFlam commented Jan 1, 2025

I confirm this bug has not already been reported

  • I have searched the issues and this bug has not been reported previously

Describe the bug
When I enter my login and my password I get this error: 'Verification failed: An unknown error occured'

To Reproduce
Steps to reproduce the behaviour:

  1. Go in the settings app
  2. Enter login and password
  3. The error shows up

Expected behaviour
I am supposed to be connected to my apple id

@ctrlVnt
Copy link

ctrlVnt commented Jan 11, 2025

There was a discussion but was deleted for same reason.

I share a @redleg instructions:

AFAIK, this is a generic issue with QEMU Macos guests, and relates to using a "default" or common etheret MAC address, Mac serial number and UUID.

I struggled with this for over a year starting with OSX-KVM.

I FINALLY got this sorted within the last few days in a Venture VM by doing the following:

* When creating the VM and installing, DO NOT login with or create an AppleID during installation.

* Go to https://dortania.github.io/OpenCore-Post-Install/universal/iservices.html#using-macserial .  Read from the top of the page.  I have NOT had luch with GenSMBIOS, others have, YMMV.

* CAREFULLY follow the instructions for macserial to generate the required values, which replace those in config.plist in the OF folder of the EFI partition.  Figure the values out while in the host os, then boot the vm, and from within, mount the EFI partition, edit the config.plist

* A video which helps with what to do and how within the VM is https://www.youtube.com/watch?v=hbSq1Ns7qcQ .  This steps you through mounting the EFI partition from within MacOS, editing the plist file, and validating the serial number.

* I was careful to generate a MAC address with a proper Apple OUI.  Google Apple OUIs, pick one, and generate the remaining bytes randomly.  There are several sites which will generate the MAC for you which let you supply the OUI, just google.

* With all of the editing done, reboot.  Even if you have an existing and valid AppleID, son;t use it yet.  Attempt to generate a new one from the top entry in the control panel.  If you proceed to the point where it asks for your birthday, you have succeeeded.  Either proceed and generate a new AppleID, or cancel and log in using your existing one.
I hope this helps.......

WB

Anyway I don't understand how to mount EFI partition because it fail for me and previous discussion was deleted before that I could try

@redleg
Copy link

redleg commented Jan 13, 2025 via email

@JordanPlayz158
Copy link

JordanPlayz158 commented Jan 14, 2025

Will need to try the above comments, but trying to login on ventura through System Settings it does give more info than I was getting before (which was basically nothing)

MOBILEME_CREATE_UNAVAILABLE_MAC

After doing GenSMBIOS on the guide linked above, I was able to login in ventura through System Settings

When signing into the app store with it, the review screen of the terms and such are blank, but if you have another window focused that is not the app store window, you can see the contents and you can still interact even when the screen is blank so you can still fill out the form

nvm you can fill out the form but now getting a contact itunes for assistance error message, will give it a couple days to see if it is just because of how frequently I was trying to sign in to the apple account to test if changes worked

@powerdollkirby
Copy link

im getting verification failed

@Noah765
Copy link

Noah765 commented Mar 8, 2025

I was able to login to the latest version of MacOS by following these steps (largely copied from this video). Note that "some account services" will not be available because macOS seems to require a second login after updating from Ventura, which doesn't work. I don't know what doesn't work because I only cared about the App Store, which works fine.

  • Follow these instructions to install macOS Ventura. Skip the Apple ID setup for now. All the next steps happen inside the VM.
  • Inside the Terminal app, run git and install the developer tools when prompted. You can do the next two steps during the installation.
  • Run diskutil list and note under which identifier the EFI volume is stored, which is on the same disk as a volume called "Linux Filesystem", for example disk1s1.
  • Run sudo diskutil mount /dev/{identifier}, for example sudo diskutil mount /dev/disk1s1.
  • Navigate to https://github.com/corpnewt/GenSMBIOS and follow the installation instructions. The installation requires the developer tools to be installed.
  • Start gensmbios by running ./GenSMBIOS.command. Within the program, first install MacSerial, then select "/Volumes/EFI/EFI/OC/config.plist" as the config.plist file. Copy the model from the output of "List Current SMBIOS" and generate SMBIOS for the copied model. Make sure to copy the new serial number, if you have already returned, just generate SMBIOS again.
  • Navigate to https://checkcoverage.apple.com and check your new serial number. If the site says that your serial number is invalid, your good, if the serial number is already taken by some device, you can try again by generating SMBIOS again.
  • After rebooting, you should be able to log in to the Settings app with your Apple ID.
  • After logging in, you can go to "General" and then "Software Update" within the Settings app to update macOS. Be sure to select "macOS Installer" from the boot menu to complete the update. After the update, press "Set Up Later" when presented with the "Sign In to Your Apple Account" page, as signing in will not work and will result in error messages.

@lucascompython
Copy link

lucascompython commented Mar 11, 2025

I was able to login to the latest version of MacOS by following these steps (largely copied from this video). Note that "some account services" will not be available because macOS seems to require a second login after updating from Ventura, which doesn't work. I don't know what doesn't work because I only cared about the App Store, which works fine.

* Follow [these](https://github.com/quickemu-project/quickemu/wiki/03-Create-macOS-virtual-machines) instructions to install macOS **Ventura**. Skip the Apple ID setup for now. All the next steps happen inside the VM.

* Inside the Terminal app, run `git` and install the developer tools when prompted. You can do the next two steps during the installation.

* Run `diskutil list` and note under which identifier the EFI volume is stored, which is on the same disk as a volume called "Linux Filesystem", for example `disk1s1`.

* Run `sudo diskutil mount /dev/{identifier}`, for example `sudo diskutil mount /dev/disk1s1`.

* Navigate to https://github.com/corpnewt/GenSMBIOS and follow the installation instructions. The installation requires the developer tools to be installed.

* Start gensmbios by running `./GenSMBIOS.command`. Within the program, first install MacSerial, then select "/Volumes/EFI/EFI/OC/config.plist" as the config.plist file. Copy the model from the output of "List Current SMBIOS" and generate SMBIOS for the copied model. Make sure to copy the new serial number, if you have already returned, just generate SMBIOS again.

* Navigate to https://checkcoverage.apple.com and check your new serial number. If the site says that your serial number is invalid, your good, if the serial number is already taken by some device, you can try again by generating SMBIOS again.

* After rebooting, you should be able to log in to the Settings app with your Apple ID.

* After logging in, you can go to "General" and then "Software Update" within the Settings app to update macOS. Be sure to select "macOS Installer" from the boot menu to complete the update. After the update, press "Set Up Later" when presented with the "Sign In to Your Apple Account" page, as signing in will not work and will result in error messages.

That kinda worked, after following everything, when trying to install something from the App Store I was getting this error: "Apple ID not yet used in App Store" and even when filling everything correctly it didn't work. I found that if you go to music.apple.com and login there on the VM, the error goes away in the App Store.

But now I'm getting this error when the download finishes:

Image

@markovapps
Copy link

I was able to login to the latest version of MacOS by following this steps:

  1. Install MacOS Monterey.
  2. Login.
  3. Update mac to the latest version.
    FYI: If I try use AppStore with a fresh new account I still get the "contact itunes for assistance" error message. But everything works fine with my old account that I previous used in AppStore.

@JamesButBetter
Copy link

In Sequoia+:
"In this version, it seems macOS detects the VM and "blocks" the apple ID. To trick macOS the default opencore config disables the flag "hv_vmm_present"."

QuickEMU violates this.

@lj3954
Copy link
Member

lj3954 commented Mar 31, 2025

Hey folks, I've created a tool that can automate the process mentioned above, replacing the Serial, MAC Address, and other information. It's documented in the project's wiki.

It doesn't currently handle the issues with newer versions. We need more information about exactly what needs to be changed to fix that. Therefore, I'll leave this issue open. Older versions (pre-Ventura?) can be fixed with the steps in the wiki.

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

No branches or pull requests

10 participants