notAperson535 / OneClick-macOS-Simple-KVM

Tools to set up a easy, quick macOS VM in QEMU, accelerated by KVM. Works on Linux AND Windows.
https://notAperson535.github.io/OneClick-macOS-Simple-KVM
MIT License
606 stars 51 forks source link

"An error occurred while preparing the installation. Try running this application again." - System installation fails for Sonoma with being unable to find boot.efi or install bless #97

Open Razzaline opened 10 months ago

Razzaline commented 10 months ago

Which operating system are you trying to install? macOS 14 Sonoma

Describe the bug When installing macOS 14 Sonoma, it fails near the end (when it says "About 12 minutes remaining") after downloading and installing InstallAssistant.pkg, with the error message "An error occurred while preparing the installation. Try running this application again."

To Reproduce Steps to reproduce the behavior:

  1. Run ./setupArch.sh
  2. Select option 7 (macOS 14 Sonoma)
  3. Boot into macOS Base System once the VM loads
  4. Open Disk Utility and select the 68 GB drive
  5. Select "Erase" and format it to APFS (default)
  6. Go to "Reinstall macOS 14 Sonoma" and start the installation process
  7. Wait until it reaches "About 12 minutes remaining"
  8. The error message should display
  9. Clicking "OK" takes you back to the recovery/setup options

Expected behavior The installer finishes and I'm able to boot into Sonoma

Screenshots Screenshot_20231118_003503

Desktop (please complete the following information):

Additional context I was impatient and silly and didn't save the messages from the install log, but it mentioned being unable to find boot.efi and being unable to setup bless.

I'm guessing it's related to https://github.com/sickcodes/Docker-OSX/issues/511 and https://github.com/sickcodes/Docker-OSX/issues/714, which seems to occur because the installer tries to download an installer package for Apple Silicon processors.

I was able to work around this issue for now by installing macOS 12 Monterey instead (also with APFS).

Razzaline commented 9 months ago

Screenshot_20231121_232028 Screenshot_20231122_000936

I wasn't able to copy and paste the text directly, so here are screenshots of the relevant part of the installer log. The same error occurs whether I use APFS or HFS+.

Razzaline commented 9 months ago

Okay, same error when trying to install Ventura as well. Is there any way to force a download of the Intel/x86 pkg file for InstallAssistant?

Razzaline commented 9 months ago

It seems like upgrading from Monterey to Sonoma isn't working either. I don't know where to find the install logs, but I've tried three times and it just boots back to Monterey and tells me there's an update to macOS Sonoma 14.1.1.

s-n-g commented 9 months ago

I've tried this way too; at some point it rebooted and... never booted again :)

notAperson535 commented 9 months ago

@Razzaline try formatting as macOS extended journaled

Razzaline commented 9 months ago

I did try, with the same results >.<

notAperson535 commented 9 months ago

I'm going to update the OpenCore image over this long weekend. You can join the discord server for faster communication and easier testing.

Razzaline commented 9 months ago

Okay, I'll consider joining.

For now, I've confirmed that the recovery image does download the ARM/M3 pkg file for 14.1.1:

https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Screenshot_20231122_064336

This is the link it's downloading from: https://swcdn.apple.com/content/downloads/50/19/042-95558-A_EWFKLKJ2BT/pml2xngdyskimzad55ogcomovjo5pzb32d/InstallAssistant.pkg

Millermiller commented 9 months ago

is there any news? have same error(

guzuqing commented 9 months ago

is there any news? have same error venture and sonoma error, montery work

mcdsilva-dev commented 9 months ago

I'm having the same problem trying to install Ventura, can you help us? @notAperson535

robinrosenberger commented 9 months ago

There seems to be a workaround here: https://github.com/sickcodes/Docker-OSX/issues/715 basically the same as an offline install from OSX-KVM

notAperson535 commented 9 months ago

I seem to know the problem with Sonoma. It’s due to a cpu not being supported. Will look at it this weekend. Thank you all for waiting patiently

guzuqing commented 9 months ago

which cpu ?

I seem to know the problem with Sonoma. It’s due to a cpu not being supported. Will look at it this weekend. Thank you all for waiting patiently