Vmware内核编译失败

Vmware内核编译失败

今天更新了Fedora的kernel,版本号为5.0.3-200.fc29.x86_64,Vmware Workstation版本号为15.0.3。每次更新kernel后用Vmware Workstation都要重新编译内核才能使用,可这次编译失败了。

查看log

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
2019-03-29T20:25:36.780+08:00| host-17899| I125: Log for VMware Workstation pid=17899 version=15.0.3 build=build-12422535 option=Release
2019-03-29T20:25:36.780+08:00| host-17899| I125: The process is 64-bit.
2019-03-29T20:25:36.780+08:00| host-17899| I125: Host codepage=UTF-8 encoding=UTF-8
2019-03-29T20:25:36.780+08:00| host-17899| I125: Host is Linux 5.0.3-200.fc29.x86_64 Fedora release 29 (Twenty Nine)
2019-03-29T20:25:36.779+08:00| host-17899| I125: DictionaryLoad: Cannot open file "/usr/lib/vmware/settings": No such file or directory.
2019-03-29T20:25:36.779+08:00| host-17899| I125: [msg.dictionary.load.openFailed] Cannot open file "/usr/lib/vmware/settings": No such file or directory.
2019-03-29T20:25:36.779+08:00| host-17899| I125: PREF Optional preferences file not found at /usr/lib/vmware/settings. Using default values.
2019-03-29T20:25:36.779+08:00| host-17899| I125: DictionaryLoad: Cannot open file "/home/Jun/.vmware/config": No such file or directory.
2019-03-29T20:25:36.779+08:00| host-17899| I125: [msg.dictionary.load.openFailed] Cannot open file "/home/Jun/.vmware/config": No such file or directory.
2019-03-29T20:25:36.779+08:00| host-17899| I125: PREF Optional preferences file not found at /home/Jun/.vmware/config. Using default values.
2019-03-29T20:25:36.794+08:00| host-17899| W115: Logging to /tmp/vmware-root/vmware-17899.log
2019-03-29T20:25:36.816+08:00| host-17899| I125: Obtaining info using the running kernel.
2019-03-29T20:25:36.816+08:00| host-17899| I125: Created new pathsHash.
2019-03-29T20:25:36.816+08:00| host-17899| I125: Setting header path for 5.0.3-200.fc29.x86_64 to "/lib/modules/5.0.3-200.fc29.x86_64/build/include".
2019-03-29T20:25:36.816+08:00| host-17899| I125: Validating path "/lib/modules/5.0.3-200.fc29.x86_64/build/include" for kernel release "5.0.3-200.fc29.x86_64".
2019-03-29T20:25:36.816+08:00| host-17899| I125: Failed to find /lib/modules/5.0.3-200.fc29.x86_64/build/include/linux/version.h
2019-03-29T20:25:36.816+08:00| host-17899| I125: /lib/modules/5.0.3-200.fc29.x86_64/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2019-03-29T20:25:36.816+08:00| host-17899| I125: using /usr/bin/gcc for preprocess check
2019-03-29T20:25:36.824+08:00| host-17899| I125: Preprocessed UTS_RELEASE, got value "5.0.3-200.fc29.x86_64".
2019-03-29T20:25:36.824+08:00| host-17899| I125: The header path "/lib/modules/5.0.3-200.fc29.x86_64/build/include" for the kernel "5.0.3-200.fc29.x86_64" is valid. Whoohoo!
2019-03-29T20:25:37.115+08:00| host-17899| I125: found symbol version file /lib/modules/5.0.3-200.fc29.x86_64/build/Module.symvers
2019-03-29T20:25:37.115+08:00| host-17899| I125: Reading symbol versions from /lib/modules/5.0.3-200.fc29.x86_64/build/Module.symvers.
2019-03-29T20:25:37.138+08:00| host-17899| I125: Read 20627 symbol versions
2019-03-29T20:25:37.138+08:00| host-17899| I125: Reading in info for the vmmon module.
2019-03-29T20:25:37.138+08:00| host-17899| I125: Reading in info for the vmnet module.
2019-03-29T20:25:37.138+08:00| host-17899| I125: Reading in info for the vmci module.
2019-03-29T20:25:37.138+08:00| host-17899| I125: Reading in info for the vsock module.
2019-03-29T20:25:37.138+08:00| host-17899| I125: Setting vsock to depend on vmci.
2019-03-29T20:25:37.138+08:00| host-17899| I125: Invoking modinfo on "vmmon".
2019-03-29T20:25:37.141+08:00| host-17899| I125: "/sbin/modinfo" exited with status 256.
2019-03-29T20:25:37.141+08:00| host-17899| I125: Invoking modinfo on "vmnet".
2019-03-29T20:25:37.144+08:00| host-17899| I125: "/sbin/modinfo" exited with status 256.
2019-03-29T20:25:37.144+08:00| host-17899| I125: Invoking modinfo on "vmci".
2019-03-29T20:25:37.147+08:00| host-17899| I125: "/sbin/modinfo" exited with status 256.
2019-03-29T20:25:37.147+08:00| host-17899| I125: Invoking modinfo on "vsock".
2019-03-29T20:25:37.151+08:00| host-17899| I125: "/sbin/modinfo" exited with status 0.
2019-03-29T20:25:37.165+08:00| host-17899| I125: to be installed: vmmon status: 0
2019-03-29T20:25:37.165+08:00| host-17899| I125: to be installed: vmnet status: 0
2019-03-29T20:25:37.181+08:00| host-17899| I125: Obtaining info using the running kernel.
2019-03-29T20:25:37.181+08:00| host-17899| I125: Setting header path for 5.0.3-200.fc29.x86_64 to "/lib/modules/5.0.3-200.fc29.x86_64/build/include".
2019-03-29T20:25:37.181+08:00| host-17899| I125: Validating path "/lib/modules/5.0.3-200.fc29.x86_64/build/include" for kernel release "5.0.3-200.fc29.x86_64".
2019-03-29T20:25:37.181+08:00| host-17899| I125: Failed to find /lib/modules/5.0.3-200.fc29.x86_64/build/include/linux/version.h
2019-03-29T20:25:37.181+08:00| host-17899| I125: /lib/modules/5.0.3-200.fc29.x86_64/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2019-03-29T20:25:37.181+08:00| host-17899| I125: using /usr/bin/gcc for preprocess check
2019-03-29T20:25:37.189+08:00| host-17899| I125: Preprocessed UTS_RELEASE, got value "5.0.3-200.fc29.x86_64".
2019-03-29T20:25:37.189+08:00| host-17899| I125: The header path "/lib/modules/5.0.3-200.fc29.x86_64/build/include" for the kernel "5.0.3-200.fc29.x86_64" is valid. Whoohoo!
2019-03-29T20:25:37.485+08:00| host-17899| I125: found symbol version file /lib/modules/5.0.3-200.fc29.x86_64/build/Module.symvers
2019-03-29T20:25:37.486+08:00| host-17899| I125: Reading symbol versions from /lib/modules/5.0.3-200.fc29.x86_64/build/Module.symvers.
2019-03-29T20:25:37.506+08:00| host-17899| I125: Read 20627 symbol versions
2019-03-29T20:25:37.510+08:00| host-17899| I125: Kernel header path retrieved from FileEntry: /lib/modules/5.0.3-200.fc29.x86_64/build/include
2019-03-29T20:25:37.510+08:00| host-17899| I125: Update kernel header path to /lib/modules/5.0.3-200.fc29.x86_64/build/include
2019-03-29T20:25:37.510+08:00| host-17899| I125: Validating path "/lib/modules/5.0.3-200.fc29.x86_64/build/include" for kernel release "5.0.3-200.fc29.x86_64".
2019-03-29T20:25:37.510+08:00| host-17899| I125: Failed to find /lib/modules/5.0.3-200.fc29.x86_64/build/include/linux/version.h
2019-03-29T20:25:37.510+08:00| host-17899| I125: /lib/modules/5.0.3-200.fc29.x86_64/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2019-03-29T20:25:37.510+08:00| host-17899| I125: using /usr/bin/gcc for preprocess check
2019-03-29T20:25:37.518+08:00| host-17899| I125: Preprocessed UTS_RELEASE, got value "5.0.3-200.fc29.x86_64".
2019-03-29T20:25:37.518+08:00| host-17899| I125: The header path "/lib/modules/5.0.3-200.fc29.x86_64/build/include" for the kernel "5.0.3-200.fc29.x86_64" is valid. Whoohoo!
2019-03-29T20:25:37.520+08:00| host-17899| I125: Found compiler at "/usr/bin/gcc"
2019-03-29T20:25:37.525+08:00| host-17899| I125: Got gcc version "8".
2019-03-29T20:25:37.525+08:00| host-17899| I125: The GCC version matches the kernel GCC minor version like a glove.
2019-03-29T20:25:37.529+08:00| host-17899| I125: Got gcc version "8".
2019-03-29T20:25:37.529+08:00| host-17899| I125: The GCC version matches the kernel GCC minor version like a glove.
2019-03-29T20:25:37.532+08:00| host-17899| I125: Trying to find a suitable PBM set for kernel "5.0.3-200.fc29.x86_64".
2019-03-29T20:25:37.532+08:00| host-17899| I125: No matching PBM set was found for kernel "5.0.3-200.fc29.x86_64".
2019-03-29T20:25:37.532+08:00| host-17899| I125: The GCC version matches the kernel GCC minor version like a glove.
2019-03-29T20:25:37.532+08:00| host-17899| I125: Validating path "/lib/modules/5.0.3-200.fc29.x86_64/build/include" for kernel release "5.0.3-200.fc29.x86_64".
2019-03-29T20:25:37.532+08:00| host-17899| I125: Failed to find /lib/modules/5.0.3-200.fc29.x86_64/build/include/linux/version.h
2019-03-29T20:25:37.532+08:00| host-17899| I125: /lib/modules/5.0.3-200.fc29.x86_64/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2019-03-29T20:25:37.532+08:00| host-17899| I125: using /usr/bin/gcc for preprocess check
2019-03-29T20:25:37.540+08:00| host-17899| I125: Preprocessed UTS_RELEASE, got value "5.0.3-200.fc29.x86_64".
2019-03-29T20:25:37.540+08:00| host-17899| I125: The header path "/lib/modules/5.0.3-200.fc29.x86_64/build/include" for the kernel "5.0.3-200.fc29.x86_64" is valid. Whoohoo!
2019-03-29T20:25:37.547+08:00| host-17899| I125: The GCC version matches the kernel GCC minor version like a glove.
2019-03-29T20:25:37.547+08:00| host-17899| I125: Validating path "/lib/modules/5.0.3-200.fc29.x86_64/build/include" for kernel release "5.0.3-200.fc29.x86_64".
2019-03-29T20:25:37.547+08:00| host-17899| I125: Failed to find /lib/modules/5.0.3-200.fc29.x86_64/build/include/linux/version.h
2019-03-29T20:25:37.547+08:00| host-17899| I125: /lib/modules/5.0.3-200.fc29.x86_64/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2019-03-29T20:25:37.547+08:00| host-17899| I125: using /usr/bin/gcc for preprocess check
2019-03-29T20:25:37.555+08:00| host-17899| I125: Preprocessed UTS_RELEASE, got value "5.0.3-200.fc29.x86_64".
2019-03-29T20:25:37.555+08:00| host-17899| I125: The header path "/lib/modules/5.0.3-200.fc29.x86_64/build/include" for the kernel "5.0.3-200.fc29.x86_64" is valid. Whoohoo!
2019-03-29T20:25:37.556+08:00| host-17899| I125: Using temp dir "/tmp".
2019-03-29T20:25:37.559+08:00| host-17899| I125: Obtaining info using the running kernel.
2019-03-29T20:25:37.559+08:00| host-17899| I125: Setting header path for 5.0.3-200.fc29.x86_64 to "/lib/modules/5.0.3-200.fc29.x86_64/build/include".
2019-03-29T20:25:37.559+08:00| host-17899| I125: Validating path "/lib/modules/5.0.3-200.fc29.x86_64/build/include" for kernel release "5.0.3-200.fc29.x86_64".
2019-03-29T20:25:37.559+08:00| host-17899| I125: Failed to find /lib/modules/5.0.3-200.fc29.x86_64/build/include/linux/version.h
2019-03-29T20:25:37.559+08:00| host-17899| I125: /lib/modules/5.0.3-200.fc29.x86_64/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2019-03-29T20:25:37.559+08:00| host-17899| I125: using /usr/bin/gcc for preprocess check
2019-03-29T20:25:37.567+08:00| host-17899| I125: Preprocessed UTS_RELEASE, got value "5.0.3-200.fc29.x86_64".
2019-03-29T20:25:37.567+08:00| host-17899| I125: The header path "/lib/modules/5.0.3-200.fc29.x86_64/build/include" for the kernel "5.0.3-200.fc29.x86_64" is valid. Whoohoo!
2019-03-29T20:25:37.861+08:00| host-17899| I125: found symbol version file /lib/modules/5.0.3-200.fc29.x86_64/build/Module.symvers
2019-03-29T20:25:37.861+08:00| host-17899| I125: Reading symbol versions from /lib/modules/5.0.3-200.fc29.x86_64/build/Module.symvers.
2019-03-29T20:25:37.882+08:00| host-17899| I125: Read 20627 symbol versions
2019-03-29T20:25:37.882+08:00| host-17899| I125: Invoking modinfo on "vmmon".
2019-03-29T20:25:37.885+08:00| host-17899| I125: "/sbin/modinfo" exited with status 256.
2019-03-29T20:25:37.885+08:00| host-17899| I125: Invoking modinfo on "vmnet".
2019-03-29T20:25:37.888+08:00| host-17899| I125: "/sbin/modinfo" exited with status 256.
2019-03-29T20:25:37.974+08:00| host-17899| I125: Setting destination path for vmmon to "/lib/modules/5.0.3-200.fc29.x86_64/misc/vmmon.ko".
2019-03-29T20:25:37.974+08:00| host-17899| I125: Extracting the vmmon source from "/usr/lib/vmware/modules/source/vmmon.tar".
2019-03-29T20:25:37.987+08:00| host-17899| I125: Successfully extracted the vmmon source.
2019-03-29T20:25:37.988+08:00| host-17899| I125: Building module with command "/usr/bin/make -j4 -C /tmp/modconfig-5uwdM4/vmmon-only auto-build HEADER_DIR=/lib/modules/5.0.3-200.fc29.x86_64/build/include CC=/usr/bin/gcc IS_GCC_3=no"
2019-03-29T20:25:40.335+08:00| host-17899| W115: Failed to build vmmon. Failed to execute the build command.
2019-03-29T20:25:40.337+08:00| host-17899| I125: Setting destination path for vmnet to "/lib/modules/5.0.3-200.fc29.x86_64/misc/vmnet.ko".
2019-03-29T20:25:40.337+08:00| host-17899| I125: Extracting the vmnet source from "/usr/lib/vmware/modules/source/vmnet.tar".
2019-03-29T20:25:40.344+08:00| host-17899| I125: Successfully extracted the vmnet source.
2019-03-29T20:25:40.344+08:00| host-17899| I125: Building module with command "/usr/bin/make -j4 -C /tmp/modconfig-5uwdM4/vmnet-only auto-build HEADER_DIR=/lib/modules/5.0.3-200.fc29.x86_64/build/include CC=/usr/bin/gcc IS_GCC_3=no"
2019-03-29T20:25:42.697+08:00| host-17899| W115: Failed to build vmnet. Failed to execute the build command.

解决方法

在github上的一个repositorie是给vmware打补丁的,mkubecek/vmware-host-modules

  1. 先克隆下来

    1
    2
    3
    4
    5
    6
    # workstation 15.0.3
    git clone https://github.com/mkubecek/vmware-host-modules.git -b 'workstation-15.0.3'
    # or player, use this
    git clone https://github.com/mkubecek/vmware-host-modules.git -b 'player-<version>'
    # other version, like this
    git clone https://github.com/mkubecek/vmware-host-modules.git -b 'workstation-<version>'
  2. 编译并安装

    1
    2
    3
    cd vmware-host-modules
    make
    make install
  3. 安装完后运行Vmware workstation,让它删除旧模组后重新启动服务就OK了。

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×