3 Replies Latest reply on Apr 6, 2015 5:38 AM by freemanlutsk

    Failed to build vmnet after last openSUSE update

    jpearso Novice

      Hello all

       

       

       

      I just did a mega zypper update of opensuse Factory tonight - v13.2 goes live on Monday so I thought that I would avoid the rush.

       

       

      This was a big mistake as far as VMware-Workstation is concerned because after updating some ~530 packages (new kernal etc) VMware Workstation can no longer compile the vmnet module.

       

       

      ERROR : Failed to build vmnet.  Failed to execute the build command.

       

       

      I have been running Vmware Workstation fine with zero problems on Factory for the last 3 weeks

       

       

       

      Side note : I just updated to VMware yesterday.

       

       

      I am running : VMware-Workstation-Full-10.0.4-2249910.x86_64.bundle

       

       

      Everything worked fine for 24 hours before the major openSUSE update tonight (20141031)

       

       

       

      # OS details follow

       

       

      Linux Asus 3.17.1-1.g5c4d099-desktop #1 SMP PREEMPT Sat Oct 18 23:36:23 UTC 2014 (5c4d099) x86_64 x86_64 x86_64 GNU/Linux

       

       

      # Listing the versions of installed support packages...

       

       

      kernel-source-3.17.1-1.2.g5c4d099.noarch

       

       

      kernel-desktop-3.17.1-1.2.g5c4d099.x86_64

       

       

      kernel-desktop-devel-3.17.1-1.2.g5c4d099.x86_64

       

       

      gcc-4.8-8.1.x86_64

       

       

      make-4.0-4.4.x86_64

       

       

      gcc-c++-4.8-8.1.x86_64

       

       

      cat  vmware-modconfig-19171.log

       

       

      ... snip

       

       

      2014-10-31T20:25:32.487+01:00| modconfig| I120: "/usr/lib/vmware-installer/2.1.0/vmware-installer" exited with status 0.

      2014-10-31T20:25:32.487+01:00| modconfig| I120: Setting destination path for vmnet to "/lib/modules/3.17.1-1.g5c4d099-desktop/misc/vmnet.ko".

      2014-10-31T20:25:32.487+01:00| modconfig| I120: Extracting the vmnet source from "/usr/lib/vmware/modules/source/vmnet.tar".

      2014-10-31T20:25:32.490+01:00| modconfig| I120: Successfully extracted the vmnet source.

      2014-10-31T20:25:32.490+01:00| modconfig| I120: Building module with command "/usr/bin/make -j6 -C /tmp/modconfig-Kua8Vn/vmnet-only auto-build HEADER_DIR=/lib/modules/3.17.1-1.g5c4d099-desktop/build/include CC=/usr/bin/gcc IS_GCC_3=no"

      2014-10-31T20:25:33.649+01:00| modconfig| W110: Failed to build vmnet.  Failed to execute the build command.

      2014-10-31T20:25:33.654+01:00| modconfig| I120: We are now shutdown.  Ready to die!

       

       

       

      See the attached file for more details

       

       

      Question : Are there any patches available or a beta of the upcoming version of VMware Workstation available?

       

       

      Regards

      James

        • 1. Re: Failed to build vmnet after last openSUSE update
          jpearso Novice

          Hello all

          Just a short note to say that I solved this issue by applying the attached patch (vmware-for-3.17.patch.zip) that I found on this forum. Sorry but I forget on which post I found it.

          Note : make sure that you have GNU patch installed on your system!


          # Instructions to follow

          # make new working directory

          rm -r /tmp/vmware

          mkdir -p /tmp/vmware/source && cd /tmp/vmware/source

          #

          # copy VMware module source files

          cp -R /usr/lib/vmware/modules/source/*  .

          for i in ./*.tar; do tar -xf $i; done

          for i in ./*.tar; do mv $i $i.orginal; done

          #

          # copy patch.zip file for 3.17 kernel to /tmp/vmware/source/

          cp -p /your.path.goes.here/vmware-for-3.17.patch.zip .

          # unzip ./vmware-for-3.17.patch.zip

          unzip ./vmware-for-3.17.patch.zip

          #

          # apply patch

          patch -p1 < vmware-for-3.17.patch;

          tar -cf vmnet.tar vmnet-only/

          mv -vfi ./vmnet.tar  /usr/lib/vmware/modules/source/;

          # recompile vmware modules using new patched

          vmware-modconfig --console --install-all

          #

          # VMware Workstation 10.0.4 build-2249910 now works fine on openSUSE 13.2/Factory using a 3.17.1 kernel

          Linux version 3.17.1-1.g5c4d099-desktop (geeko@buildhost) (gcc version 4.8.3 20140627 [gcc-4_8-branch revision 212064] (SUSE Linux) ) #1 SMP PREEMPT Sat Oct 18 23:36:23 UTC 2014 (5c4d099)

           

          Hopes this helps someone

          Regards

          James

          • 2. Re: Failed to build vmnet after last openSUSE update
            gaugusto Lurker

            For kernels 3.19 , this work for me :

             

            $ curl http://pastie.org/pastes/9934018/download -o /tmp/vmnet-3.19.patch

             

            Extract the vmnet module sources:

             

            $ cd /usr/lib/vmware/modules/source
            # tar -xf vmnet.tar

             

            Apply the patch:

             

            # patch -p0 -i /tmp/vmnet-3.19.patch

             

            Recreate the archive:

             

            # tar -cf vmnet.tar vmnet-only

             

            Remove leftover:

             

            # rm -r *-only

             

            Rebuild modules:

             

            # vmware-modconfig --console --install-all

             

            Credits:

            https://wiki.archlinux.org/index.php/VMware

            • 3. Re: Failed to build vmnet after last openSUSE update
              freemanlutsk Lurker

              For me this solution work too!

              Thanx.