myspaghetti / macos-virtualbox

Push-button installer of macOS Catalina, Mojave, and High Sierra guests in Virtualbox on x86 CPUs for Windows, Linux, and macOS
GNU General Public License v2.0
13.46k stars 1.11k forks source link

Cannot restart after upgrading to Monterey 12.6.2 #641

Closed benbruder closed 1 year ago

benbruder commented 1 year ago

I have been trying to upgrade my Catalina 10.15.7 VM to Monterey 12.6.2. I have successfully performed the upgrade after setting VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" to "1" and "VBoxInternal/TM/TSCMode" to "RealTSCOffset". However, when I try to restart it bootloops with a kernel panic. It mentions "EFI cannot open compressed files", but I do not know if this is related to the cause of the bootloop.

Update: If I force shut down the VM, I am able to start it back up again, but if I shut it down within the OS it will not boot again.

bughunter2 commented 10 months ago

For other people having this problem (and stumbling upon this via a web search)...:

You may need to troubleshoot your BIOS/UEFI firmware boot entries. To be able to boot into macOS, you may need to add a new boot entry into your BIOS/UEFI firmware.

Look for a partition called 'Preboot'. It contains a file 'boot.efi'.

The full path to the 'boot.efi' file is something like this: (The GUID might differ for you, that's okay.)

\0ABCDEF0-0AB0-CFFA-0101-10ABCDEF0123\System\Library\CoreServices\boot.efi

If you boot into that file, you should be booting into macOS. Problem solved.

Note that this file MUST be the one that's on your 'Preboot' partition, otherwise you might not be able to boot into macOS. If you choose the 'boot.efi' on your macOS partition, that's the wrong one, and you might get the "EFI cannot open compresesd files" boot error.