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

Infinite reboot loop #623

Closed Karol-Aniszewski closed 1 year ago

Karol-Aniszewski commented 1 year ago

Hi ;) I'm trying to install macOS Mojave, but on first boot the VM falls into a loop. Any advices?

Screenshots: image

image

Video: https://user-images.githubusercontent.com/59614308/192534339-8e03475d-3c61-45a7-a8d8-3acf39594a58.mp4

troubleshoot.txt: macOS_troubleshoot.txt

myspaghetti commented 1 year ago

Thanks for the detailed bug report!

The VirtualBox log shows that VT-x/AMD-V is not available so VirtualBox falls back to NEM, which is not supported by the script (I haven't verified, but I suspect NEM can't run macOS on VirtualBox). Some Windows feature or third-party app is blocking VirtualBox from using VT-x/AMD-V.

People have reported running the following command in an Administrator cmd.exe instance and rebooting twice solves the issue:

bcdedit /set hypervisorlaunchtype off 

But software other than Windows itself might be blocking VT-x/AMD-V, or it might be disabled in UEFI/BIOS, or it might not be available on the hardware at all. Worth a try, though.

Karol-Aniszewski commented 1 year ago

Hi, thank you for your answer. Anyway issues with Hyper-V was not a case (I have disabled it long before, because I was using another VMs). As I followed the clues from this video: https://www.youtube.com/watch?v=Lq8J-vFqH7w&ab_channel=OnlineComputerTips I changed --cpuidset and some other "extra data" for my VM (except the GetKeyFromRealSMC) and it started working. I suspect that this "cpuid" was causing problems, because the same issue was resolved in this topic: https://www.tonymacx86.com/threads/kernel-panic-and-reboot-while-installing-sierra-g4500-h110.207109/