Skip to content

Instantly share code, notes, and snippets.

@PiN73
Created May 17, 2019 20:48
Show Gist options
  • Save PiN73/7a890b21f2d2dd22bdc0219b0eebc00e to your computer and use it in GitHub Desktop.
Save PiN73/7a890b21f2d2dd22bdc0219b0eebc00e to your computer and use it in GitHub Desktop.
fix: Before you can run VMware, several modules must be compiled and loaded into the running kernel.
git clone -b workstation-15.0.2 https://github.com/mkubecek/vmware-host-modules.git
cd vmware-host-modules
tar -cf vmmon.tar vmmon-only
tar -cf vmnet.tar vmnet-only
sudo cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/
sudo vmware-modconfig --console --install-all
@Gunasekaran05
Copy link

[AppLoader] GLib does not have GSettings support.

(process:3963): GLib-CRITICAL **: 09:14:28.208: g_file_test: assertion 'filename != NULL' failed
Failed to setup build environment.
I had this error message

@osvaldohdzm
Copy link

On 5.9.0-kali1-amd64, is the same:

[AppLoader] GLib does not have GSettings support.

(process:2374): GLib-CRITICAL **: 09:51:56.434: g_file_test: assertion 'filename != NULL' failed
Failed to setup build environment.

@fred-sheehan
Copy link

After running this;

git clone -b workstation-15.0.2 https://github.com/mkubecek/vmware-host-modules.git
cd vmware-host-modules
tar -cf vmmon.tar vmmon-only
tar -cf vmnet.tar vmnet-only
sudo cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/

re-install the linux headers that are needed. I'm using Arch and have the yay package manager installed, so for me is;
yay -S linux-headers

then reinstall;
sudo vmware-modconfig --console --install-all

should then complete without errors

@marques576
Copy link

marques576 commented Feb 5, 2022

If you are in arch, uninstall that version and install vmware-workstation from the aur

@steve4necson
Copy link

you are my hero

@sydasif
Copy link

sydasif commented Jul 13, 2022

its work, good and thanks

Copy link

ghost commented Sep 24, 2023

ERROR: modpost: "__pte_offset_map" [/tmp/modconfig-TK1pid/vmmon-only/vmmon.ko] undefined!
make[3]: *** [/usr/src/linux-headers-6.5.0-kali1-common/scripts/Makefile.modpost:144: /tmp/modconfig-TK1pid/vmmon-only/Module.symvers] Error 1
make[2]: *** [/usr/src/linux-headers-6.5.0-kali1-common/Makefile:2009: modpost] Error 2
make[1]: *** [/usr/src/linux-headers-6.5.0-kali1-common/Makefile:246: __sub-make] Error 2
make: *** [Makefile:117: vmmon.ko] Error 2
Using kernel build system.
Skipping BTF generation for /tmp/modconfig-TK1pid/vmnet-only/vmnet.ko due to unavailability of vmlinux
Unable to install all modules. See log for details.
......

@Sir-HatX
Copy link

Sir-HatX commented Oct 9, 2023

Getting fatal errors. Kindly assist

$ sudo vmware-modconfig --console --install-all
[AppLoader] GLib does not have GSettings support.
Stopping VMware services:
VMware Authentication Daemon done
Virtual machine monitor done
make: Entering directory '/tmp/modconfig-4bboFT/vmmon-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/6.5.0-kali2-amd64/build/include/.. M=$PWD SRCROOT=$PWD/.
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-headers-6.5.0-kali2-amd64'
CC [M] /tmp/modconfig-4bboFT/vmmon-only/linux/driver.o
CC [M] /tmp/modconfig-4bboFT/vmmon-only/linux/driverLog.o
CC [M] /tmp/modconfig-4bboFT/vmmon-only/linux/hostif.o
CC [M] /tmp/modconfig-4bboFT/vmmon-only/common/apic.o
CC [M] /tmp/modconfig-4bboFT/vmmon-only/common/comport.o
CC [M] /tmp/modconfig-4bboFT/vmmon-only/common/cpuid.o
CC [M] /tmp/modconfig-4bboFT/vmmon-only/common/memtrack.o
CC [M] /tmp/modconfig-4bboFT/vmmon-only/common/phystrack.o
In file included from /tmp/modconfig-4bboFT/vmmon-only/./include/vmware.h:37,
from /tmp/modconfig-4bboFT/vmmon-only/common/apic.c:19:
/tmp/modconfig-4bboFT/vmmon-only/./include/vm_basic_types.h:130:10: fatal error: stdint.h: No such file or directory
130 | #include <stdint.h>
| ^~~~~~~~~~
compilation terminated.
In file included from /tmp/modconfig-4bboFT/vmmon-only/common/comport.h:27,
from /tmp/modconfig-4bboFT/vmmon-only/common/comport.c:39:
/tmp/modconfig-4bboFT/vmmon-only/./include/vm_basic_types.h:130:10: fatal error: stdint.h: No such file or directory
130 | #include <stdint.h>
| ^~~~~~~~~~
compilation terminated.
make[3]: *** [/usr/src/linux-headers-6.5.0-kali2-common/scripts/Makefile.build:248: /tmp/modconfig-4bboFT/vmmon-only/common/apic.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [/usr/src/linux-headers-6.5.0-kali2-common/scripts/Makefile.build:248: /tmp/modconfig-4bboFT/vmmon-only/common/comport.o] Error 1
In file included from /tmp/modconfig-4bboFT/vmmon-only/./include/vmware.h:37,
from /tmp/modconfig-4bboFT/vmmon-only/common/cpuid.c:29:
/tmp/modconfig-4bboFT/vmmon-only/./include/vm_basic_types.h:130:10: fatal error: stdint.h: No such file or directory
130 | #include <stdint.h>
| ^~~~~~~~~~
compilation terminated.
In file included from /tmp/modconfig-4bboFT/vmmon-only/./include/vmware.h:37,
from /tmp/modconfig-4bboFT/vmmon-only/common/phystrack.c:45:
/tmp/modconfig-4bboFT/vmmon-only/./include/vm_basic_types.h:130:10: fatal error: stdint.h: No such file or directory
130 | #include <stdint.h>
| ^~~~~~~~~~
compilation terminated.
In file included from /tmp/modconfig-4bboFT/vmmon-only/./include/vmware.h:37,
from /tmp/modconfig-4bboFT/vmmon-only/common/memtrack.c:89:
/tmp/modconfig-4bboFT/vmmon-only/./include/vm_basic_types.h:130:10: fatal error: stdint.h: No such file or directory
130 | #include <stdint.h>
| ^~~~~~~~~~
compilation terminated.
make[3]: *** [/usr/src/linux-headers-6.5.0-kali2-common/scripts/Makefile.build:248: /tmp/modconfig-4bboFT/vmmon-only/common/cpuid.o] Error 1
make[3]: *** [/usr/src/linux-headers-6.5.0-kali2-common/scripts/Makefile.build:248: /tmp/modconfig-4bboFT/vmmon-only/common/memtrack.o] Error 1
make[3]: *** [/usr/src/linux-headers-6.5.0-kali2-common/scripts/Makefile.build:248: /tmp/modconfig-4bboFT/vmmon-only/common/phystrack.o] Error 1
In file included from /tmp/modconfig-4bboFT/vmmon-only/./include/vm_assert.h:43,
from /tmp/modconfig-4bboFT/vmmon-only/linux/driverLog.h:33,
from /tmp/modconfig-4bboFT/vmmon-only/linux/driverLog.c:31:
/tmp/modconfig-4bboFT/vmmon-only/./include/vm_basic_types.h:130:10: fatal error: stdint.h: No such file or directory
130 | #include <stdint.h>
| ^~~~~~~~~~
compilation terminated.
make[3]: *** [/usr/src/linux-headers-6.5.0-kali2-common/scripts/Makefile.build:248: /tmp/modconfig-4bboFT/vmmon-only/linux/driverLog.o] Error 1
In file included from /tmp/modconfig-4bboFT/vmmon-only/./include/vmware.h:37,
from /tmp/modconfig-4bboFT/vmmon-only/linux/hostif.c:58:
/tmp/modconfig-4bboFT/vmmon-only/./include/vm_basic_types.h:130:10: fatal error: stdint.h: No such file or directory
130 | #include <stdint.h>
| ^~~~~~~~~~
compilation terminated.
make[3]: *** [/usr/src/linux-headers-6.5.0-kali2-common/scripts/Makefile.build:248: /tmp/modconfig-4bboFT/vmmon-only/linux/hostif.o] Error 1
In file included from /tmp/modconfig-4bboFT/vmmon-only/./include/vmware.h:37,
from /tmp/modconfig-4bboFT/vmmon-only/linux/driver.c:45:
/tmp/modconfig-4bboFT/vmmon-only/./include/vm_basic_types.h:130:10: fatal error: stdint.h: No such file or directory
130 | #include <stdint.h>
| ^~~~~~~~~~
compilation terminated.

@0xTheFr34k
Copy link

you can use this script https://github.com/0xYtaya/vmwarerepair will automaticly repair your host modules

@clnne
Copy link

clnne commented Feb 26, 2024

you can use this script https://github.com/0xYtaya/vmwarerepair will automaticly repair your host modules

Works great! Thank you.

@tiagosilas
Copy link

you can use this script https://github.com/0xYtaya/vmwarerepair will automaticly repair your host modules
Works great! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment