I have this issue.
Install VMWare Player on Ubuntu 22.04 (kernel 5.17)
And I followed the answer provided. On the last command:
sudo vmware-modconfig --console --install-all
It fails with this:
[AppLoader] GLib does not have GSettings support. Segmentation fault
I find many repeats of this in the VMWare logs if I try to start VMWare Player and it tried to compile the modules into the Kernel:
2022-09-24T02:09:02.435Z In(05) host-5139 /tmp/modconfig-1tm6gJ/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant
2022-09-24T02:09:02.435Z In(05) host-5139 67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \
2022-09-24T02:09:02.435Z In(05) host-5139 | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2022-09-24T02:09:02.435Z In(05) host-5139 68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
2022-09-24T02:09:02.435Z In(05) host-5139 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2022-09-24T02:09:02.435Z In(05) host-5139 69 | sizeof(expr) <= 2))
2022-09-24T02:09:02.435Z In(05) host-5139 | ~~~~~~~~~~~~~~~~~~
2022-09-24T02:09:02.435Z In(05) host-5139 /tmp/modconfig-1tm6gJ/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro ‘ASSERT_ON_COMPILE’
2022-09-24T02:09:02.435Z In(05) host-5139 372 | _Static_assert(e, #e); \
2022-09-24T02:09:02.435Z In(05) host-5139 | ^
2022-09-24T02:09:02.435Z In(05) host-5139 /tmp/modconfig-1tm6gJ/vmmon-only/./include/vm_asm_x86.h:263:7: note: in expansion of macro ‘ASSERT_ON_COMPILE_SELECTOR_SIZE’
2022-09-24T02:09:02.435Z In(05) host-5139 263 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \
2022-09-24T02:09:02.435Z In(05) host-5139 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2022-09-24T02:09:02.435Z In(05) host-5139 /tmp/modconfig-1tm6gJ/vmmon-only/common/task.c:726:7: note: in expansion of macro ‘SET_TR’
2022-09-24T02:09:02.435Z In(05) host-5139 726 | SET_TR(tr);
2022-09-24T02:09:02.435Z In(05) host-5139 | ^~~~~~
What do I need to do?