VMware vmmon & vmnet 17.5.1 和 Linux 内核 6.8.0 无法编译

VMware vmmon & vmnet 17.5.1 和 Linux 内核 6.8.0 无法编译

升级到内核6.8.0后,VMware的vmmon和vmnet无法编译,出现以下错误:

   ...
   ...
/tmp/vmware-host-modules-w17.5.1/vmmon-only/common/task.c:548:1: warning: no previous prototype for ‘TaskGetFlatWriteableDataSegment’ [-Wmissing-prototypes]
  548 | TaskGetFlatWriteableDataSegment(void)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/vmware-host-modules-w17.5.1/vmmon-only/common/task.o: warning: objtool: .text: unexpected end of section
  CC [M]  /tmp/vmware-host-modules-w17.5.1/vmmon-only/common/vmx86.o
In file included from /tmp/vmware-host-modules-w17.5.1/vmmon-only/common/vmx86.c:52:
./arch/x86/include/asm/timex.h: In function ‘random_get_entropy’:
./arch/x86/include/asm/timex.h:12:24: error: implicit declaration of function ‘random_get_entropy_fallback’; did you mean ‘random_get_entropy’? [-Werror=implicit-function-declaration]
   12 |                 return random_get_entropy_fallback();
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                        random_get_entropy
   ...
   ...

答案1

姆库别切克社区论坛上针对 VMware 17.5.1 的普通补丁也无法编译。在他的网站上内核 – 6.8 已发布 – 适用于最新的 NVIDIA 和已修补的 VMware,有一个标题为的链接模块:使用 -Wmissing-prototypes 修复构建修补VMware 17.5.1,它修复了编译错误等。

点击绿色[ <> Code ]按钮,下载 zip 文件,将其解压缩到本地磁盘上的某个位置,例如/tmp/

# unzip vmware-host-modules-workstation-17.5.1.zip
# cd vmware-host-modules-workstation-17.5.1/
# make
# make install
# /etc/init.d/vmware restart
Stopping VMware services:
   VMware Authentication Daemon                                        done
   Virtual machine monitor                                             done
Starting VMware services:
   Virtual machine monitor                                             done
   Virtual machine communication interface                             done
   VM communication interface socket family                            done
   Virtual ethernet                                                    done
   VMware Authentication Daemon                                        done
   Shared Memory Available                                             done

启动VMware:

# vmware

相关内容