11 Replies Latest reply on Aug 24, 2020 7:02 AM by ShuDen

    VMWare Workstation 15.5.1 on Kernel Linux 5.4.6 : fail to compile vmci-only

    AdrienD21 Lurker

      Hello,

       

      I use a linux distro (Calculate Linux) and I have VMware Workstation 15.5.1.

      All is fine with 4.9.x LTS Kernel.

       

      Since i upgraded the kernel to 5.4.6, VMWare Workstation fails to compile modules.

       

      Installation :

      LANG=C ./VMware-Workstation-Full-15.5.1-15018445.x86_64.bundle

      Extracting VMware Installer...done.

      Installing VMware VMX 15.5.1

          Configuring...No rc*.d style init script directories were given to the installer.

      You must manually add the necessary links to ensure that the vmware    ]  49%

      service at /etc/init.d/vmware is automatically started and stopped on

      Installing VMware Workstation 15.5.1

          Configuring...

      [######################################################################] 100%

      Installation was successful.

      And compilation :

       

      LANG=C vmware-modconfig --console --install-all

      [..]

      make[2]: *** [scripts/Makefile.build:265: /tmp/modconfig-SAUUuv/vmci-only/linux/vmciKernelIf.o] Error 1

      /tmp/modconfig-SAUUuv/vmci-only/common/vmciDoorbell.o: warning: objtool: .text.__x86_indirect_thunk_rax+0x0: unsupported intra-function call

      /tmp/modconfig-SAUUuv/vmci-only/common/vmciDoorbell.o: warning: objtool: If this is a retpoline, please patch it in with alternatives and annotate it with ANNOTATE_NOSPEC_ALTERNATIVE.

      /tmp/modconfig-SAUUuv/vmci-only/common/vmciQPair.o: warning: objtool: .text.__x86_indirect_thunk_rax+0x0: unsupported intra-function call

      /tmp/modconfig-SAUUuv/vmci-only/common/vmciQPair.o: warning: objtool: If this is a retpoline, please patch it in with alternatives and annotate it with ANNOTATE_NOSPEC_ALTERNATIVE.

      /tmp/modconfig-SAUUuv/vmci-only/common/vmciQueuePair.o: warning: objtool: .text.__x86_indirect_thunk_rax+0x0: unsupported intra-function call

      /tmp/modconfig-SAUUuv/vmci-only/common/vmciQueuePair.o: warning: objtool: If this is a retpoline, please patch it in with alternatives and annotate it with ANNOTATE_NOSPEC_ALTERNATIVE.

      make[1]: *** [Makefile:1652: /tmp/modconfig-SAUUuv/vmci-only] Error 2

      make[1]: Leaving directory '/usr/src/linux-5.4.6-calculate'

      make: *** [Makefile:117: vmci.ko] Error 2

      make: Leaving directory '/tmp/modconfig-SAUUuv/vmci-only'

      Unable to install all modules.  See log for details.

      You can see the full log here : Paste #130754 | Pastebin Calculate Linux

       

      If you have an idea !?

        • 1. Re: VMWare Workstation 15.5.1 on Kernel Linux 5.4.6 : fail to compile vmci-only
          knonn Lurker

          Hi AdrienD21,

           

          I work on a Calculate Linux KDE with 5.4.6 kernel. I tried to install Workstation 15.5.1 and I had the same problem.

           

          After the installation of workstation, I had to clone this git repo : GitHub - mkubecek/vmware-host-modules: Patches needed to build VMware (Player and Workstation) host modules against rece…

          I used the workstation-15.5.1 branch. I had to install the sys-kernel/linux-headers to be able to build vmmon-only and vmnet-only modules (because these two were not working at all).

           

          To install modules, simply run make and make install as root. It will replace modules initially installed by the vmware installer.

          Summary of all commands :

          git clone https://github.com/mkubecek/vmware-host-modules.git

          cd vmware-host-modules

          git checkout workstation-15.5.1

          make

          make install

           

          After the installation, I ran this command : /etc/init.d/vmware start

          All modules started to work sucessfully.

           

          Because I did all these tests on a virtual machine, I had to follow this tutorial to build VMware modules onto the kernel : https://angrysysadmins.tech/index.php/2018/10/bailey/open-vm-tools-gentoo-guest-vm/

           

          I reply to this post in english because I hope my answer can help some other people. But I'm french, so it'll be a pleasure to talk to you if you have any question. We can talk on your telegram channel. I'm of course a subscriber of your youtube channel

          I will reply to this post if we talk about someting usefull for anyone here.

           

          Best regards.

          • 2. Re: VMWare Workstation 15.5.1 on Kernel Linux 5.4.6 : fail to compile vmci-only
            AdrienD21 Lurker

            Hi,

            Thanks for answer !

            Compilation fine but unable to install :

             

            12 [18:30:01] root@superlinux: ~/vmware-host-modules  # make install

            /bin/sh: ligne 1: /sbin/modinfo: Aucun fichier ou dossier de ce type

            Version mismatch: module vmmon-only/vmmon.ko , kernel 5.4.6-calculate

            /bin/sh: ligne 1: /sbin/modinfo: Aucun fichier ou dossier de ce type

            Version mismatch: module vmnet-only/vmnet.ko , kernel 5.4.6-calculate

            make: *** [Makefile:35: install] Error 1

            Where ko modules will be installed ? I will copy them manually

            • 3. Re: VMWare Workstation 15.5.1 on Kernel Linux 5.4.6 : fail to compile vmci-only
              knonn Lurker

              You have to add a these symbolic links (if they don't exist) :

              /sbin/modinfo -> /bin/kmod

              /sbin/modprobe -> /bin/kmod

              /sbin/lsmod -> /bin/kmod

              /sbin/depmod -> /bin/kmod

              /sbin/insmod -> /bin/kmod

              /sbin/rmmod -> /bin/kmod

               

              And run again the make install

              • 4. Re: VMWare Workstation 15.5.1 on Kernel Linux 5.4.6 : fail to compile vmci-only
                AdrienD21 Lurker

                Okay, only modinfo not linked to kmod.

                Install okay but when i try to launch vmware, i have a problem, vmci-only doesn't compile :

                 

                2020-01-08T20:31:19.115+01:00| host-23358| I125+    74 | #define PCI_DEVICE_ID_VMWARE_VMXNET3            0x07B0

                2020-01-08T20:31:19.115+01:00| host-23358| I125+       |

                2020-01-08T20:31:19.115+01:00| host-23358| I125+ /tmp/modconfig-5BoI7P/vmnet-only/procfs.o: warning: objtool: .text.__x86_indirect_thunk_r10+0x0: unsupported intra-function call

                2020-01-08T20:31:19.115+01:00| host-23358| I125+ /tmp/modconfig-5BoI7P/vmnet-only/procfs.o: warning: objtool: If this is a retpoline, please patch it in with alternatives and annotate it with ANNOTATE_NOSPEC_ALTERNATIVE.

                2020-01-08T20:31:19.115+01:00| host-23358| I125+ /tmp/modconfig-5BoI7P/vmnet-only/hub.o: warning: objtool: .text.__x86_indirect_thunk_rax+0x0: unsupported intra-function call

                2020-01-08T20:31:19.115+01:00| host-23358| I125+ /tmp/modconfig-5BoI7P/vmnet-only/hub.o: warning: objtool: If this is a retpoline, please patch it in with alternatives and annotate it with ANNOTATE_NOSPEC_ALTERNATIVE.

                2020-01-08T20:31:19.115+01:00| host-23358| I125+ /tmp/modconfig-5BoI7P/vmnet-only/bridge.o: warning: objtool: .text.__x86_indirect_thunk_rcx+0x0: unsupported intra-function call

                2020-01-08T20:31:19.115+01:00| host-23358| I125+ /tmp/modconfig-5BoI7P/vmnet-only/bridge.o: warning: objtool: If this is a retpoline, please patch it in with alternatives and annotate it with ANNOTATE_NOSPEC_ALTERNATIVE.

                2020-01-08T20:31:19.115+01:00| host-23358| I125+ /tmp/modconfig-5BoI7P/vmnet-only/driver.o: warning: objtool: .text.__x86_indirect_thunk_rax+0x0: unsupported intra-function call

                2020-01-08T20:31:19.115+01:00| host-23358| I125+ /tmp/modconfig-5BoI7P/vmnet-only/driver.o: warning: objtool: If this is a retpoline, please patch it in with alternatives and annotate it with ANNOTATE_NOSPEC_ALTERNATIVE.

                2020-01-08T20:31:19.115+01:00| host-23358| I125+ make[1]: *** [Makefile:1652: /tmp/modconfig-5BoI7P/vmnet-only] Error 2

                2020-01-08T20:31:19.115+01:00| host-23358| I125+ make: *** [Makefile:117: vmnet.ko] Error 2

                2020-01-08T20:31:19.115+01:00| host-23358| I125+ Using kernel build system.

                2020-01-08T20:31:19.115+01:00| host-23358| I125+ /tmp/modconfig-5BoI7P/vmci-only/common/vmciResource.o: warning: objtool: .text.__x86_indirect_thunk_rdx+0x0: unsupported intra-function call

                2020-01-08T20:31:19.115+01:00| host-23358| I125+ /tmp/modconfig-5BoI7P/vmci-only/common/vmciResource.o: warning: objtool: If this is a retpoline, please patch it in with alternatives and annotate it with ANNOTATE_NOSPEC_ALTERNATIVE.

                2020-01-08T20:31:19.115+01:00| host-23358| I125+ Dans le fichier inclus depuis /tmp/modconfig-5BoI7P/vmci-only/linux/driver.c:60:

                2020-01-08T20:31:19.115+01:00| host-23358| I125+ /tmp/modconfig-5BoI7P/vmci-only/./shared/vm_device_version.h:56: attention: « PCI_VENDOR_ID_VMWARE » redéfini

                2020-01-08T20:31:19.115+01:00| host-23358| I125+    56 | #define PCI_VENDOR_ID_VMWARE                    0x15AD

                2020-01-08T20:31:19.115+01:00| host-23358| I125+       |

                2020-01-08T20:31:19.115+01:00| host-23358| I125+ Dans le fichier inclus depuis ./include/linux/pci.h:43,

                2020-01-08T20:31:19.115+01:00| host-23358| I125+                  depuis /tmp/modconfig-5BoI7P/vmci-only/

                • 5. Re: VMWare Workstation 15.5.1 on Kernel Linux 5.4.6 : fail to compile vmci-only
                  knonn Lurker

                  Hi,

                   

                  Like I said on my first answer, you eventually need to recompile some modules onto the kernel, specially these on the screenshot attached to this answer. Then recompile the new kernel.

                   

                  After a reboot on the new kernel, just restart the compilation of vmware-host-modules with a make clean, make and make install.

                   

                  Tell me if it solve your problem.

                  • 8. Re: VMWare Workstation 15.5.1 on Kernel Linux 5.4.6 : fail to compile vmci-only
                    Sedighzadeh Lurker

                    Thank you! this worked very well!

                     

                    Merci a vous monsieur!

                    • 9. Re: VMWare Workstation 15.5.1 on Kernel Linux 5.4.6 : fail to compile vmci-only
                      sscalf Lurker

                      knonn,

                       

                      You are a lifesaver!  Sadly, this post was towards the bottom of the first page of Google results, so it took me a while to find it.  None of the earlier results I got from Google helped, but the steps you provided worked perfectly for me.

                       

                      Note: For those wondering, I am using 64-bit Ubuntu 20.04 LTS (linux 5.4.0-29-generic #33-Ubuntu) with AMD Ryzen 9 3900x and GeForce GTX 970.

                      • 10. Re: VMWare Workstation 15.5.1 on Kernel Linux 5.4.6 : fail to compile vmci-only
                        Zafar_Khan Lurker

                        This solution worked for me.

                        Kernel 5.4.0

                        • 11. Re: VMWare Workstation 15.5.1 on Kernel Linux 5.4.6 : fail to compile vmci-only
                          ShuDen Lurker

                          Hi
                          I did as knonn wrote the first time and made VMware work in Linux 5.7.15-1-MANJARO x86_64 20.1, which is the version I am using. VMware Workstation Pro 15.5.6 starts up but there is no internet connection?!

                           

                          When I ran the command:
                          sudo /etc/init.d/vmware start

                           

                          Did I get this result:

                          Starting VMware services:
                             Virtual machine monitor                                            done
                             Virtual machine communication interface                 done
                             VM communication interface socket family               done
                             Blocking file system                                                   done
                             Virtual ethernet                                                         failed
                             VMware Authentication Daemon                               done

                           

                          How can I get connection?