5

解决mac升级ventura系统后parallels无法运行问题

 1 year ago
source link: http://xuedingmiao.com/blog/mac_ventura_parallels.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

记一下 mac 升级 ventura 系统后 parallels desktop 虚拟机无法使用问题

# 背景

电脑系统升级之后提示:无法启动 Parallels Desktop,因为您的 Mac 操作系统缺少一些必需组件。

因为部分软件需要在 win 环境下编译所以不得不处理这个问题,经过一番折腾终于解决了,下面记录一下修复过程。

# 安装

因为升级系统是有可能会产生兼容问题的,所以之前的旧版虚拟机软件自然是需要做一些适配的,我们就需要安装新版本的 Parallels Desktop。

下载地址:ParallelsDesktop-18.0.3-53079

  1. 退出 parallels 账号。

  2. 下载安装文件。

  3. 解压安装主程序进行安装。

  4. parallelsdesktopcrack 拷贝出来解压,从命令行进入目录执行如下命令(需要输入密码):

chmod +x ./install.sh && sudo ./install.sh

如果报错异常可以选择用手动方式:

  1. 安装前退出进程
killall -9 prl_client_app
killall -9 prl_disp_service
  1. 复制 crack 文件。如果不允许则可以手动复制。
sudo cp -f prl_disp_service "/Applications/Parallels Desktop.app/Contents/MacOS/Parallels Service.app/Contents/MacOS/prl_disp_service"
sudo chown root:wheel "/Applications/Parallels Desktop.app/Contents/MacOS/Parallels Service.app/Contents/MacOS/prl_disp_service"
sudo chmod 755 "/Applications/Parallels Desktop.app/Contents/MacOS/Parallels Service.app/Contents/MacOS/prl_disp_service"
Copy licenses.json
sudo rm -f "/Library/Preferences/Parallels/licenses.json"
sudo cp licenses.json "/Library/Preferences/Parallels/licenses.json"
sudo chown root:wheel "/Library/Preferences/Parallels/licenses.json"
sudo chmod 444 "/Library/Preferences/Parallels/licenses.json"
Sign
  1. 替换签名。
sudo codesign -f -s - --timestamp=none --all-architectures --deep --entitlements ParallelsService.entitlements "/Applications/Parallels Desktop.app/Contents/MacOS/Parallels Service.app/Contents/MacOS/prl_disp_service"

提示:Parallels Desktop 可能会上传客户端信息或者日志到服务器,所以可以用防火墙或者修改 dns 域名解析方式来屏蔽掉域名。

127.0.0.1 download.parallels.com
127.0.0.1  update.parallels.com
127.0.0.1  desktop.parallels.com
127.0.0.1  download.parallels.com.cdn.cloudflare.net
127.0.0.1  update.parallels.com.cdn.cloudflare.net
127.0.0.1  desktop.parallels.com.cdn.cloudflare.net
127.0.0.1  www.parallels.cn
127.0.0.1  www.parallels.com
127.0.0.1  reportus.parallels.com
127.0.0.1  parallels.com
127.0.0.1  parallels.cn
127.0.0.1  pax-manager.myparallels.com
127.0.0.1  myparallels.com
127.0.0.1  my.parallels.com

# 异常处理

如果执行命令的过程中遇到了如下提示:

operation not permitted

是因为 mac 电脑启用了 SIP(System Integrity Protection),增加了 rootless 机制,导致即使在 root 权限下依然无法修改文件,关闭该保护机制才能进行修改。

  1. 重启电脑,出现苹果 logo 的时候按住 command+R,直到进入保护模式。

  2. 保护模式:屏幕正中是一个对话框,提示恢复某个备份,或者恢复出厂系统等等。左上角有一排工具栏。

  3. 左上角找到 terminal 终端,打开并输入:csrutil disable,回车。

  4. 再次重启电脑即可。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK