无法启动虚拟机因为一个或多个内核组件属于其它 Parallels Desktop 版本

18 users found this article helpful

问题


升级到 Parallel Desktop 8 后无法启动虚拟机,因为错误信息:


原因

Parallels Desktop 8 升级开始时一个 Parallels Desktop 7 进程正在运行。

解决方案

sudo su
(然后输入管理员密钥并按下回车键 return。 现在您就可执行以下命令)
 

for pid in $(ps aux | grep "Parallels Desktop.app" | awk '{print $2}'); do echo kill -KILL $pid; done

for kext in $(kextstat | grep parallels | awk '{print $6}'); do kextunload $kext; done

rm /System/Library/Extensions/prl*

rm -rf "Parallels Desktop.app"
 

注意: 执行命令后如果终端不显示任何输出表示命令执行成功

如果您看到 '无此类文件或目录' 信息表示该文件或目录已被常规卸载程序移除,您可以继续。

sudo launchctl stop com.parallels.vm.prl_naptd
sudo launchctl stop com.parallels.desktop.launchdaemon
sudo launchctl stop com.parallels.vm.prl_pcproxy


sudo kextunload -b com.parallels.kext.prl_hypervisor
sudo kextunload -b com.parallels.kext.prl_hid_hook
sudo kextunload -b com.parallels.kext.prl_usb_connect
sudo kextunload -b com.parallels.kext.prl_netbridge
sudo kextunload -b com.parallels.kext.prl_vnic
sudo kextunload -b com.parallels.filesystems.prlufs


sudo rm -rf /Library/Parallels
sudo rm -rf /Applications/Parallels\ Desktop.app
sudo rm -rf /Library/LaunchDaemons/com.parallels.desktop.launchdaemon.plist
sudo rm -rf /Library/LaunchAgents/com.parallels.*
sudo rm -rf /Library/Python/*/site-packages/prlsdkapi
sudo rm -rf /usr/bin/prl_perf_ctl
sudo rm -rf /usr/bin/prlctl
sudo rm -rf /usr/bin/prlsrvctl
sudo rm -rf /usr/bin/prl_disk_tool
sudo rm -rf /usr/share/man/man8/prl*
sudo rm -rf /var/db/Parallels/Stats/ParallelsDesktop.*
sudo rm -rf /usr/lib/parallels
sudo rm -rf /Library/Filesystems/prlufs.fs

sudo rm -rf /Library/Preferences/Parallels
sudo rm -rf /Library/Logs/parallels

Was this article helpful?

Tell us how we can improve it.