我升级到了最新版本的 Ubuntu (19.10),现在运行 VMware 内核模块更新程序时,VMware Player 无法工作——“无法启动服务”。因此,我查看了日志文件(见下文),看到最后一行“2020-02-05T14:29:19.554-08:00| host-6114| W115:无法构建 vmmon。无法执行构建命令。”。我认为这就是问题所在(只有一个?),但在线搜索根本没有帮助。我尝试卸载 VMware 并重新安装,但没有用。知道我需要做什么吗?
谢谢,瑞安
2020-02-05T14:29:16.794-08:00| host-6114| I125: Log for VMware Workstation pid=6114 version=15.1.0 build=build-13591040 option=Release
2020-02-05T14:29:16.794-08:00| host-6114| I125: The process is 64-bit.
2020-02-05T14:29:16.794-08:00| host-6114| I125: Host codepage=UTF-8 encoding=UTF-8
2020-02-05T14:29:16.794-08:00| host-6114| I125: Host is Linux 5.3.0-29-generic Ubuntu 19.10
2020-02-05T14:29:16.794-08:00| host-6114| I125: DictionaryLoad: Cannot open file "/usr/lib/vmware/settings": No such file or directory.
2020-02-05T14:29:16.794-08:00| host-6114| I125: [msg.dictionary.load.openFailed] Cannot open file "/usr/lib/vmware/settings": No such file or directory.
2020-02-05T14:29:16.794-08:00| host-6114| I125: PREF Optional preferences file not found at /usr/lib/vmware/settings. Using default values.
2020-02-05T14:29:16.794-08:00| host-6114| I125: DictionaryLoad: Cannot open file "/home/tacchino/.vmware/config": No such file or directory.
2020-02-05T14:29:16.794-08:00| host-6114| I125: [msg.dictionary.load.openFailed] Cannot open file "/home/tacchino/.vmware/config": No such file or directory.
2020-02-05T14:29:16.794-08:00| host-6114| I125: PREF Optional preferences file not found at /home/tacchino/.vmware/config. Using default values.
2020-02-05T14:29:16.827-08:00| host-6114| W115: Logging to /tmp/vmware-root/vmware-6114.log
2020-02-05T14:29:16.846-08:00| host-6114| I125: Obtaining info using the running kernel.
2020-02-05T14:29:16.846-08:00| host-6114| I125: Created new pathsHash.
2020-02-05T14:29:16.846-08:00| host-6114| I125: Setting header path for 5.3.0-29-generic to "/lib/modules/5.3.0-29-generic/build/include".
2020-02-05T14:29:16.846-08:00| host-6114| I125: Validating path "/lib/modules/5.3.0-29-generic/build/include" for kernel release "5.3.0-29-generic".
2020-02-05T14:29:16.846-08:00| host-6114| I125: Failed to find /lib/modules/5.3.0-29-generic/build/include/linux/version.h
2020-02-05T14:29:16.846-08:00| host-6114| I125: /lib/modules/5.3.0-29-generic/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2020-02-05T14:29:16.846-08:00| host-6114| I125: using /usr/bin/gcc-9 for preprocess check
2020-02-05T14:29:16.852-08:00| host-6114| I125: Preprocessed UTS_RELEASE, got value "5.3.0-29-generic".
2020-02-05T14:29:16.852-08:00| host-6114| I125: The header path "/lib/modules/5.3.0-29-generic/build/include" for the kernel "5.3.0-29-generic" is valid. Whoohoo!
2020-02-05T14:29:16.984-08:00| host-6114| I125: found symbol version file /lib/modules/5.3.0-29-generic/build/Module.symvers
2020-02-05T14:29:16.984-08:00| host-6114| I125: Reading symbol versions from /lib/modules/5.3.0-29-generic/build/Module.symvers.
2020-02-05T14:29:17.001-08:00| host-6114| I125: Read 23594 symbol versions
2020-02-05T14:29:17.001-08:00| host-6114| I125: Reading in info for the vmmon module.
2020-02-05T14:29:17.001-08:00| host-6114| I125: Reading in info for the vmnet module.
2020-02-05T14:29:17.001-08:00| host-6114| I125: Reading in info for the vmci module.
2020-02-05T14:29:17.001-08:00| host-6114| I125: Reading in info for the vsock module.
2020-02-05T14:29:17.001-08:00| host-6114| I125: Setting vsock to depend on vmci.
2020-02-05T14:29:17.001-08:00| host-6114| I125: Invoking modinfo on "vmmon".
2020-02-05T14:29:17.004-08:00| host-6114| I125: "/sbin/modinfo" exited with status 256.
2020-02-05T14:29:17.004-08:00| host-6114| I125: Invoking modinfo on "vmnet".
2020-02-05T14:29:17.007-08:00| host-6114| I125: "/sbin/modinfo" exited with status 0.
2020-02-05T14:29:17.007-08:00| host-6114| I125: Invoking modinfo on "vmci".
2020-02-05T14:29:17.009-08:00| host-6114| I125: "/sbin/modinfo" exited with status 256.
2020-02-05T14:29:17.009-08:00| host-6114| I125: Invoking modinfo on "vsock".
2020-02-05T14:29:17.014-08:00| host-6114| I125: "/sbin/modinfo" exited with status 0.
2020-02-05T14:29:17.031-08:00| host-6114| I125: to be installed: vmmon status: 0
2020-02-05T14:29:17.042-08:00| host-6114| I125: Obtaining info using the running kernel.
2020-02-05T14:29:17.042-08:00| host-6114| I125: Setting header path for 5.3.0-29-generic to "/lib/modules/5.3.0-29-generic/build/include".
2020-02-05T14:29:17.042-08:00| host-6114| I125: Validating path "/lib/modules/5.3.0-29-generic/build/include" for kernel release "5.3.0-29-generic".
2020-02-05T14:29:17.042-08:00| host-6114| I125: Failed to find /lib/modules/5.3.0-29-generic/build/include/linux/version.h
2020-02-05T14:29:17.042-08:00| host-6114| I125: /lib/modules/5.3.0-29-generic/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2020-02-05T14:29:17.042-08:00| host-6114| I125: using /usr/bin/gcc-9 for preprocess check
2020-02-05T14:29:17.049-08:00| host-6114| I125: Preprocessed UTS_RELEASE, got value "5.3.0-29-generic".
2020-02-05T14:29:17.049-08:00| host-6114| I125: The header path "/lib/modules/5.3.0-29-generic/build/include" for the kernel "5.3.0-29-generic" is valid. Whoohoo!
2020-02-05T14:29:17.187-08:00| host-6114| I125: found symbol version file /lib/modules/5.3.0-29-generic/build/Module.symvers
2020-02-05T14:29:17.187-08:00| host-6114| I125: Reading symbol versions from /lib/modules/5.3.0-29-generic/build/Module.symvers.
2020-02-05T14:29:17.203-08:00| host-6114| I125: Read 23594 symbol versions
2020-02-05T14:29:17.205-08:00| host-6114| I125: Kernel header path retrieved from FileEntry: /lib/modules/5.3.0-29-generic/build/include
2020-02-05T14:29:17.205-08:00| host-6114| I125: Update kernel header path to /lib/modules/5.3.0-29-generic/build/include
2020-02-05T14:29:17.205-08:00| host-6114| I125: Validating path "/lib/modules/5.3.0-29-generic/build/include" for kernel release "5.3.0-29-generic".
2020-02-05T14:29:17.205-08:00| host-6114| I125: Failed to find /lib/modules/5.3.0-29-generic/build/include/linux/version.h
2020-02-05T14:29:17.205-08:00| host-6114| I125: /lib/modules/5.3.0-29-generic/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2020-02-05T14:29:17.205-08:00| host-6114| I125: using /usr/bin/gcc-9 for preprocess check
2020-02-05T14:29:17.212-08:00| host-6114| I125: Preprocessed UTS_RELEASE, got value "5.3.0-29-generic".
2020-02-05T14:29:17.212-08:00| host-6114| I125: The header path "/lib/modules/5.3.0-29-generic/build/include" for the kernel "5.3.0-29-generic" is valid. Whoohoo!
2020-02-05T14:29:17.213-08:00| host-6114| I125: Found compiler at "/usr/bin/gcc"
2020-02-05T14:29:17.215-08:00| host-6114| I125: Got gcc version "9".
2020-02-05T14:29:17.215-08:00| host-6114| I125: The GCC version matches the kernel GCC minor version like a glove.
2020-02-05T14:29:17.217-08:00| host-6114| I125: Got gcc version "9".
2020-02-05T14:29:17.218-08:00| host-6114| I125: The GCC version matches the kernel GCC minor version like a glove.
2020-02-05T14:29:17.220-08:00| host-6114| I125: Trying to find a suitable PBM set for kernel "5.3.0-29-generic".
2020-02-05T14:29:17.220-08:00| host-6114| I125: No matching PBM set was found for kernel "5.3.0-29-generic".
2020-02-05T14:29:17.220-08:00| host-6114| I125: The GCC version matches the kernel GCC minor version like a glove.
2020-02-05T14:29:17.221-08:00| host-6114| I125: Validating path "/lib/modules/5.3.0-29-generic/build/include" for kernel release "5.3.0-29-generic".
2020-02-05T14:29:17.221-08:00| host-6114| I125: Failed to find /lib/modules/5.3.0-29-generic/build/include/linux/version.h
2020-02-05T14:29:17.221-08:00| host-6114| I125: /lib/modules/5.3.0-29-generic/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2020-02-05T14:29:17.221-08:00| host-6114| I125: using /usr/bin/gcc-9 for preprocess check
2020-02-05T14:29:17.227-08:00| host-6114| I125: Preprocessed UTS_RELEASE, got value "5.3.0-29-generic".
2020-02-05T14:29:17.227-08:00| host-6114| I125: The header path "/lib/modules/5.3.0-29-generic/build/include" for the kernel "5.3.0-29-generic" is valid. Whoohoo!
2020-02-05T14:29:17.227-08:00| host-6114| I125: The GCC version matches the kernel GCC minor version like a glove.
2020-02-05T14:29:17.227-08:00| host-6114| I125: Validating path "/lib/modules/5.3.0-29-generic/build/include" for kernel release "5.3.0-29-generic".
2020-02-05T14:29:17.227-08:00| host-6114| I125: Failed to find /lib/modules/5.3.0-29-generic/build/include/linux/version.h
2020-02-05T14:29:17.227-08:00| host-6114| I125: /lib/modules/5.3.0-29-generic/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2020-02-05T14:29:17.227-08:00| host-6114| I125: using /usr/bin/gcc-9 for preprocess check
2020-02-05T14:29:17.234-08:00| host-6114| I125: Preprocessed UTS_RELEASE, got value "5.3.0-29-generic".
2020-02-05T14:29:17.234-08:00| host-6114| I125: The header path "/lib/modules/5.3.0-29-generic/build/include" for the kernel "5.3.0-29-generic" is valid. Whoohoo!
2020-02-05T14:29:17.234-08:00| host-6114| I125: Using temp dir "/tmp".
2020-02-05T14:29:17.238-08:00| host-6114| I125: Obtaining info using the running kernel.
2020-02-05T14:29:17.238-08:00| host-6114| I125: Setting header path for 5.3.0-29-generic to "/lib/modules/5.3.0-29-generic/build/include".
2020-02-05T14:29:17.238-08:00| host-6114| I125: Validating path "/lib/modules/5.3.0-29-generic/build/include" for kernel release "5.3.0-29-generic".
2020-02-05T14:29:17.238-08:00| host-6114| I125: Failed to find /lib/modules/5.3.0-29-generic/build/include/linux/version.h
2020-02-05T14:29:17.238-08:00| host-6114| I125: /lib/modules/5.3.0-29-generic/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2020-02-05T14:29:17.238-08:00| host-6114| I125: using /usr/bin/gcc-9 for preprocess check
2020-02-05T14:29:17.243-08:00| host-6114| I125: Preprocessed UTS_RELEASE, got value "5.3.0-29-generic".
2020-02-05T14:29:17.243-08:00| host-6114| I125: The header path "/lib/modules/5.3.0-29-generic/build/include" for the kernel "5.3.0-29-generic" is valid. Whoohoo!
2020-02-05T14:29:17.375-08:00| host-6114| I125: found symbol version file /lib/modules/5.3.0-29-generic/build/Module.symvers
2020-02-05T14:29:17.375-08:00| host-6114| I125: Reading symbol versions from /lib/modules/5.3.0-29-generic/build/Module.symvers.
2020-02-05T14:29:17.391-08:00| host-6114| I125: Read 23594 symbol versions
2020-02-05T14:29:17.391-08:00| host-6114| I125: Invoking modinfo on "vmmon".
2020-02-05T14:29:17.395-08:00| host-6114| I125: "/sbin/modinfo" exited with status 256.
2020-02-05T14:29:18.125-08:00| host-6114| I125: Setting destination path for vmmon to "/lib/modules/5.3.0-29-generic/misc/vmmon.ko".
2020-02-05T14:29:18.125-08:00| host-6114| I125: Extracting the vmmon source from "/usr/lib/vmware/modules/source/vmmon.tar".
2020-02-05T14:29:18.135-08:00| host-6114| I125: Successfully extracted the vmmon source.
2020-02-05T14:29:18.135-08:00| host-6114| I125: Building module with command "/usr/bin/make -j16 -C /tmp/modconfig-hPYqox/vmmon-only auto-build HEADER_DIR=/lib/modules/5.3.0-29-generic/build/include CC=/usr/bin/gcc IS_GCC_3=no"
2020-02-05T14:29:19.554-08:00| host-6114| W115: Failed to build vmmon. Failed to execute the build command.
答案1
您可以创建基于mkucebek 的 GitHub 仓库对于 VMware 主机模块补丁,使其可执行,并在每次需要时运行它。通常是在安装新内核时。我已针对您安装的版本 VMware Player 15.1.0 对其进行了修改:
#!/bin/bash
VMWARE_VERSION=player-15.1.0
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
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
sudo /etc/init.d/vmware restart
同样的解决方法也被接受为VMware 社区中的解决方案。
答案2
我这里也遇到了同样的问题。我尝试打开我的 VMWare Workstation,它要求重建:
截屏 几秒钟后,监视器和网络设备出现故障,我检查了日志,得到了与 Ryan 类似的结果。
Ubuntu 18.04 和内核 5.3.0-28-generic 在这里。
上面的 github 也可以与 VMWare Workstation 配合使用吗?-- 使用 Workstation 运行
编辑:上述脚本返回的错误与我之前遇到的错误相同,因此我最终通过升级 VMWare Workstation 使一切恢复正常运行。
下载最新的 VMware-Workstation-Full-15.5.0-14665864.x86_64.bundle 然后:
export LC_ALL=C (for 'buffer too small error')
sudo sh VMware-Workstation-Full-15.5.0-14665864.x86_64.bundle
非常有效,欢呼。