VMware Workstation

 View Only
  • 1.  Signed Kernelmodules vmmon and vmnet not loaded.

    Posted Feb 06, 2024 12:20 PM

    I followed this https://kb.vmware.com/s/article/2146460 which seems to have worked:

     

     

    $ sudo /usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./VMware.priv ./VMware.der $(modinfo -n vmmon)
    $ sudo /usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./VMware.priv ./VMware.der $(modinfo -n vmnet)
    $ sudo mokutil --import VMware.der 
    SKIP: VMware.der is already enrolled

     

     

    but i still get:

     

     

    $sudo vmware-modconfig --console --install-all
    [AppLoader] Use shipped Linux kernel AIO access library.
    An up-to-date "libaio" or "libaio1" package from your system is preferred.
    [AppLoader] GLib does not have GSettings support.
    Stopping VMware services:
       VMware Authentication Daemon                                        done
       Virtual machine monitor                                             done
    make: Entering directory '/tmp/modconfig-sbKAju/vmmon-only'
    Using kernel build system.
    /usr/bin/make -C /lib/modules/6.1.0-1020-oem/build/include/.. M=$PWD SRCROOT=$PWD/. \
      MODULEBUILDDIR= modules
    make[1]: Entering directory '/usr/src/linux-headers-6.1.0-1020-oem'
    warning: the compiler differs from the one used to build the kernel
      The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
      You are using:           gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
      CC [M]  /tmp/modconfig-sbKAju/vmmon-only/linux/driver.o
      CC [M]  /tmp/modconfig-sbKAju/vmmon-only/linux/driverLog.o
      CC [M]  /tmp/modconfig-sbKAju/vmmon-only/linux/hostif.o
      CC [M]  /tmp/modconfig-sbKAju/vmmon-only/common/apic.o
      CC [M]  /tmp/modconfig-sbKAju/vmmon-only/common/comport.o
      CC [M]  /tmp/modconfig-sbKAju/vmmon-only/common/cpuid.o
      CC [M]  /tmp/modconfig-sbKAju/vmmon-only/common/crosspage.o
      CC [M]  /tmp/modconfig-sbKAju/vmmon-only/common/memtrack.o
      CC [M]  /tmp/modconfig-sbKAju/vmmon-only/common/moduleloop.o
      CC [M]  /tmp/modconfig-sbKAju/vmmon-only/common/phystrack.o
      CC [M]  /tmp/modconfig-sbKAju/vmmon-only/common/sharedAreaVmmon.o
      CC [M]  /tmp/modconfig-sbKAju/vmmon-only/common/statVarsVmmon.o
      CC [M]  /tmp/modconfig-sbKAju/vmmon-only/common/task.o
      CC [M]  /tmp/modconfig-sbKAju/vmmon-only/common/vmx86.o
      CC [M]  /tmp/modconfig-sbKAju/vmmon-only/bootstrap/bootstrap.o
      CC [M]  /tmp/modconfig-sbKAju/vmmon-only/bootstrap/monLoader.o
    /tmp/modconfig-sbKAju/vmmon-only/common/crosspage.o: warning: objtool: CrossPage_CodePage+0x207: 'naked' return found in RETHUNK build
    /tmp/modconfig-sbKAju/vmmon-only/common/crosspage.o: warning: objtool: CrossPage_CodePage+0x207: missing int3 after ret
      CC [M]  /tmp/modconfig-sbKAju/vmmon-only/bootstrap/monLoaderVmmon.o
      CC [M]  /tmp/modconfig-sbKAju/vmmon-only/bootstrap/vmmblob.o
    /tmp/modconfig-sbKAju/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Free() falls through to next function PhysTrack_Add()
    /tmp/modconfig-sbKAju/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Add() falls through to next function PhysTrack_Remove()
    /tmp/modconfig-sbKAju/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Remove() falls through to next function PhysTrack_Test()
    /tmp/modconfig-sbKAju/vmmon-only/common/task.o: warning: objtool: .text: unexpected end of section
      LD [M]  /tmp/modconfig-sbKAju/vmmon-only/vmmon.o
      MODPOST /tmp/modconfig-sbKAju/vmmon-only/Module.symvers
      CC [M]  /tmp/modconfig-sbKAju/vmmon-only/vmmon.mod.o
      LD [M]  /tmp/modconfig-sbKAju/vmmon-only/vmmon.ko
      BTF [M] /tmp/modconfig-sbKAju/vmmon-only/vmmon.ko
    Skipping BTF generation for /tmp/modconfig-sbKAju/vmmon-only/vmmon.ko due to unavailability of vmlinux
    make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-1020-oem'
    /usr/bin/make -C $PWD SRCROOT=$PWD/. \
      MODULEBUILDDIR= postbuild
    make[1]: Entering directory '/tmp/modconfig-sbKAju/vmmon-only'
    make[1]: 'postbuild' is up to date.
    make[1]: Leaving directory '/tmp/modconfig-sbKAju/vmmon-only'
    cp -f vmmon.ko ./../vmmon.o
    make: Leaving directory '/tmp/modconfig-sbKAju/vmmon-only'
    make: Entering directory '/tmp/modconfig-sbKAju/vmnet-only'
    Using kernel build system.
    /usr/bin/make -C /lib/modules/6.1.0-1020-oem/build/include/.. M=$PWD SRCROOT=$PWD/. \
      MODULEBUILDDIR= modules
    make[1]: Entering directory '/usr/src/linux-headers-6.1.0-1020-oem'
    warning: the compiler differs from the one used to build the kernel
      The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
      You are using:           gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
      CC [M]  /tmp/modconfig-sbKAju/vmnet-only/driver.o
      CC [M]  /tmp/modconfig-sbKAju/vmnet-only/hub.o
      CC [M]  /tmp/modconfig-sbKAju/vmnet-only/userif.o
      CC [M]  /tmp/modconfig-sbKAju/vmnet-only/netif.o
      CC [M]  /tmp/modconfig-sbKAju/vmnet-only/bridge.o
      CC [M]  /tmp/modconfig-sbKAju/vmnet-only/procfs.o
      CC [M]  /tmp/modconfig-sbKAju/vmnet-only/smac_compat.o
      CC [M]  /tmp/modconfig-sbKAju/vmnet-only/smac.o
      CC [M]  /tmp/modconfig-sbKAju/vmnet-only/vnetEvent.o
      CC [M]  /tmp/modconfig-sbKAju/vmnet-only/vnetUserListener.o
    /tmp/modconfig-sbKAju/vmnet-only/userif.o: warning: objtool: VNetCsumCopyDatagram+0x5e: call to csum_partial_copy_nocheck() with UACCESS enabled
      LD [M]  /tmp/modconfig-sbKAju/vmnet-only/vmnet.o
      MODPOST /tmp/modconfig-sbKAju/vmnet-only/Module.symvers
      CC [M]  /tmp/modconfig-sbKAju/vmnet-only/vmnet.mod.o
      LD [M]  /tmp/modconfig-sbKAju/vmnet-only/vmnet.ko
      BTF [M] /tmp/modconfig-sbKAju/vmnet-only/vmnet.ko
    Skipping BTF generation for /tmp/modconfig-sbKAju/vmnet-only/vmnet.ko due to unavailability of vmlinux
    make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-1020-oem'
    /usr/bin/make -C $PWD SRCROOT=$PWD/. \
      MODULEBUILDDIR= postbuild
    make[1]: Entering directory '/tmp/modconfig-sbKAju/vmnet-only'
    make[1]: 'postbuild' is up to date.
    make[1]: Leaving directory '/tmp/modconfig-sbKAju/vmnet-only'
    cp -f vmnet.ko ./../vmnet.o
    make: Leaving directory '/tmp/modconfig-sbKAju/vmnet-only'
    Starting VMware services:
       Virtual machine monitor                                            failed
       Virtual machine communication interface                             done
       VM communication interface socket family                            done
       Virtual ethernet                                                   failed
       VMware Authentication Daemon                                        done
    Unable to start services

     

     

    instead of vmlinux i can find vmlinuz:

     

     

    $ ls /boot/
        vmlinuz
        vmlinuz-6.1.0-1020-oem
        vmlinuz.old

     

     

    can sombody please assist me in making this work? I am using Ubuntu 22.04LTS on a T14 gen4 (AMD).



  • 2.  RE: Signed Kernelmodules vmmon and vmnet not loaded.

    Posted Feb 07, 2024 10:55 AM

    It has to be done the other way around:

    sudo vmware-modconfig --console --install-all

    BEFORE doing the all steps specified in the https://kb.vmware.com/s/article/2146460

    The build of both vmmon and vmmnet were successful that is why the start of the services were attempted but failed because the new keys were not generated and enrolled.



  • 3.  RE: Signed Kernelmodules vmmon and vmnet not loaded.

    Posted Feb 07, 2024 11:14 AM

    I did it the other way around. The mistake was to rerun it after signing to check if something had changed. That changed the modules hence they could not be loaded.

    Thanks for answering me