VMware Communities
masafumiohta
Contributor
Contributor

VMware Workstation Pro 16.1.0 doesnt complie vmmon and vmnet on CentOS Fusion 8(kernel 4.18.0-257)


I have updated from CentOS 8 to CentOS 8 stream, but I cannot compile vmmon and vmnet so VMware Workstation won't work.

Checking the message it is caused by totalram_pages

2020-12-12T10:59:17.345+09:00| host-4007| I005: /tmp/modconfig-Bn63vh/vmmon-only/linux/hostif.c: 関数 ‘HostIF_EstimateLockedPageLimit’ 内:
2020-12-12T10:59:17.345+09:00| host-4007| I005: /tmp/modconfig-Bn63vh/vmmon-only/linux/hostif.c:1683:25: エラー: ‘totalram_pages’ が異なる種類のシンボルとして再宣言されました
2020-12-12T10:59:17.345+09:00| host-4007| I005: extern unsigned long totalram_pages;
2020-12-12T10:59:17.345+09:00| host-4007| I005: ^~~~~~~~~~~~~~
2020-12-12T10:59:17.345+09:00| host-4007| I005: In file included from ./include/drm-backport/linux/mm.h:12,
2020-12-12T10:59:17.345+09:00| host-4007| I005: from /tmp/modconfig-Bn63vh/vmmon-only/linux/hostif.c:42:
2020-12-12T10:59:17.345+09:00| host-4007| I005: ./include/linux/mm.h:56:29: 備考: 前の ‘totalram_pages’ の宣言はここです
2020-12-12T10:59:17.345+09:00| host-4007| I005: static inline unsigned long totalram_pages(void)
2020-12-12T10:59:17.345+09:00| host-4007| I005: ^~~~~~~~~~~~~~
2020-12-12T10:59:17.345+09:00| host-4007| I005: make[2]: *** [scripts/Makefile.build:315: /tmp/modconfig-Bn63vh/vmmon-only/linux/hostif.o] エラー 1

Checking the 16.1.0 patch by mkubecek, it is same....

/home/may/vmware-host-modules-w16.1.0/vmmon-only/linux/hostif.c: In function 'HostIF_EstimateLockedPageLimit':
/home/may/vmware-host-modules-w16.1.0/vmmon-only/linux/hostif.c:1683:25: error: 'totalram_pages' redeclared as different kind of symbol
extern unsigned long totalram_pages;
^~~~~~~~~~~~~~
In file included from ./include/drm-backport/linux/mm.h:12,
from /home/may/vmware-host-modules-w16.1.0/vmmon-only/linux/hostif.c:42:
./include/linux/mm.h:56:29: note: previous definition of 'totalram_pages' was here
static inline unsigned long totalram_pages(void)
^~~~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:316: /home/may/vmware-host-modules-w16.1.0/vmmon-only/linux/hostif.o] Error 1
make[2]: *** [Makefile:1545: _module_/home/may/vmware-host-modules-w16.1.0/vmmon-only] Error 2
make[2]: Leaving directory '/usr/src/kernels/4.18.0-257.el8.x86_64'
make[1]: *** [Makefile:117: vmmon.ko] Error 2
make[1]: Leaving directory '/home/may/vmware-host-modules-w16.1.0/vmmon-only'
make: *** [Makefile:21: vmmon-only] Error 2

if any ideas/thoughts/advice please let me know.

Masafumi Ohta mail to colon masafumi atmark pid zero dot orgdomain (to prevent from spam sorry) https://masafumi.me
Labels (1)
Reply
0 Kudos
26 Replies
gurutech1
Contributor
Contributor

No, it hasn't.  I clicked the update without reading what it was, and screwed up my install.  Going to try this fix now (for like the 5th time!)

Reply
0 Kudos
MarkLG
Contributor
Contributor

@gurutech1, were you able to get it fixed with 16.2.0?

 

Regards,

Mark

Reply
0 Kudos
rhernandezscat
Contributor
Contributor

Hola / Hello

Una disculpa. / I'm sorry.

Comparto los archivos para la nueva versión / .Shared files to the new version.

VMware Workstation 16.2.1 build-18811642
Centos: 8
Kernel versión: 4.18.0.

Copy files to /usr/lib/vmware/modules/source

https://www.mediafire.com/folder/dfhbqtktaz3rj/Workstation_16.2.1_Centos8

 

Modifique los archivo originales, solamente agregue ifelse, para cargar las librerias correctas.
Modify the original files, just add if else, to load the correct libraries.

Reply
0 Kudos
MarkLG
Contributor
Contributor

I got them from github

https://codeload.github.com/mkubecek/vmware-host-modules/zip/refs/heads/workstation-16.2.1

Is that the same or different?

Regards,

Mark

Reply
0 Kudos
rhernandezscat
Contributor
Contributor

The definition is similar.

But it puts additional variables, well at least of the 2 files that I modify.

Definition: __RHEL_OBJTOOL_H_HAC
Definition: __RHEL_PAGE_ACCT_HACK

From what I saw quickly, of the two files, only the way of programming and defining variables changes. Do not check if you made any changes to the other files.

In my case add IFELSE and modify an IF.

In short, the two are valid and similar.

Reply
0 Kudos
asef23
Contributor
Contributor

Thank bro, it's work to me

 

Reply
0 Kudos
gilig24853
Contributor
Contributor

Reply
0 Kudos