VMware Workstation 7.1.2 and Fedora 14

UPDATE: VMware Workstation 7.1.3 works out of the box with Fedora 14.

As always, VMware has not been able to keep up with recent changes in Linux (kernel 2.6.35 and up). This becomes apparent, when trying to run VMware Workstation in the new Fedora 14. Compiling the VMware kernel module fails with errors like the following:

error: implicit declaration of function ‘iommu_unmap_range’
error: ‘struct sock’ has no member named ‘sk_sleep’

Combining the hints from here and here, I arrived at the following solution, which patches VMware’s kernel module:

cd /tmp
tar xvf /usr/lib/vmware/modules/source/vmmon.tar -C /tmp
perl -pi -e 's,_range,,' vmmon-only/linux/iommu.c
sudo tar cvf /usr/lib/vmware/modules/source/vmmon.tar vmmon-only

cd /tmp
tar xvf /usr/lib/vmware/modules/source/vsock.tar -C /tmp
perl -pi -e 's,sk->compat_sk_sleep,compat_sk_sleep(sk),' vsock-only/linux/af_vsock.c
perl -pi -e 's,listener->compat_sk_sleep,compat_sk_sleep(listener),' vsock-only/linux/af_vsock.c
sudo tar cvf /usr/lib/vmware/modules/source/vsock.tar vsock-only

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

This entry was posted in VMware. Bookmark the permalink.

26 Responses to VMware Workstation 7.1.2 and Fedora 14

  1. Rich Goodin says:

    THANK YOU FOR THIS!! THIS TOTALLY WORKED!! You are a life saver my friend.

  2. PJAL says:

    Works for VMplayer 3.1.x as well. Thanks for the effort.

  3. paul says:

    Thank you… After a ton of digging and much frustration. Finding your blog was a life saver. I think you are literally the only one out there with a solution for fedora 14 running VM Workstation 7.1.2 THANKS Again.
    Great work

  4. Dave says:

    I tried to install in F13 and gave up. Considered switching to Ubuntu, but couldn’t get it to work there either. I am impressed with F14. Bluetooth headset works immediately, but wont play MP3s. Grr.. But its better than Windows. Thanks.

  5. Ramy says:

    Works, thank you

  6. Detlef says:

    It’s magic. Thanks a lot!

  7. farocker says:

    WOW !

    THANK YOU !!!

  8. Morten S 8^) says:

    Mr. Joachim Selke, you have my deepest respect and admiration! I was completely stuck on this problem, and your solution saved my day – as well as from a potential disastrous ‘downgrade’ to Fedora 13. Thank you SO much ..!

    /M

  9. hardly says:

    Are you a wizard.jpg
    Thanks so much.

  10. starglider says:

    Mr. Joachim thank you so much for your solution.
    But I have a problem with the guest OS (W2K) it doesn’t have network, it has the interface but
    it’s unable to reach the “outside” network.
    Thank you again for your work.

  11. Bruno Friedmann says:

    Works also under opensuse 11.4 ( factory ) kernel 2.6.36
    after applying
    this patch http://www.linuxinsight.com/files/vmmon-2.6.36.patch
    (explanation here http://www.linuxinsight.com/persuading-vmware-workstation-7.1-to-cooperate-with-linux-kernel-2.6.35.html )

    perl -pi -e ‘s,_range,,’ vmmon-only/linux/iommu.c
    +cd vmmon-only/linux/
    +patch -p0 < /tmp/vmmon-2.6.36.patch
    +cd /tmp
    sudo tar cvf /usr/lib/vmware/modules/source/vmmon.tar vmmon-only

  12. wp says:

    great !!!
    i love the net & people like you
    you make my day – everyday

  13. Jordi says:

    Also working for VMware Player 3.1.2 build-301548

    • Jordi says:

      Hi,

      It is also working for VMware Player 3.1.2 build-301548 in Fedora 14, running Kernel 2.6.35.6-48.fc14.i686.PAE

      Best,
      Jordi.

  14. vullnet says:

    a lifesaver… thanks

  15. Torgge says:

    Tk’s !

  16. Jackfruit501 says:

    Thanks. Work very well with Fedora 14 new 2.6.35.11-83.fc14.i686.

  17. AbdulRahman Attia says:

    Thanks a lot. It’s worked very well!

  18. Mathews says:

    I am trying to install VM Player 3.1.3 in Fedora core 14. I am getting an error

    “Kernel and GCC must be installed.”

    yum list kernel*
    Loaded plugins: langpacks, presto, refresh-packagekit
    Adding en_US to language list
    Installed Packages
    kernel.i686 2.6.35.6-45.fc14 @/kernel-2.6.35.6-45.fc14.i686
    kernel.i686 2.6.35.11-83.fc14 @updates
    kernel-PAE.i686 2.6.35.6-45.fc14 @fedora
    kernel-PAE.i686 2.6.35.11-83.fc14 @updates
    kernel-PAE-devel.i686 2.6.35.11-83.fc14 @updates
    kernel-devel.i686 2.6.35.11-83.fc14 @updates
    kernel-headers.i686 2.6.35.11-83.fc14 @updates
    Available Packages
    kernel-PAEdebug.i686 2.6.35.11-83.fc14 updates
    kernel-PAEdebug-devel.i686 2.6.35.11-83.fc14 updates
    kernel-debug.i686 2.6.35.11-83.fc14 updates
    kernel-debug-devel.i686 2.6.35.11-83.fc14 updates
    kernel-doc.noarch 2.6.35.11-83.fc14 updates

    Please help me out.

  19. Chales says:

    hi this works a lot thanks but what about vmci and vmnet, i have problems like this:

    mar 11 12:59:55.150: app-3078588096| Trying to find a suitable PBM set for kernel 2.6.35.11-83.fc14.i686.PAE.
    mar 11 12:59:55.151: app-3078588096| Building module vmci.
    mar 11 12:59:55.151: app-3078588096| Extracting the sources of the vmci module.
    mar 11 12:59:55.170: app-3078588096| Building module with command: /usr/bin/make -C /tmp/vmware-root/modules/vmci-only auto-build SUPPORT_SMP=1 HEADER_DIR=/l
    ib/modules/2.6.35.11-83.fc14.i686.PAE/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.5.1
    mar 11 12:59:55.176: app-3078588096| Failed to compile module vmci!

    I google it, but nothing works, thanks for any help

    • Just a guess: You seem to use Fedora’s PAE kernel. You could try to track down the problem by installing and booting Fedora’s standard kernel (i.e., non-PAE), and then trying the above again.

  20. spg100 says:

    Works for VMplayer 3.1.x as well. Thanks for the effort
    You are expert about vmware & linux
    Can I make friend with you ?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>