无法编译模块vmmon vmware

时间:2012-10-11 16:06:14

标签: linux debian vmware

我将在VMware 6上以3.2.xx debian安装kernel 8。我已经彻底安装了它,似乎安装过程没有任何错误。但是当我想运行VMware workstation时,它出现了一个错误:

Failed to compile module vmmon

这个错误的原因是什么,我该如何解决?

日志输出:

2012-10-11T19:29:37.521+03:30| vthread-3| I120: Building module with command: /usr/bin/make -j -C /tmp/vmware-root/modules/vmmon-only$
2012-10-11T19:29:39.324+03:30| vthread-3| I120: Failed to compile module vmmon!

3 个答案:

答案 0 :(得分:5)

我使用此命令来解决我的问题:

# cd /usr/lib/vmware/modules;
# wget http://pavlinux.ru/vmware/8.0.0/source.tar.lzma;
# tar -xf source.tar.lzma;
# vmware-modconfig --console --install-all;

答案 1 :(得分:2)

每次root次升级后,您需要以kernel运行此命令:

vmware-modconfig --console --install-all

答案 2 :(得分:1)

以这种方式解决

检查要插入脚本的版本$ vmplayer -v,以我的情况为14.1.7

$ vim vmware-repair.sh

按我并粘贴

#!/bin/bash
VMWARE_VERSION=workstation-14.1.7 #This needs to be the actual name of the appropriate branch in mkubecek's GitHub repo for your purposes
TMP_FOLDER=/tmp/patch-vmware
rm -fdr $TMP_FOLDER
mkdir -p $TMP_FOLDER
cd $TMP_FOLDER
git clone https://github.com/mkubecek/vmware-host-modules.git #Use `git branch -a` to find all available branches and find the one that's appropriate for you
cd $TMP_FOLDER/vmware-host-modules
git checkout $VMWARE_VERSION
git fetch
make
sudo make install
sudo rm /usr/lib/vmware/lib/libz.so.1/libz.so.1
sudo ln -s /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/vmware/lib/libz.so.1/libz.so.1
systemctl restart vmware && vmplayer &

按ESC,然后先:wq然后按ENTER

$ chmod +x vmware-repair.sh
$ sudo ./vmware-repair.sh

Source