поставил на ноут свежую Ubuntu
5.19.0-46-generic #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 21 15:35:31 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
поставил последний vmware player 17.0.2
при запуске ругается
Could not open /dev/vmmon: No such file or directory.
погуглил, нашел решение - тут качнуть заплату
https://github.com/mkubecek/vmware-host-modules/tagsно под player 17.0.2 файлика не оказалось
установил предыдущую версию плеера 16.5.2
скачал файлик к ней
https://github.com/mkubecek/vmware-host-modules/releases/tag/p16.2.5запаковал и положил куда написано
vmmon.tar и vmnet.tar
снова запускаю
Before you can run VMWare, several moduled must be compiled and loaded into the running kernel.
завершается ошибкой
в логах ошибки связанные с компиляцией
Fatal error: stddef.h: No such file or directory
я так понимаю не находит файл с исходников ядра, но они стоят
sudo apt install linux-headers-5.19.0-46-generic
говорит всё Ок
пробовал переустановить модули вручную
sudo vmware-modconfig --console --install-all
так же вываливается с кучей ошибок, такого же характера (Fatal error: stddef.h: No such file or directory)
Пользователь добавил сообщение 07 Июля 2023, 11:56:25:
попробовал собрать из папки - та же ошибка
cd vmware-host-modules-p-16.2.5
sudo make
make -C vmmon-only
make[1]: Entering directory '/home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only'
Using kernel build system.
make -C /lib/modules/5.19.0-46-generic/build/include/.. M=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[2]: Entering directory '/usr/src/linux-headers-5.19.0-46-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
You are using: gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
CC [M] /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/driver.o
In file included from /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/driverLog.h:33,
from /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/driver.c:46:
/home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/./include/vm_assert.h:43:10: fatal error: stdarg.h: No such file or directory
43 | #include <stdarg.h>
| ^~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:257: /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/driver.o] Error 1
make[2]: *** [Makefile:1857: /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.19.0-46-generic'
make: *** [Makefile:21: vmmon-only] Error 2re/vmware-host-modules-p16.2.5/vmmon-only'
Пользователь добавил сообщение 07 Июля 2023, 12:02:57:
явно ему указал где искать -теперь вообще хрен знает что вывалилось
sudo CPATH=/usr/src/linux-headers-5.19.0-46-generic/include/linux 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-h2IAKA/vmmon-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/5.19.0-46-generic/build/include/.. M=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-headers-5.19.0-46-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
You are using: gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
CC [M] /tmp/modconfig-h2IAKA/vmmon-only/linux/driver.o
CC [M] /tmp/modconfig-h2IAKA/vmmon-only/linux/driverLog.o
CC [M] /tmp/modconfig-h2IAKA/vmmon-only/linux/hostif.o
CC [M] /tmp/modconfig-h2IAKA/vmmon-only/common/apic.o
CC [M] /tmp/modconfig-h2IAKA/vmmon-only/common/comport.o
CC [M] /tmp/modconfig-h2IAKA/vmmon-only/common/cpuid.o
CC [M] /tmp/modconfig-h2IAKA/vmmon-only/common/crosspage.o
CC [M] /tmp/modconfig-h2IAKA/vmmon-only/common/memtrack.o
CC [M] /tmp/modconfig-h2IAKA/vmmon-only/common/moduleloop.o
CC [M] /tmp/modconfig-h2IAKA/vmmon-only/common/phystrack.o
CC [M] /tmp/modconfig-h2IAKA/vmmon-only/common/sharedAreaVmmon.o
CC [M] /tmp/modconfig-h2IAKA/vmmon-only/common/statVarsVmmon.o
CC [M] /tmp/modconfig-h2IAKA/vmmon-only/common/task.o
CC [M] /tmp/modconfig-h2IAKA/vmmon-only/common/vmx86.o
CC [M] /tmp/modconfig-h2IAKA/vmmon-only/bootstrap/bootstrap.o
CC [M] /tmp/modconfig-h2IAKA/vmmon-only/bootstrap/monLoader.o
CC [M] /tmp/modconfig-h2IAKA/vmmon-only/bootstrap/monLoaderVmmon.o
/tmp/modconfig-h2IAKA/vmmon-only/common/crosspage.o: warning: objtool: CrossPage_CodePage+0x1f7: 'naked' return found in RETHUNK build
/tmp/modconfig-h2IAKA/vmmon-only/common/crosspage.o: warning: objtool: CrossPage_CodePage+0x1f7: missing int3 after ret
CC [M] /tmp/modconfig-h2IAKA/vmmon-only/bootstrap/vmmblob.o
/tmp/modconfig-h2IAKA/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Free() falls through to next function PhysTrack_Add()
/tmp/modconfig-h2IAKA/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Add() falls through to next function PhysTrack_Remove()
/tmp/modconfig-h2IAKA/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Remove() falls through to next function PhysTrack_Test()
/tmp/modconfig-h2IAKA/vmmon-only/linux/hostif.c: In function ‘isVAReadable’:
/tmp/modconfig-h2IAKA/vmmon-only/linux/hostif.c:2363:4: error: unknown type name ‘mm_segment_t’
2363 | mm_segment_t old_fs;
| ^~~~~~~~~~~~
/tmp/modconfig-h2IAKA/vmmon-only/linux/hostif.c:2365:13: error: implicit declaration of function ‘get_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
2365 | old_fs = get_fs();
| ^~~~~~
| sget_fc
/tmp/modconfig-h2IAKA/vmmon-only/linux/hostif.c:2366:4: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
2366 | set_fs(KERNEL_DS);
| ^~~~~~
| sget_fc
/tmp/modconfig-h2IAKA/vmmon-only/linux/hostif.c:2366:11: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNEL_2_1’?
2366 | set_fs(KERNEL_DS);
| ^~~~~~~~~
| KERNEL_2_1
/tmp/modconfig-h2IAKA/vmmon-only/linux/hostif.c:2366:11: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:257: /tmp/modconfig-h2IAKA/vmmon-only/linux/hostif.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/tmp/modconfig-h2IAKA/vmmon-only/common/task.o: warning: objtool: .text: unexpected end of section
make[1]: *** [Makefile:1857: /tmp/modconfig-h2IAKA/vmmon-only] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-46-generic'
make: *** [Makefile:117: vmmon.ko] Error 2
make: Leaving directory '/tmp/modconfig-h2IAKA/vmmon-only'
make: Entering directory '/tmp/modconfig-h2IAKA/vmnet-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/5.19.0-46-generic/build/include/.. M=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-headers-5.19.0-46-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
You are using: gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
CC [M] /tmp/modconfig-h2IAKA/vmnet-only/driver.o
CC [M] /tmp/modconfig-h2IAKA/vmnet-only/hub.o
CC [M] /tmp/modconfig-h2IAKA/vmnet-only/userif.o
CC [M] /tmp/modconfig-h2IAKA/vmnet-only/netif.o
CC [M] /tmp/modconfig-h2IAKA/vmnet-only/bridge.o
CC [M] /tmp/modconfig-h2IAKA/vmnet-only/procfs.o
CC [M] /tmp/modconfig-h2IAKA/vmnet-only/smac_compat.o
CC [M] /tmp/modconfig-h2IAKA/vmnet-only/smac.o
CC [M] /tmp/modconfig-h2IAKA/vmnet-only/vnetEvent.o
CC [M] /tmp/modconfig-h2IAKA/vmnet-only/vnetUserListener.o
In file included from ./include/linux/string.h:253,
from ./include/linux/bitmap.h:11,
from ./include/linux/cpumask.h:12,
from ./arch/x86/include/asm/paravirt.h:17,
from ./arch/x86/include/asm/irqflags.h:63,
from ./include/linux/irqflags.h:16,
from ./include/linux/rcupdate.h:26,
from ./include/linux/rculist.h:11,
from ./include/linux/pid.h:5,
from ./include/linux/sched.h:14,
from /tmp/modconfig-h2IAKA/vmnet-only/netif.c:25:
/tmp/modconfig-h2IAKA/vmnet-only/netif.c: In function ‘VNetNetIf_Create’:
/tmp/modconfig-h2IAKA/vmnet-only/netif.c:256:14: warning: passing argument 1 of ‘__builtin_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
256 | memcpy(dev->dev_addr, netIf->port.paddr, sizeof netIf->port.paddr);
| ~~~^~~~~~~~~~
./include/linux/fortify-string.h:379:27: note: in definition of macro ‘__fortify_memcpy_chk’
379 | __underlying_##op(p, q, __fortify_size); \
| ^
/tmp/modconfig-h2IAKA/vmnet-only/netif.c:256:4: note: in expansion of macro ‘memcpy’
256 | memcpy(dev->dev_addr, netIf->port.paddr, sizeof netIf->port.paddr);
| ^~~~~~
/tmp/modconfig-h2IAKA/vmnet-only/netif.c:256:14: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
256 | memcpy(dev->dev_addr, netIf->port.paddr, sizeof netIf->port.paddr);
| ~~~^~~~~~~~~~
./include/linux/fortify-string.h:379:27: note: in definition of macro ‘__fortify_memcpy_chk’
379 | __underlying_##op(p, q, __fortify_size); \
| ^
/tmp/modconfig-h2IAKA/vmnet-only/netif.c:256:4: note: in expansion of macro ‘memcpy’
256 | memcpy(dev->dev_addr, netIf->port.paddr, sizeof netIf->port.paddr);
| ^~~~~~
/tmp/modconfig-h2IAKA/vmnet-only/driver.c: In function ‘VNetFileOpUnlockedIoctl’:
/tmp/modconfig-h2IAKA/vmnet-only/driver.c:966:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
966 | {
| ^
/tmp/modconfig-h2IAKA/vmnet-only/driver.c:976:4: note: here
976 | case SIOCGETAPIVERSION:
| ^~~~
/tmp/modconfig-h2IAKA/vmnet-only/netif.c: In function ‘VNetNetIfReceive’:
/tmp/modconfig-h2IAKA/vmnet-only/netif.c:348:4: error: implicit declaration of function ‘netif_rx_ni’; did you mean ‘netif_rx’? [-Werror=implicit-function-declaration]
348 | netif_rx_ni(skb);
| ^~~~~~~~~~~
| netif_rx
In file included from ./include/linux/string.h:253,
from ./include/linux/bitmap.h:11,
from ./include/linux/cpumask.h:12,
from ./arch/x86/include/asm/paravirt.h:17,
from ./arch/x86/include/asm/irqflags.h:63,
from ./include/linux/irqflags.h:16,
from ./include/linux/rcupdate.h:26,
from ./include/linux/rculist.h:11,
from ./include/linux/pid.h:5,
from ./include/linux/sched.h:14,
from /tmp/modconfig-h2IAKA/vmnet-only/netif.c:25:
/tmp/modconfig-h2IAKA/vmnet-only/netif.c: In function ‘VNetNetifSetMAC’:
/tmp/modconfig-h2IAKA/vmnet-only/netif.c:535:14: warning: passing argument 1 of ‘__builtin_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
535 | memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
| ~~~^~~~~~~~~~
./include/linux/fortify-string.h:379:27: note: in definition of macro ‘__fortify_memcpy_chk’
379 | __underlying_##op(p, q, __fortify_size); \
| ^
/tmp/modconfig-h2IAKA/vmnet-only/netif.c:535:4: note: in expansion of macro ‘memcpy’
535 | memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
| ^~~~~~
/tmp/modconfig-h2IAKA/vmnet-only/netif.c:535:14: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
535 | memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
| ~~~^~~~~~~~~~
./include/linux/fortify-string.h:379:27: note: in definition of macro ‘__fortify_memcpy_chk’
379 | __underlying_##op(p, q, __fortify_size); \
| ^
/tmp/modconfig-h2IAKA/vmnet-only/netif.c:535:4: note: in expansion of macro ‘memcpy’
535 | memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
| ^~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:257: /tmp/modconfig-h2IAKA/vmnet-only/netif.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/tmp/modconfig-h2IAKA/vmnet-only/bridge.c: In function ‘VNetBridgeReceiveFromVNet’:
/tmp/modconfig-h2IAKA/vmnet-only/bridge.c:694:10: error: implicit declaration of function ‘netif_rx_ni’; did you mean ‘netif_rx’? [-Werror=implicit-function-declaration]
694 | netif_rx_ni(clone);
| ^~~~~~~~~~~
| netif_rx
/tmp/modconfig-h2IAKA/vmnet-only/bridge.c: In function ‘VNetBridgeUp’:
/tmp/modconfig-h2IAKA/vmnet-only/bridge.c:956:47: warning: passing argument 2 of ‘SMAC_SetMac’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
956 | SMAC_SetMac(bridge->smac, bridge->dev->dev_addr);
| ~~~~~~~~~~~^~~~~~~~~~
In file included from /tmp/modconfig-h2IAKA/vmnet-only/bridge.c:54:
/tmp/modconfig-h2IAKA/vmnet-only/smac.h:75:45: note: expected ‘uint8 *’ {aka ‘unsigned char *’} but argument is of type ‘const unsigned char *’
75 | SMAC_SetMac(struct SMACState *state, uint8 *mac); // IN: state, and host MAC
| ~~~~~~~^~~
/tmp/modconfig-h2IAKA/vmnet-only/hub.c:237:24: warning: argument 1 of type ‘uint8[]’ {aka ‘unsigned char[]’} with mismatched bound [-Warray-parameter=]
237 | VNetHub_AllocPvn(uint8 id[]) // IN: the PVN ID to alloc on
| ~~~~~~^~~~
In file included from /tmp/modconfig-h2IAKA/vmnet-only/hub.c:43:
/tmp/modconfig-h2IAKA/vmnet-only/vnetInt.h:173:34: note: previously declared as ‘uint8[20]’ {aka ‘unsigned char[20]’}
173 | VNetJack *VNetHub_AllocPvn(uint8 id[VNET_PVN_ID_LEN]);
| ~~~~~~^~~~~~~~~~~~~~~~~~~
/tmp/modconfig-h2IAKA/vmnet-only/hub.c:261:20: warning: argument 3 of type ‘uint8[]’ {aka ‘unsigned char[]’} with mismatched bound [-Warray-parameter=]
261 | uint8 id[]) // IN: PVN ID to use (NULL if allocPvn == FALSE)
| ~~~~~~^~~~
/tmp/modconfig-h2IAKA/vmnet-only/hub.c:68:37: note: previously declared as ‘uint8[20]’ {aka ‘unsigned char[20]’}
68 | uint8 id[VNET_PVN_ID_LEN]);
| ~~~~~~^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:257: /tmp/modconfig-h2IAKA/vmnet-only/bridge.o] Error 1
make[1]: *** [Makefile:1857: /tmp/modconfig-h2IAKA/vmnet-only] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-46-generic'
make: *** [Makefile:117: vmnet.ko] Error 2
make: Leaving directory '/tmp/modconfig-h2IAKA/vmnet-only'
Unable to install all modules. See log for details.
Пользователь добавил сообщение 07 Июля 2023, 12:05:28:
попробовал собрать, то что скачал (заплатку для 16.2.5)
sudo CPATH=/usr/src/linux-headers-5.19.0-46-generic/include/linux make
поймал что-то подобное предыдущему запуску
make -C vmmon-only
make[1]: Entering directory '/home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only'
Using kernel build system.
make -C /lib/modules/5.19.0-46-generic/build/include/.. M=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[2]: Entering directory '/usr/src/linux-headers-5.19.0-46-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
You are using: gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
CC [M] /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/driver.o
CC [M] /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/driverLog.o
CC [M] /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/hostif.o
/home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/hostif.c: In function ‘isVAReadable’:
/home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/hostif.c:2363:4: error: unknown type name ‘mm_segment_t’
2363 | mm_segment_t old_fs;
| ^~~~~~~~~~~~
/home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/hostif.c:2365:13: error: implicit declaration of function ‘get_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
2365 | old_fs = get_fs();
| ^~~~~~
| sget_fc
/home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/hostif.c:2366:4: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
2366 | set_fs(KERNEL_DS);
| ^~~~~~
| sget_fc
/home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/hostif.c:2366:11: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNEL_2_1’?
2366 | set_fs(KERNEL_DS);
| ^~~~~~~~~
| KERNEL_2_1
/home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/hostif.c:2366:11: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:257: /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/hostif.o] Error 1
make[2]: *** [Makefile:1857: /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.19.0-46-generic'
make[1]: *** [Makefile:117: vmmon.ko] Error 2
make[1]: Leaving directory '/home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only'
make: *** [Makefile:21: vmmon-only] Error 2