最新消息:20210917 已从crifan.com换到crifan.org

【已解决】Win中打了VMWare的unlocker补丁但是VMWare新建看不到Apple Mac OS X选项

VMWare crifan 1381浏览 0评论
折腾:
【未解决】给VMWare打补丁支持新建MacOS虚拟机
期间,已经去
关闭了VMWare的进程了
然后也用管理员权限运行了
win-install.cmd
但是VMWare去新建虚拟机时,看不到macOS的选项:Apple Mac OS X
下载到了3.0.2
但是解压时报错,说不完整
也去试试
再去试试3.0
GitHub – theJaxon/unlocker: VMware Workstation macOS
“Unlocker 3 is designed for VMware Workstation 11-15 and Player 7-15.
If you are using an earlier product please continue using Unlocker 1.
Version 3 has been tested against:
* Workstation 11/12/14/15 on Windows and Linux
* Workstation Player 7/12/14/15 on Windows and Linux
The patch code carries out the following modifications dependent on the product
being patched:
* Fix vmware-vmx and derivatives to allow macOS to boot
* Fix vmwarebase .dll or .so to allow Apple to be selected during VM creation
* Download a copy of the latest VMware Tools for macOS
Note that not all products recognise the darwin.iso via install tools menu item.
You will have to manually mount the darwin.iso for example on Workstation 11 and Player 7.
In all cases make sure VMware is not running, and any background guests have
been shutdown.
The code is written in Python.
2. Prerequisites
—————-
The code requires Python 2.7 to work. Most Linux distros ship with a compatible
Python interpreter and should work without requiring any additional software.
Windows Unlocker has a packaged version of the Python script using PyInstaller,
and so does not require Python to be installed.
3. Limitations
————–
If you are using VMware Player or Workstation on Windows you may get a core dump.
Latest Linux products are OK and do not show this problem.
+—————————————————————————–+
| IMPORTANT:                                                                  |
| ==========                                                                  |
|                                                                             |
| If you create a new VM VMware may stop and create a core dump.              |
| There are two options to work around this issue:                            |
|                                                                             |
| 1. Change the VM to be HW 10 – this does not affect performance.            |
| 2. Edit the VMX file and add:                                               |
|    smc.version = “0”                                                        |
|                                                                             |
+—————————————————————————–+
4. Windows
———-
On Windows you will need to either run cmd.exe as Administrator or using
Explorer right click on the command file and select “Run as administrator”.
win-install.cmd   – patches VMware
win-uninstall.cmd – restores VMware
win-update-tools.cmd – retrieves latest macOS guest tools”
解释的很清楚了。
但是此处就是无效,新建虚拟机时,看不到选项:
Apple Mac OS X(M)
vmware unlocker not show Apple Mac OS X
vmware unlocker 看不到 Apple Mac OS X
此处版本是
VMware® Workstation 15 Pro
15.5.6 build-16341506
VMware15.5没有Mac OS选项 unlocker解锁失败 Get vmware tool 卡住(已解决)_爪白白的个人博客-CSDN博客
下载最新版 unlocker 3.0.3
Releases · paolo-projects/unlocker · GitHub
和之前GitHub仓库不同,是新项目
Active code page: 850


VMware is installed at: D:\dev\DevInstallRoot\VMware\VMware Workstation\
VMware product version: 15.5.6.16341506


Stopping VMware services...


Backing up files...
D:\dev\DevInstallRoot\VMware\VMware Workstation\x64\vmware-vmx.exe -> D:\dev\tools\VMWare+macOS\unlocker\unlocker_3.0.3\backup\x64\vmware-vmx.exe
1 File(s) copied
D:\dev\DevInstallRoot\VMware\VMware Workstation\x64\vmware-vmx-debug.exe -> D:\dev\tools\VMWare+macOS\unlocker\unlocker_3.0.3\backup\x64\vmware-vmx-debug.exe
1 File(s) copied
D:\dev\DevInstallRoot\VMware\VMware Workstation\x64\vmware-vmx-stats.exe -> D:\dev\tools\VMWare+macOS\unlocker\unlocker_3.0.3\backup\x64\vmware-vmx-stats.exe
1 File(s) copied
D:\dev\DevInstallRoot\VMware\VMware Workstation\vmwarebase.dll -> D:\dev\tools\VMWare+macOS\unlocker\unlocker_3.0.3\backup\vmwarebase.dll
1 File(s) copied


Patching...
File: D:\dev\DevInstallRoot\VMware\VMware Workstation\x64\vmware-vmx.exe


appleSMCTableV0 (smc.version = "0")
appleSMCTableV0 Address      : 0xacf820
appleSMCTableV0 Private Key #: 0xF2/242
appleSMCTableV0 Public Key  #: 0xF0/240
appleSMCTableV0 Table        : 0xacf840
+LKS Key:
002 0xacf888 +LKS 01 flag 0x90 0x1401d5230 07
OSK0 Key Before:
241 0xad3bc0 OSK0 32 ch8* 0x80 0x1401d5230 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
OSK0 Key After:
241 0xad3bc0 OSK0 32 ch8* 0x80 0x1401d5230 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 0xad3c08 OSK1 32 ch8* 0x80 0x1401d5230 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
OSK1 Key After:
242 0xad3c08 OSK1 32 ch8* 0x80 0x1401d5230 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      : 0xad3c50
appleSMCTableV1 Private Key #: 0x01B4/436
appleSMCTableV1 Public Key  #: 0x01B0/432
appleSMCTableV1 Table        : 0xad3c70
+LKS Key:
004 0xad3d48 +LKS 01 flag 0x90 0x1401d5230 01
OSK0 Key Before:
435 0xadb680 OSK0 32 ch8* 0x90 0x1401d5230 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
OSK0 Key After:
435 0xadb680 OSK0 32 ch8* 0x90 0x1401d5230 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 0xadb6c8 OSK1 32 ch8* 0x90 0x1401d5230 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
OSK1 Key After:
436 0xadb6c8 OSK1 32 ch8* 0x90 0x1401d5230 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: D:\dev\DevInstallRoot\VMware\VMware Workstation\x64\vmware-vmx-debug.exe


appleSMCTableV0 (smc.version = "0")
appleSMCTableV0 Address      : 0xd26b60
appleSMCTableV0 Private Key #: 0xF2/242
appleSMCTableV0 Public Key  #: 0xF0/240
appleSMCTableV0 Table        : 0xd26b80
+LKS Key:
002 0xd26bc8 +LKS 01 flag 0x90 0x140242c40 07
OSK0 Key Before:
241 0xd2af00 OSK0 32 ch8* 0x80 0x140242c40 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
OSK0 Key After:
241 0xd2af00 OSK0 32 ch8* 0x80 0x140242c40 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 0xd2af48 OSK1 32 ch8* 0x80 0x140242c40 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
OSK1 Key After:
242 0xd2af48 OSK1 32 ch8* 0x80 0x140242c40 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      : 0xd2af90
appleSMCTableV1 Private Key #: 0x01B4/436
appleSMCTableV1 Public Key  #: 0x01B0/432
appleSMCTableV1 Table        : 0xd2afb0
+LKS Key:
004 0xd2b088 +LKS 01 flag 0x90 0x140242c40 01
OSK0 Key Before:
435 0xd329c0 OSK0 32 ch8* 0x90 0x140242c40 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
OSK0 Key After:
435 0xd329c0 OSK0 32 ch8* 0x90 0x140242c40 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 0xd32a08 OSK1 32 ch8* 0x90 0x140242c40 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
OSK1 Key After:
436 0xd32a08 OSK1 32 ch8* 0x90 0x140242c40 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: D:\dev\DevInstallRoot\VMware\VMware Workstation\x64\vmware-vmx-stats.exe


appleSMCTableV0 (smc.version = "0")
appleSMCTableV0 Address      : 0xb1ff50
appleSMCTableV0 Private Key #: 0xF2/242
appleSMCTableV0 Public Key  #: 0xF0/240
appleSMCTableV0 Table        : 0xb1ff70
+LKS Key:
002 0xb1ffb8 +LKS 01 flag 0x90 0x1401e38e0 07
OSK0 Key Before:
241 0xb242f0 OSK0 32 ch8* 0x80 0x1401e38e0 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
OSK0 Key After:
241 0xb242f0 OSK0 32 ch8* 0x80 0x1401e38e0 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 0xb24338 OSK1 32 ch8* 0x80 0x1401e38e0 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
OSK1 Key After:
242 0xb24338 OSK1 32 ch8* 0x80 0x1401e38e0 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      : 0xb24380
appleSMCTableV1 Private Key #: 0x01B4/436
appleSMCTableV1 Public Key  #: 0x01B0/432
appleSMCTableV1 Table        : 0xb243a0
+LKS Key:
004 0xb24478 +LKS 01 flag 0x90 0x1401e38e0 01
OSK0 Key Before:
435 0xb2bdb0 OSK0 32 ch8* 0x90 0x1401e38e0 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
OSK0 Key After:
435 0xb2bdb0 OSK0 32 ch8* 0x90 0x1401e38e0 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 0xb2bdf8 OSK1 32 ch8* 0x90 0x1401e38e0 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
OSK1 Key After:
436 0xb2bdf8 OSK1 32 ch8* 0x90 0x1401e38e0 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


GOS Patching: D:\dev\DevInstallRoot\VMware\VMware Workstation\vmwarebase.dll
GOS Patched flag @: 0x498b68
。。。
GOS Patched flag @: 0x542eb8
GOS Patched: D:\dev\DevInstallRoot\VMware\VMware Workstation\vmwarebase.dll


Getting VMware Tools...
Trying to get tools from the packages folder...
Retrieving Darwin tools from: 
http://softwareupdate.vmware.com/cds/vmw-desktop/fusion/11.5.5/16269456/packages/com.vmware.fusion.tools.darwin.zip.tar
Tools aren't here... Be patient while I download and give a look into the core.vmware.fusion.tar file
...1%, 8 MB, 2284 KB/s, 268 seconds remaining
自己去下载
com.vmware.fusion.tools.darwin.zip.tar
直接打开,显示 not found
[填坑]新版VMware无法显示MacOS选择项_清凉简装的博客-CSDN博客
http://softwareupdate.vmware.com/cds/vmw-desktop/fusion/
是可以打开的:
找到此处的11.5.5,进入
CDS Repository – /var/www/public/stage/session-236/cds/vmw-desktop/fusion/11.5.5/16269456/core
-》
去下载
晕死,600多MB呢
刚注意到,不是人家说的
com.vmware.fusion.tools.darwin.zip.tar
所以去看看
http://softwareupdate.vmware.com/cds
看看是否有 vmw-desktop的其他的,比如pro啥的
没有
http://softwareupdate.vmware.com/vmw-desktop/
会not found
http://softwareupdate.vmware.com/cds/vmw-desktop/
有:
http://softwareupdate.vmware.com/cds/vmw-desktop/
这下尴尬了
http://softwareupdate.vmware.com/cds/vmw-desktop/fusion/11.5.5/16269456/
下面只有core:
没有我们要的 packages
com.vmware.fusion.tools.darwin.zip.tar
CDS Repository – /var/www/public/stage/session-236/cds/vmw-desktop/fusion/10.1.1/7520154/packages
之前旧版本 此处的 10.1.1 下面是有 packages的
但是新的11.5.5下面没有
VMware 安装 MacOS – duchaoqun – 博客园
http://softwareupdate.vmware.com/cds/vmw-desktop/fusion/11.5.1/15018442/core/com.vmware.fusion.zip.tar
意思是core下面也是可以的?
那意思是 11.5.5中的core也是可以的?
那去把脚本的fusion的文件名改为这个core的地址?
VMware Tools for OS X / macOS (darwin.iso and darwinPre15.iso) – Apps – InsanelyMac Forum
Automate silent installation of VMware Tools for Mac OS X
VMware15 安装 mac OS 10.14 常见问题? – 简书
unlocker for VMware Workstation Pro 15.5.1 15018445 – 简书
可以自己改脚本的
VMware Workstation Pro 15 虚拟机安装 MacOS | 张慧敏的博客
不过,之前看了几个贴子,都提到:
需要停止VMWare的服务
VMware Workstation Pro 15 虚拟机安装 MacOS | 张慧敏的博客
而之前只是停止进程
》现象看起来是:某些进程被杀掉后,还会自动启动
会不会是由于这个原因,导致脚本运行出错?
所以去:
停止VMWare服务
再去试试脚本
不过此处,先去修改脚本,让其可以I继续下载tools
D:\dev\tools\VMWare+macOS\unlocker\unlocker_3.0.3\gettools.py
去修改看看
感觉代码逻辑是对的?
找不到
/packages/com.vmware.fusion.tools.darwin.zip.tar
会去尝试找
/tools/com.vmware.fusion.zip.ta
再运行一遍试试
这次正常了,可以继续下载,不像之前卡死
Getting VMware Tools...
Trying to get tools from the packages folder...
Retrieving Darwin tools from: http://softwareupdate.vmware.com/cds/vmw-desktop/fusion/11.5.5/16269456/packages/com.vmware.fusion.tools.darwin.zip.tar
Tools aren't here... Be patient while I download and give a look into the core.vmware.fusion.tar file
...38%, 236 MB, 7654 KB/s, 49 seconds remaining
脚本运行期间,任务管理器中 没有vm的进程
-》基本上确定,不是服务没完全关闭的原因
-》印象中,此脚本第一次运行期间,也看到了,会首先去关闭VMware的服务的
都处理完毕后,再去重启VMware的服务的
貌似又卡死了?
多等会看看
不行,就重试
但是报错了:
Getting VMware Tools...
Trying to get tools from the packages folder...
Traceback (most recent call last):
  File "D:\obj\windows-release\37win32_Release\msi_python\zip_win32\request.py", line 1317, in do_open
  File "D:\obj\windows-release\37win32_Release\msi_python\zip_win32\client.py", line 1244, in request
  File "D:\obj\windows-release\37win32_Release\msi_python\zip_win32\client.py", line 1290, in _send_request
  File "D:\obj\windows-release\37win32_Release\msi_python\zip_win32\client.py", line 1239, in endheaders
  File "D:\obj\windows-release\37win32_Release\msi_python\zip_win32\client.py", line 1026, in _send_output
  File "D:\obj\windows-release\37win32_Release\msi_python\zip_win32\client.py", line 966, in send
  File "D:\obj\windows-release\37win32_Release\msi_python\zip_win32\client.py", line 938, in connect
  File "D:\obj\windows-release\37win32_Release\msi_python\zip_win32\socket.py", line 707, in create_connection
  File "D:\obj\windows-release\37win32_Release\msi_python\zip_win32\socket.py", line 748, in getaddrinfo
socket.gaierror: [Errno 11001] getaddrinfo failed


During handling of the above exception, another exception occurred:


Traceback (most recent call last):
  File "gettools.py", line 225, in <module>
    main()
  File "gettools.py", line 113, in main
    response = urlopen(url)
  File "D:\obj\windows-release\37win32_Release\msi_python\zip_win32\request.py", line 222, in urlopen
  File "D:\obj\windows-release\37win32_Release\msi_python\zip_win32\request.py", line 525, in open
  File "D:\obj\windows-release\37win32_Release\msi_python\zip_win32\request.py", line 543, in _open
  File "D:\obj\windows-release\37win32_Release\msi_python\zip_win32\request.py", line 503, in _call_chain
  File "D:\obj\windows-release\37win32_Release\msi_python\zip_win32\request.py", line 1345, in http_open
  File "D:\obj\windows-release\37win32_Release\msi_python\zip_win32\request.py", line 1319, in do_open
urllib.error.URLError: <urlopen error [Errno 11001] getaddrinfo failed>
File not found - darwin*.*
0 File(s) copied


Starting VMware services...
不过,此处至少出现了:
可以新建macOS的虚拟机了:
感觉算是解决了问题了。
如果后续再出现其他问题,再说。
【总结】
此处,试了之前的unlocker 3.0和3.0.2,但是VMWare新建虚拟机没出现macOS选项
最后换成:
Releases · paolo-projects/unlocker · GitHub
下载unlocker 3.0.3
经过多次运行
win-install.cmd
最终:虽然会有其他报错
但是至少VMWare可以新建macOS虚拟机了。

转载请注明:在路上 » 【已解决】Win中打了VMWare的unlocker补丁但是VMWare新建看不到Apple Mac OS X选项

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
89 queries in 0.210 seconds, using 20.18MB memory