bytium / vm-host-modules

Vmware Host Module.
GNU General Public License v2.0
68 stars 5 forks source link

Fedora 40, kernel 6.11.5, Unable to stop services #10

Open digital-cowboy-91 opened 3 weeks ago

digital-cowboy-91 commented 3 weeks ago

Hi, no matter what I try, the installation always fails with the same message 'Unable to stop services'. See the install steps:

root@v3:/home/dcb/Downloads# ./VMware-Workstation-Full-17.6.1-24319023.x86_64.bundle 
Extracting VMware Installer...done.
Installing VMware Workstation 17.6.1
    Configuring...
[######################################################################] 100%
Installation was successful.
root@v3:/home/dcb/Downloads# git clone https://github.com/bytium/vm-host-modules.git
Cloning into 'vm-host-modules'...
remote: Enumerating objects: 1241, done.
remote: Counting objects: 100% (1241/1241), done.
remote: Compressing objects: 100% (360/360), done.
remote: Total 1241 (delta 931), reused 1182 (delta 876), pack-reused 0 (from 0)
Receiving objects: 100% (1241/1241), 1.02 MiB | 7.38 MiB/s, done.
Resolving deltas: 100% (931/931), done.
root@v3:/home/dcb/Downloads# cd vm-host-modules
root@v3:/home/dcb/Downloads/vm-host-modules# git checkout 17.6.1
branch '17.6.1' set up to track 'origin/17.6.1'.
Switched to a new branch '17.6.1'
root@v3:/home/dcb/Downloads/vm-host-modules# make
make -C vmmon-only 
make[1]: Entering directory '/home/dcb/Downloads/vm-host-modules/vmmon-only'
Using kernel build system.
make -C /lib/modules/6.11.5-200.fc40.x86_64/build/include/.. M=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[2]: Entering directory '/usr/src/kernels/6.11.5-200.fc40.x86_64'
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/linux/driver.o
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/linux/driverLog.o
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/linux/hostif.o
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/common/apic.o
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/common/comport.o
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/common/cpuid.o
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/common/crosspage.o
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/common/memtrack.o
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/common/moduleloop.o
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/common/phystrack.o
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/common/sharedAreaVmmon.o
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/common/statVarsVmmon.o
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/common/task.o
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/common/vmx86.o
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/bootstrap/bootstrap.o
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/bootstrap/monLoader.o
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/bootstrap/monLoaderVmmon.o
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/bootstrap/vmmblob.o
  LD [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/vmmon.o
  MODPOST /home/dcb/Downloads/vm-host-modules/vmmon-only/Module.symvers
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/vmmon.mod.o
  LD [M]  /home/dcb/Downloads/vm-host-modules/vmmon-only/vmmon.ko
  BTF [M] /home/dcb/Downloads/vm-host-modules/vmmon-only/vmmon.ko
Skipping BTF generation for /home/dcb/Downloads/vm-host-modules/vmmon-only/vmmon.ko due to unavailability of vmlinux
make[2]: Leaving directory '/usr/src/kernels/6.11.5-200.fc40.x86_64'
make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= postbuild
make[2]: Entering directory '/home/dcb/Downloads/vm-host-modules/vmmon-only'
make[2]: 'postbuild' is up to date.
make[2]: Leaving directory '/home/dcb/Downloads/vm-host-modules/vmmon-only'
cp -f vmmon.ko ./../vmmon.o
make[1]: Leaving directory '/home/dcb/Downloads/vm-host-modules/vmmon-only'
make -C vmnet-only 
make[1]: Entering directory '/home/dcb/Downloads/vm-host-modules/vmnet-only'
Using kernel build system.
make -C /lib/modules/6.11.5-200.fc40.x86_64/build/include/.. M=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[2]: Entering directory '/usr/src/kernels/6.11.5-200.fc40.x86_64'
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmnet-only/driver.o
In file included from /home/dcb/Downloads/vm-host-modules/vmnet-only/driver.c:49:
/home/dcb/Downloads/vm-host-modules/vmnet-only/vnetInt.h:50:9: warning: "MAX" redefined
   50 | #define MAX(_a, _b)   (((_a) > (_b)) ? (_a) : (_b))
      |         ^~~
In file included from ./include/linux/kernel.h:28,
                 from /home/dcb/Downloads/vm-host-modules/vmnet-only/driver.c:24:
./include/linux/minmax.h:330:9: note: this is the location of the previous definition
  330 | #define MAX(a,b) __cmp(max,a,b)
      |         ^~~
/home/dcb/Downloads/vm-host-modules/vmnet-only/driver.c:288:1: warning: no previous prototype for ‘LinuxDriverInit’ [-Wmissing-prototypes]
  288 | LinuxDriverInit(void)
      | ^~~~~~~~~~~~~~~
/home/dcb/Downloads/vm-host-modules/vmnet-only/driver.c:367:1: warning: no previous prototype for ‘LinuxDriverExit’ [-Wmissing-prototypes]
  367 | LinuxDriverExit(void)
      | ^~~~~~~~~~~~~~~
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmnet-only/hub.o
In file included from /home/dcb/Downloads/vm-host-modules/vmnet-only/hub.c:43:
/home/dcb/Downloads/vm-host-modules/vmnet-only/vnetInt.h:50:9: warning: "MAX" redefined
   50 | #define MAX(_a, _b)   (((_a) > (_b)) ? (_a) : (_b))
      |         ^~~
In file included from ./include/linux/kernel.h:28,
                 from /home/dcb/Downloads/vm-host-modules/vmnet-only/hub.c:23:
./include/linux/minmax.h:330:9: note: this is the location of the previous definition
  330 | #define MAX(a,b) __cmp(max,a,b)
      |         ^~~
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmnet-only/userif.o
In file included from /home/dcb/Downloads/vm-host-modules/vmnet-only/userif.c:46:
/home/dcb/Downloads/vm-host-modules/vmnet-only/vnetInt.h:50:9: warning: "MAX" redefined
   50 | #define MAX(_a, _b)   (((_a) > (_b)) ? (_a) : (_b))
      |         ^~~
In file included from ./include/linux/kernel.h:28,
                 from ./include/linux/cpumask.h:11,
                 from ./arch/x86/include/asm/paravirt.h:21,
                 from ./arch/x86/include/asm/irqflags.h:80,
                 from ./include/linux/irqflags.h:18,
                 from ./include/linux/spinlock.h:59,
                 from ./include/linux/wait.h:9,
                 from ./include/linux/wait_bit.h:8,
                 from ./include/linux/fs.h:6,
                 from ./include/linux/highmem.h:5,
                 from /home/dcb/Downloads/vm-host-modules/vmnet-only/userif.c:26:
./include/linux/minmax.h:330:9: note: this is the location of the previous definition
  330 | #define MAX(a,b) __cmp(max,a,b)
      |         ^~~
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmnet-only/netif.o
In file included from /home/dcb/Downloads/vm-host-modules/vmnet-only/netif.c:43:
/home/dcb/Downloads/vm-host-modules/vmnet-only/vnetInt.h:50:9: warning: "MAX" redefined
   50 | #define MAX(_a, _b)   (((_a) > (_b)) ? (_a) : (_b))
      |         ^~~
In file included from ./include/linux/kernel.h:28,
                 from /home/dcb/Downloads/vm-host-modules/vmnet-only/netif.c:23:
./include/linux/minmax.h:330:9: note: this is the location of the previous definition
  330 | #define MAX(a,b) __cmp(max,a,b)
      |         ^~~
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmnet-only/bridge.o
In file included from /home/dcb/Downloads/vm-host-modules/vmnet-only/bridge.c:58:
/home/dcb/Downloads/vm-host-modules/vmnet-only/vnetInt.h:50:9: warning: "MAX" redefined
   50 | #define MAX(_a, _b)   (((_a) > (_b)) ? (_a) : (_b))
      |         ^~~
In file included from ./include/linux/kernel.h:28,
                 from /home/dcb/Downloads/vm-host-modules/vmnet-only/bridge.c:24:
./include/linux/minmax.h:330:9: note: this is the location of the previous definition
  330 | #define MAX(a,b) __cmp(max,a,b)
      |         ^~~
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmnet-only/procfs.o
In file included from /home/dcb/Downloads/vm-host-modules/vmnet-only/procfs.c:43:
/home/dcb/Downloads/vm-host-modules/vmnet-only/vnetInt.h:50:9: warning: "MAX" redefined
   50 | #define MAX(_a, _b)   (((_a) > (_b)) ? (_a) : (_b))
      |         ^~~
In file included from ./include/linux/kernel.h:28,
                 from /home/dcb/Downloads/vm-host-modules/vmnet-only/procfs.c:23:
./include/linux/minmax.h:330:9: note: this is the location of the previous definition
  330 | #define MAX(a,b) __cmp(max,a,b)
      |         ^~~
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmnet-only/smac_compat.o
In file included from /home/dcb/Downloads/vm-host-modules/vmnet-only/smac_compat.c:53:
/home/dcb/Downloads/vm-host-modules/vmnet-only/vnetInt.h:50:9: warning: "MAX" redefined
   50 | #define MAX(_a, _b)   (((_a) > (_b)) ? (_a) : (_b))
      |         ^~~
In file included from ./include/linux/kernel.h:28,
                 from /home/dcb/Downloads/vm-host-modules/vmnet-only/smac_compat.c:33:
./include/linux/minmax.h:330:9: note: this is the location of the previous definition
  330 | #define MAX(a,b) __cmp(max,a,b)
      |         ^~~
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmnet-only/smac.o
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmnet-only/vnetEvent.o
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmnet-only/vnetUserListener.o
In file included from /home/dcb/Downloads/vm-host-modules/vmnet-only/vnetUserListener.c:39:
/home/dcb/Downloads/vm-host-modules/vmnet-only/vnetInt.h:50:9: warning: "MAX" redefined
   50 | #define MAX(_a, _b)   (((_a) > (_b)) ? (_a) : (_b))
      |         ^~~
In file included from ./include/linux/jiffies.h:8,
                 from ./include/linux/ktime.h:25,
                 from ./include/linux/timer.h:6,
                 from ./include/linux/netdevice.h:24,
                 from /home/dcb/Downloads/vm-host-modules/vmnet-only/vnetUserListener.c:33:
./include/linux/minmax.h:330:9: note: this is the location of the previous definition
  330 | #define MAX(a,b) __cmp(max,a,b)
      |         ^~~
  LD [M]  /home/dcb/Downloads/vm-host-modules/vmnet-only/vmnet.o
/home/dcb/Downloads/vm-host-modules/vmnet-only/vmnet.o: warning: objtool: VNetCsumCopyDatagram+0x52: call to csum_partial_copy_nocheck() with UACCESS enabled
  MODPOST /home/dcb/Downloads/vm-host-modules/vmnet-only/Module.symvers
  CC [M]  /home/dcb/Downloads/vm-host-modules/vmnet-only/vmnet.mod.o
  LD [M]  /home/dcb/Downloads/vm-host-modules/vmnet-only/vmnet.ko
  BTF [M] /home/dcb/Downloads/vm-host-modules/vmnet-only/vmnet.ko
Skipping BTF generation for /home/dcb/Downloads/vm-host-modules/vmnet-only/vmnet.ko due to unavailability of vmlinux
make[2]: Leaving directory '/usr/src/kernels/6.11.5-200.fc40.x86_64'
make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= postbuild
make[2]: Entering directory '/home/dcb/Downloads/vm-host-modules/vmnet-only'
make[2]: 'postbuild' is up to date.
make[2]: Leaving directory '/home/dcb/Downloads/vm-host-modules/vmnet-only'
cp -f vmnet.ko ./../vmnet.o
make[1]: Leaving directory '/home/dcb/Downloads/vm-host-modules/vmnet-only'
git archive -o vmmon.tar --format=tar HEAD vmmon-only
git archive -o vmnet.tar --format=tar HEAD vmnet-only
root@v3:/home/dcb/Downloads/vm-host-modules# sudo make install
Copying tarballs to /usr/lib/vmware/modules/source...
sudo cp vmmon.tar vmnet.tar /usr/lib/vmware/modules/source
Rebuilding VMware modules...
sudo vmware-modconfig --console --install-all
[AppLoader] GLib does not have GSettings support.
sh: line 1: /etc/rc.d/init.d/vmware: No such file or directory
Unable to stop services
make: *** [Makefile:49: vmware-rebuild] Error 1
root@v3:/home/dcb/Downloads/vm-host-modules# 
bytium commented 2 weeks ago

Tested in Debian image

Kernel 6.11.5. Worked without any issues! You can try it with a fresh install!

digital-cowboy-91 commented 2 weeks ago

Hi, Fedora is not Debian based, so your answer is not very helpful in this thread.