paolo-projects / auto-unlocker

Unlocker for VMWare macOS
GNU General Public License v3.0
4.12k stars 526 forks source link

macOS 12 Beta Black Screen With Occasional Mouse Presence After First Restart With VMWare Workstation Player 16.2.1 on Windows 10 Host #62

Open TheFanatr opened 2 years ago

TheFanatr commented 2 years ago

I successfully installed macOS Beta from and install ISO after patching VMWare Workstation Player 16.2.1 with this tool, but then once I had completed setup and was in the desktop several hours later, and I tried installing VMWare Tools, it bricked the install after restart and now, after boot, all I get is a black screen and the mouse, which appears every 10-15 seconds for around half a second, and always resets itself to the top left corner. May be related to #61 and/or #57. I'm not sure how to proceed from here.

I am on a Windows 10 host (19043.1348) which I keep up to date, in case that matters.

Here is the install auto-unlocker log.

auto-unlocker v1.1.3

Killing services and backing up files...
Service "VMAuthdService" stopped successfully.
Service "VMUSBArbService" stopped successfully.
Service "VMnetDHCP" stopped successfully.
Service "VMware NAT Service" stopped successfully.
Error: Could not kill process "vmware-tray.exe".
File "C:\Program Files (x86)\VMware\VMware Player\vmwarebase.dll" backup done.
File "C:\Program Files (x86)\VMware\VMware Player\x64\vmware-vmx-debug.exe" backup done.
Error: copy_file: The system cannot find the file specified.: "C:\Program Files (x86)\VMware\VMware Player\x64\vmware-vmx-stats.exe", ".\backup\x64\vmware-vmx-stats.exe"
File "C:\Program Files (x86)\VMware\VMware Player\x64\vmware-vmx.exe" backup done.
Patching files...
File: vmware-vmx.exe
Patching file: vmware-vmx.exe
appleSMCTableV0 (smc.version = "0")
appleSMCTableV0 Address      : 0x0000000000c46770
appleSMCTableV0 Private Key #: 0xF2/242
appleSMCTableV0 Public Key  #: 0xF0/240
appleSMCTableV0 Table        : 0x0000000000c46790
+LKS Key:
002 0x0000000000c467d8 +LKS 01 flag 0x90 0x00000001401f1070 07
OSK0 Key Before:
241 0x0000000000c4ab10 OSK0 32 ch8* 0x80 0x00000001401f10f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
OSK0 Key After:
241 0x0000000000c4ab10 OSK0 32 ch8* 0x80 0x00000001401f1070 6f 75 72 68 61 72 64 77 6f 72 6b 62 79 74 68 65 73 65 77 6f 72 64 73 67 75 61 72 64 65 64 70 6c
OSK1 Key Before:
242 0x0000000000c4ab58 OSK1 32 ch8* 0x80 0x00000001401f10f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
OSK1 Key After:
242 0x0000000000c4ab58 OSK1 32 ch8* 0x80 0x00000001401f1070 65 61 73 65 64 6f 6e 74 73 74 65 61 6c 28 63 29 41 70 70 6c 65 43 6f 6d 70 75 74 65 72 49 6e 63

appleSMCTableV1 (smc.version = "1")
appleSMCTableV1 Address      : 0x0000000000c4aba0
appleSMCTableV1 Private Key #: 0x01B4/436
appleSMCTableV1 Public Key  #: 0x01B0/432
appleSMCTableV1 Table        : 0x0000000000c4abc0
+LKS Key:
004 0x0000000000c4ac98 +LKS 01 flag 0x90 0x00000001401f1070 01
OSK0 Key Before:
435 0x0000000000c525d0 OSK0 32 ch8* 0x90 0x00000001401f10f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
OSK0 Key After:
435 0x0000000000c525d0 OSK0 32 ch8* 0x90 0x00000001401f1070 6f 75 72 68 61 72 64 77 6f 72 6b 62 79 74 68 65 73 65 77 6f 72 64 73 67 75 61 72 64 65 64 70 6c
OSK1 Key Before:
436 0x0000000000c52618 OSK1 32 ch8* 0x90 0x00000001401f10f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
OSK1 Key After:
436 0x0000000000c52618 OSK1 32 ch8* 0x90 0x00000001401f1070 65 61 73 65 64 6f 6e 74 73 74 65 61 6c 28 63 29 41 70 70 6c 65 43 6f 6d 70 75 74 65 72 49 6e 63

File: vmware-vmx-debug.exe
Patching file: vmware-vmx-debug.exe
appleSMCTableV0 (smc.version = "0")
appleSMCTableV0 Address      : 0x0000000000ee0eb0
appleSMCTableV0 Private Key #: 0xF2/242
appleSMCTableV0 Public Key  #: 0xF0/240
appleSMCTableV0 Table        : 0x0000000000ee0ed0
+LKS Key:
002 0x0000000000ee0f18 +LKS 01 flag 0x90 0x00000001402638c0 07
OSK0 Key Before:
241 0x0000000000ee5250 OSK0 32 ch8* 0x80 0x0000000140263a90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
OSK0 Key After:
241 0x0000000000ee5250 OSK0 32 ch8* 0x80 0x00000001402638c0 6f 75 72 68 61 72 64 77 6f 72 6b 62 79 74 68 65 73 65 77 6f 72 64 73 67 75 61 72 64 65 64 70 6c
OSK1 Key Before:
242 0x0000000000ee5298 OSK1 32 ch8* 0x80 0x0000000140263a90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
OSK1 Key After:
242 0x0000000000ee5298 OSK1 32 ch8* 0x80 0x00000001402638c0 65 61 73 65 64 6f 6e 74 73 74 65 61 6c 28 63 29 41 70 70 6c 65 43 6f 6d 70 75 74 65 72 49 6e 63

appleSMCTableV1 (smc.version = "1")
appleSMCTableV1 Address      : 0x0000000000ee52e0
appleSMCTableV1 Private Key #: 0x01B4/436
appleSMCTableV1 Public Key  #: 0x01B0/432
appleSMCTableV1 Table        : 0x0000000000ee5300
+LKS Key:
004 0x0000000000ee53d8 +LKS 01 flag 0x90 0x00000001402638c0 01
OSK0 Key Before:
435 0x0000000000eecd10 OSK0 32 ch8* 0x90 0x0000000140263a90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
OSK0 Key After:
435 0x0000000000eecd10 OSK0 32 ch8* 0x90 0x00000001402638c0 6f 75 72 68 61 72 64 77 6f 72 6b 62 79 74 68 65 73 65 77 6f 72 64 73 67 75 61 72 64 65 64 70 6c
OSK1 Key Before:
436 0x0000000000eecd58 OSK1 32 ch8* 0x90 0x0000000140263a90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
OSK1 Key After:
436 0x0000000000eecd58 OSK1 32 ch8* 0x90 0x00000001402638c0 65 61 73 65 64 6f 6e 74 73 74 65 61 6c 28 63 29 41 70 70 6c 65 43 6f 6d 70 75 74 65 72 49 6e 63

File: vmwarebase.dll
GOS Patching: vmwarebase.dll
GOS Patched flag @: 0x00000000004d44d8
GOS Patched flag @: 0x00000000004d4518
GOS Patched flag @: 0x00000000004d4558
GOS Patched flag @: 0x00000000004d4598
GOS Patched flag @: 0x0000000000584e98
GOS Patched flag @: 0x0000000000584ed8
GOS Patched flag @: 0x0000000000584f18
GOS Patched flag @: 0x0000000000584f58
GOS Patched flag @: 0x00000000004d45d8
GOS Patched flag @: 0x00000000004d4618
GOS Patched flag @: 0x00000000004d4658
GOS Patched flag @: 0x00000000004d4698
GOS Patched flag @: 0x00000000004d46d8
GOS Patched flag @: 0x00000000004d4718
GOS Patched flag @: 0x00000000004d4758
GOS Patched flag @: 0x00000000004d4798
GOS Patched flag @: 0x00000000004d47d8
GOS Patched flag @: 0x00000000004d4818
GOS Patched flag @: 0x00000000004d4858
GOS Patched flag @: 0x00000000004d4898
GOS Patched flag @: 0x00000000004d48d8
GOS Patched flag @: 0x0000000000584f98
GOS Patched flag @: 0x0000000000584fd8
GOS Patched flag @: 0x0000000000585018
GOS Patched flag @: 0x0000000000585058
GOS Patched flag @: 0x0000000000585098
GOS Patched flag @: 0x00000000005850d8
GOS Patched flag @: 0x0000000000585118
GOS Patched flag @: 0x0000000000585158
GOS Patched flag @: 0x0000000000585198
GOS Patched flag @: 0x00000000005851d8
GOS Patched flag @: 0x0000000000585218
GOS Patched flag @: 0x0000000000585258
GOS Patched flag @: 0x0000000000585298
GOS Patched: vmwarebase.dll
Downloading tools into ".\tools" directory...

Download progress: 98 %, 614.78 MB / 626.92 MB                    / 626.92 MB / 626.92 MB
Extracting from .tar to temp folder ...
Extracting from .zip to destination folder ...
Tools successfully downloaded!
Copying tools into program directory...
File ".\tools\darwin.iso" copy done.
File ".\tools\darwinPre15.iso" copy done.
Restarting services...
Service "VMware NAT Service" started successfully.
Service "VMnetDHCP" started successfully.
Service "VMUSBArbService" started successfully.
Service "VMAuthdService" started successfully.
Patch complete.
Press enter to quit.
TheFanatr commented 2 years ago

I will try to uninstall the auto-unlocker, and install the original python unlocker to see if that works.

TheFanatr commented 2 years ago

Ok so if I hold shift during boot, with a lower screen resolution, something different happens. The screen is not totally black with an animated activity indicator horizontally centered, slightly below center. The indicator is visible and animated for most of a period of 5 seconds, then is invisible for a period of another 5 seconds, soon after the beginning of which, the mouse mouse is moveable from the top left corner, until the period ends, at which point it will reset to the top left corner, and be unmoveable. This loops indefinitely. I'm not sure what this is, but it could be some form of safe mode options menu or login screen.

TheFanatr commented 2 years ago

After starting again from scratch, I learned that this behaviour will happen no matter if I've installed VMWare Tools for macOS before first restart; after installing, next boot will cause this described black screen with no apparent recourse. Am abandoning VMWare for now.

RandyHarr commented 2 years ago

Can confirm this behavior for VM Workstation v15.5.5 and Win11 host setup as well. Used macOS 12 Beta ISO for the install.

Can also confirm that following the suggestions for display settings in the VMX file and turning on automatic login bypassed the problem and allows me to operate. See https://blog.eucse.com/how-to-run-macos-monterey-12-beta-in-vmware-fusion/ . So not a setup problem here. A MacOS 12 Beta one. But how did they get that selection of MacOS 11 instead of MacOS 10.16? Is there updated code out -- maybe the Python original? I did hand edit the VMX file to make it be Darwin 21 instead of 20 selected with 10.16. Not sure if that helped at all.