packer-examples icon indicating copy to clipboard operation
packer-examples copied to clipboard

macos boot_screen_config not passing Sign in to your apple account screen

Open jbergman-oddball opened this issue 8 months ago • 10 comments

I am working on a macos VM and I am trying to use OCR to skip the apple account sign in screen. It gets stuck in a loop and will not move forward.

  boot_screen_config {
    boot_command     = ["<leftShiftOn><tab><tab><leftShiftOff><spacebar>"]
    screen_name      = "SignInWithApple"
    matching_strings = ["Sign in to your apple", "Sign in to use iCloud"]
  }
==> parallels-ipsw.sequoia: Screen changed to SignInToApple
==> parallels-ipsw.sequoia: Host IP for the Parallels machine: 0.0.0.0
==> parallels-ipsw.sequoia: Typing the boot command...

I have tried this manually and am also not able to use these keys to pass this screen.

Is anyone aware of a way around this? I am using Sequoia 15.4.1. It is passing the rest of the screens, but stops here.

Image

jbergman-oddball avatar May 07 '25 18:05 jbergman-oddball

@jbergman-oddball we need to have a look at this, they might have changed the screen. we didn't update the examples to the latest macOS

cjlapao avatar May 08 '25 05:05 cjlapao

I made a few tweaks to the config to get past some of the other screens. There was a transfer data screen I had to add. But this one I was not able to pass.

jbergman-oddball avatar May 08 '25 12:05 jbergman-oddball

@cjlapao I found a work around. It seems that as soon as the initial setup gets to the appleID login screen it loses the ability to access the keyboard. I updated the boot_screen_config block top this:

  boot_screen_config {
    boot_command     = ["<leftCtrlOn><f7><leftCtrlOff><wait1s><leftShiftOn><tab><leftShiftOff><spacebar>"]
    screen_name      = "SignInWithApple"
    matching_strings = ["Sign in to your apple", "Sign in to use iCloud"]
  }

This allows keyboard navigation (Which the script enables later) and gets me past the apple id screen and everything else. Im not sure if this is the answer, but its working.

jbergman-oddball avatar May 08 '25 15:05 jbergman-oddball

@jbergman-oddball Might be, would you be able to create a pr with it? we can then test it internally with different machines

cjlapao avatar May 08 '25 16:05 cjlapao

Sure. Ill try to have that by EOD for you.

jbergman-oddball avatar May 08 '25 16:05 jbergman-oddball

@cjlapao, I am unable to create a branch to add to the PR. I do not have permissions I also found another issue I will be looking at today. I can get parallels installed but the OCR screen that should log me in after the mac vm reboots is not working and the entire job times out and cancels

jbergman-oddball avatar May 09 '25 11:05 jbergman-oddball

@jbergman-oddball you will need to use the fork for that. Fork the repo, create the pr and then merge it into our main. This is the only way with external contributors. Let me know if you need help with the process

cjlapao avatar May 09 '25 12:05 cjlapao

I have this working. Had to make some other changes. Let me get this buttoned up and Ill issue the PR. Im trying to add xcode as well :)

jbergman-oddball avatar May 09 '25 20:05 jbergman-oddball

@cjlapao Here is my PR Hopefully I did it right :)

jbergman-oddball avatar May 14 '25 00:05 jbergman-oddball

@jbergman-oddball, yes, all seems good, we are just running a few tests, and then we will merge it

cjlapao avatar May 14 '25 07:05 cjlapao