绕过 VMware Fusion 的 Mac OS Server 检查

脚本一只解决问题:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.vmware.faker</string>
    <key>ProgramArguments</key>
    <array>
            <string>/bin/bash</string>
            <string>-c</string>
            <string>/bin/rm -f /System/Library/CoreServices/ServerVersion.plist; trap "/usr/bin/touch /System/Library/CoreServices/ServerVersion.plist; exit" SIGINT SIGTERM SIGHUP; sleep 999999 & wait $!</string>
    </array>
    <key>KeepAlive</key>
    <true/>
    <key>RunAtLoad</key>
    <true/>
</dict>
</plist>

文件路径:

/Library/LaunchDaemons/com.vmware.faker.plist

相对于破解VMware的darwin驱动,这个方法保险一些,只是可能出现意外无法开机,没关系,使用服务器版镜像启动虚拟机,终端:

touch /Volumes/启动盘卷标/System/Library/CoreServices/ServerVersion.plist

即可开机。脚本的作用是关机时自动生成上述文件以备下次开机检查,开机后自动删除此文件。为了不必要的麻烦,请不要强制关闭虚拟机。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.