我正在尝试按照https://help.ubuntu.com/community/VMware/Player上的说明安装 VMware
我收到一条错误消息,提示我查看日志文件,其中包含:
Extracting the vmmon source from "/usr/lib/vmware/modules/source/vmmon.tar".
Successfully extracted the vmmon source.
Building module with command "/usr/bin/make -j4 -C /tmp/modconfig-GoVdrH/vmmon-only auto-build HEADER_DIR=/lib/modules/4.15.0-22-generic/build/include CC=/usr/bin/gcc IS_GCC_3=no"
Failed to build vmmon. Failed to execute the build command.
Run Code Online (Sandbox Code Playgroud)
为了弄清楚到底出了什么问题,我vmware-modconfig --console --install-all在命令行上运行,它显示了这些错误:
./arch/x86/include/asm/processor-flags.h:39:0: note: this is the location of the previous definition
#define CR3_PCID_MASK 0xFFFull
^
/tmp/modconfig-3S1CBa/vmmon-only/linux/driver.c:256:12: error: ‘struct timer_list’ has no member named ‘data’
tscTimer.data = 0;
unsigned int lockedPages = global_page_state(NR_PAGETABLE) +
^~~~~~~~~~~~~~~~~
global_numa_state
/tmp/modconfig-3S1CBa/vmmon-only/linux/driver.c: In function …Run Code Online (Sandbox Code Playgroud) 因为这个答案仅适用于内核 3.13,所以我想分享Failed to build vmnet内核 3.19 及更早版本的问题的解决方案。因此,这不是我的实际问题,只是为了帮助未来的读者。
当我第一次想运行 VMware Workstation 或 VMware Player 时,它需要在内核级别部署一些包,但它失败并出现这行错误。
无法构建 vmnet。无法执行构建命令。
我应该怎么做才能解决这个问题?
通过运行安装sudo ./VMware-Workstation-6.5.5-328052.x86_64.bundle成功完成。
但是,在尝试运行时vmware,会显示以下错误消息框:

单击确定然后显示另一个错误消息框:

在控制台上有以下日志:
Logging to /tmp/vmware-root/setup-15921.log
modinfo: ERROR: Module vmmon not found.
modinfo: ERROR: Module vmnet not found.
modinfo: ERROR: Module vmblock not found.
modinfo: ERROR: Module vmci not found.
filename: /lib/modules/3.13.0-43-generic/kernel/net/vmw_vsock/vsock.ko
license: GPL v2
version: 1.0.1.0-k
description: VMware Virtual Socket Family
author: VMware, Inc.
srcversion: DEF0E4AC6D739CEE581C08F
depends:
intree: Y
vermagic: 3.13.0-43-generic SMP mod_unload modversions
signer: Magrathea: Glacier signing key
sig_key: 55:AB:2F:E2:8E:D5:C6:0D:F9:58:71:50:D1:73:4C:92:0E:A7:B8:18
sig_hashalgo: sha512
modinfo: ERROR: Module vmmon not found.
modinfo: ERROR: Module vmnet …Run Code Online (Sandbox Code Playgroud)