Kali安装parallel tools失败问题解决

在Mac系统中,在parallel中使用Kali性能好,但是parallel tools安装经常安装出错。

出错现象

Sat Dec 12 23:14:50 EST 2020
Start installation or upgrade of Guest Tools
/usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/inode.c: In function 'init_buffer_descriptor':
/usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/inode.c:58:31: error: implicit declaration of function 'segment_eq' [-Werror=implicit-function-declaration]
   58 |  bd->user = (user == 0) ? 0 : segment_eq(get_fs(), USER_DS) ? 1 : 0;
      |                               ^~~~~~~~~~
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-5.9.0-kali4-common/scripts/Makefile.build:288: /usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/inode.o] Error 1
make[3]: *** [/usr/src/linux-headers-5.9.0-kali4-common/Makefile:1796: /usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs] Error 2
make[2]: *** [/usr/src/linux-headers-5.9.0-kali4-common/Makefile:185: __sub-make] Error 2
make[1]: *** [Makefile:36: all] Error 2
make: *** [Makefile.kmods:33: compile] Error 2
Error: could not build kernel modules
Error during report about failed installation of parallels tools.
Error: failed to install Parallels Guest Tools!
2020-12-12T23:14:55-0500: execCmd: ./install --install [167]
2020-12-12T23:14:55-0500: Error: An error occurred when installing Parallels Tools. Please go to /var/log/parallels-tools-install.log for more information.
2020-12-12T23:19:58-0500: 

修复方法1

  1. 在kmods文件夹中,解压prl_mod.tar.gz
  2. 在prl_fs/SharedFolders/Guest/Linux/prl_fs/inode.c中,在第一行加入”#define segment_eq(a, b) ((a).seg == (b).seg)”
  3. 在prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.c 文件中,第一行加入 “#include <linux/blkdev.h>”
  4. 在文件prl_fs/SharedFolders/Guest/Linux/prl_fs/Makefile 和文件 prl_vid/Video/Guest/Linux/kmod/Makefile中,第一行加入”KBUILD_EXTRA_SYMBOLS := /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/Module.symvers”
  5. 重新打包:
rm prl_mod.tar.gz
tar -zcvf prl_mod.tar.gz .
  1. 重新安装:
./install

安装成功

  1. Web:2020.2 Kali Linux, Parallels Tools Error | Parallels Forums

Leave a Reply

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