Coopydood / ultimate-macOS-KVM

Helping noobs and pros alike build the ultimate macOS virtual machine with easy automation, powered by KVM. Now with macOS Sequoia support!
https://coopydood.github.io/ultimate-macOS-KVM/
GNU General Public License v3.0
441 stars 25 forks source link

Unable to boot #124

Open mtbykn opened 1 month ago

mtbykn commented 1 month ago

Unable to boot on Vendor: LENOVO Lenovo Legion 5 15ARH05 laptop Crashes during boot with errors on Ventura, Monterey , Sequoia. Errors 152 service cannot load in current environment for launchd

mtbykn commented 1 month ago

Also looked at Big Sur and Sonoma get same error the autopilot script worked without error messages in the log file and screen said success.

eversiege commented 1 month ago

Hello! Can I ask you to provide your system specifications and autopilot logs if possible?

mtbykn commented 1 month ago

Ubuntu 24.10 Lenovo Legion 5 15ARH05 8gb RAM AMD Ryzen 5 4600H APC_RUN_26-09-2024_09-34-17.log

mtbykn commented 1 month ago

Hello, please let me know if you need anything else for resolving this boot issue!

eversiege commented 1 month ago

Hello, might need something else too - run the script back, go to Compatibility Checks... and then run System Profiler, and send the .log that it gives, please. For now can't figure out the root of the cause...

mtbykn commented 1 month ago

Results All checks have been completed Please see the second log file below this one for System Profiler, ────────────────────────────────────────────────────────────── READY ━━━━━━━━━━ 100% ──────────────────────────────────────────────────────────────

SPT_26-09-2024_11-37-09.log Please see attached

eversiege commented 1 month ago

So we are starting to piece some some stuff together and we see maybe this is about memory? But in order to verify that, I will (for last time I hope) ask you for your generated vm-script. It should be somewhere in your project's root directory (aka where you launch main.py at)

mtbykn commented 1 month ago

boot.txt

eversiege commented 1 month ago

Ah. In the boot script, you've tried to specify 4 threads on 2 cores - but QEMU multiplies the amounts together for total thread count, so think of your virtual machine using literally 8 cores. For it to launch, you will need to change this value to:

CPU_THREADS="2"

Please tell me if this fix has worked for you. Cheers!

eversiege commented 1 month ago

TODO: Write this in the GOTCHAS page

mtbykn commented 1 month ago

Changed to 2 threads and still get the same issue, it's nice of you for taking the effort, thanks.

eversiege commented 1 month ago

Does it straight up not boot or gets to some point on macOS bootloader?

mtbykn commented 1 month ago

When I run the boot.sh the system will either reboot or just stop and gives the error code listed above.

eversiege commented 1 month ago

the system will either reboot

...wait, like, the entire host system?