utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
25.49k stars 1.29k forks source link

macOS Monterey Black screen after update #5307

Open gnc-tibo opened 1 year ago

gnc-tibo commented 1 year ago

Describe the issue
Black screen after macOS Monterey VM minor update (12.6.5). Problem reproduced on 3 VMs

Configuration

Crash log
Not sure if this crash log is related to this issue. UTM_2023-05-12-171144_GNC-Thibaut-5.cpu_resource.diag.zip

Upload VM
config.plist.zip

vishakh-abhayan commented 1 year ago

It seems that you are encountering a black screen after a minor update (12.6.5) on three VMs. Here are a few steps you can take to troubleshoot the problem.

gnc-tibo commented 1 year ago

Thanks for your reply.

tonyarnold commented 1 year ago

I'm seeing this in all products that use Virtualization.framework. I don't believe that this issue is specific to UTM.

kMikaZu commented 1 year ago

I'm having the same issues here. Updating a virtual machine in UTM worked before, now the machine gets corrupted after an update.

brennadev commented 1 year ago

I'm seeing this issue too. Host is on macOS 13.4, UTM 4.2.5, and I was upgrading the VM from macOS 12.3.1 to 12.6.6. I tried restarting the VM and restarting the host, both of which didn't help.

I'm not seeing any issues when upgrading Ventura.

A couple months ago, when I was upgrading Monterey VMs in UTM, I was seeing a different, less-severe problem: https://github.com/utmapp/UTM/issues/5112.

CLBarajas commented 1 year ago

I can reproduce this, by performing a minor update for macOS 12.6.1 to 12.6.6. (Hosted on macOS 13.4.)

I got an IPSW via Mr. Macintosh (https://mrmacintosh.com/apple-silicon-m1-full-macos-restore-ipsw-firmware-files-database/) and tested two scenarios after setting up the OS clean from the IPSW:

The update to 13.4 was fine, but 12.6.6 resulted in a black screen on the second reboot of the VM, with the com.apple.Virtualization.VirtualMachine process repeatedly reporting Guest requested binary version: 0, setting binary version to: 0 once followed by Device reset twice.

kMikaZu commented 1 year ago

I hope this issue will be fixed with the upcoming release of 4.3.0...

wdormann commented 1 year ago

Note that this is likely not UTM-specific, but rather in the Apple Virtual Machine Service. Parallels (which uses the same service) has the exact same problem.

ajludgate commented 10 months ago

Has anyone found a solution to this yet? I did some fiddling, and it appears the disk image update is fine, but the update messes something up in AuxiliaryStorage. The issue with VMWare Fusion appears to be different, as it can be bypassed by setting automatic login. Doing that here makes no difference.

adespoton commented 10 months ago

Well, I just attempted to upgrade to 12.7 after getting the black screen with 12.6.8 and 12.6.9.... This time, it got slightly further, in that after the update, instead of rebooting to a black screen, it rebooted to an Apple icon and progress bar. And when that progress bar finished, it rebooted to a black screen, and is now just as borked as the others.

jafd commented 9 months ago

The issue with VMWare Fusion appears to be different, as it can be bypassed by setting automatic login. Doing that here makes no difference.

Almost as if something was messing up the virtualized NVRAM?

hzhua commented 7 months ago

I'm seeing this issue too. Host is 12.5 MacBook Air M2, UTM is 4.4.4. Guest Image uses 12.6_21G115. After update to 12.7.1 in guest, it restarts, showing the desktop wallpaper, and crashes. Rebooting the VM enters the recovery back to 12.6.

CLBarajas commented 6 months ago

This may be fixed by the macOS 14.3 RC:

Virtualization

Resolved Issues

  • Fixed: Resolved an issue where virtualized macOS Monterey guest fails to boot after installing software update. (111970030)
jafd commented 6 months ago

Apple may think it got fixed, but my testing reveals it ain't :-( To the black screen it went.

There could be factors like the VM had been made by an older version of the Virtualization.framework (I haven't tried creating a VM from scratch and then upgrading), but even if so, a trillion dollar company should be ashamed for calling that a "fix".

kMikaZu commented 5 months ago

I had no more problems since the release of Sonoma.

rxhfcy commented 5 months ago

This may be fixed by the macOS 14.3 RC:

After updating my host macOS to 14.3, I was now indeed able to successfully update a newly-created macOS 12.6.1 (Monterey) VM to macOS 12.7.3

So probably not a UTM bug per se, but maybe UTM should show a warning when running Monterey guest VMs on pre-14.3 macOS versions that still have the buggy Virtualization.framework...

...and/or better yet, "drop UTM support" for Monterey a bit prematurely (because not everyone will be running UTM on the latest version of Sonoma, and Monterey security updates will most likely end later this year anyway), here's a UI mock-up:

Screenshot
miniak commented 1 month ago

It looks like it works now with macOS 12.7.5