无法在Ubuntu 18.04 LTS上安装Parallels Tools

时间:2018-04-27 05:05:38

标签: ubuntu parallels ubuntu-18.04

我无法在Ubuntu 18.04 LTS上安装Parallels Tools。这是错误日志:

Started installation of Parallels Guest Tools version '13.3.0.43321'

Thu Apr 26 21:45:11 PDT 2018
Start installation or upgrade of Guest Tools
new version of parallels tools
Installed Guest Tools were not found
Perform installation into the /usr/lib/parallels-tools directory
cat: /usr/lib/parallels-tools/kmods/../version: No such file or directory
make: Entering directory '/usr/lib/parallels-tools/kmods'
cd prl_eth/pvmnet && make
make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet'
make -C /lib/modules/4.15.0-20-generic/build M=/usr/lib/parallels-tools/kmods/prl_eth/pvmnet
make[2]: Entering directory '/usr/src/linux-headers-4.15.0-20-generic'
Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
  CC [M]  /usr/lib/parallels-tools/kmods/prl_eth/pvmnet/pvmnet.o
  LD [M]  /usr/lib/parallels-tools/kmods/prl_eth/pvmnet/prl_eth.o
  Building modules, stage 2.
  MODPOST 1 modules
FATAL: modpost: GPL-incompatible module prl_eth.ko uses GPL-only symbol 'sev_enable_key'
scripts/Makefile.modpost:92: recipe for target '__modpost' failed
make[3]: *** [__modpost] Error 1
Makefile:1555: recipe for target 'modules' failed
make[2]: *** [modules] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.15.0-20-generic'
/usr/lib/parallels-tools/kmods/prl_eth/pvmnet/Makefile.v26:11: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet'
Makefile.kmods:34: recipe for target 'installme' failed
make: *** [installme] Error 2
make: Leaving directory '/usr/lib/parallels-tools/kmods'
Error: could not build kernel modules
Error: failed to install kernel modules
Error: failed to install Parallels Guest Tools!
Please, look at /var/log/parallels-tools-install.log file for more information.

但是,在Ubuntu 16.04 LTS上安装Parallels Tools时,一切都很顺利。

3 个答案:

答案 0 :(得分:2)

Parallels Tools无法在内核4.15 +上构建所需的内核模块。

请参阅https://forum.parallels.com/threads/fail-to-build-kernel-modules-on-linux-kernel-v4-15.343748/

作为一种解决方法,您可以尝试降级到4.14,但我没有看到任何预编译4.14的内核包。您可能需要重新编译或查看,如果之前的日报有4.14(不推荐使用)。

解决方案:等待Parallels发布更新。

答案 1 :(得分:2)

如果您想在使用最新内核的发行版上使用完全正常工作的Parallels Tools,您可以使用我所做的此修复: https://gist.github.com/rudolfratusinski/a4d9e3caff11a4d9d81d2e84abc9afbf

它考虑了内核的最新更改(在本例中为timer.h)

答案 2 :(得分:1)

Parallels 13.3.1-43365及更高版本支持Ubuntu 18.04。来源:https://kb.parallels.com/124262