VMware Player 2.0.0-45731 and kernel 2.6.22

After upgrade my Fedora 7 up to kernel 2.6.22 I couldn’t configure VMware Player 2.0.0-45731. The configuration crashed during building of vmnet module:
Building the vmnet module.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmnet-only'
make -C /lib/modules/2.6.22.1-41.fc7/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.22.1-41.fc7-i686'
CC [M] /tmp/vmware-config0/vmnet-only/driver.o
CC [M] /tmp/vmware-config0/vmnet-only/hub.o
CC [M] /tmp/vmware-config0/vmnet-only/userif.o
/tmp/vmware-config0/vmnet-only/userif.c: In function ‘VNetCopyDatagramToUser’:
/tmp/vmware-config0/vmnet-only/userif.c:630: error: ‘const struct sk_buff’ has no member named ‘h’
/tmp/vmware-config0/vmnet-only/userif.c:630: error: ‘const struct sk_buff’ has no member named ‘nh’
/tmp/vmware-config0/vmnet-only/userif.c:636: error: ‘const struct sk_buff’ has no member named ‘h’
make[2]: *** [/tmp/vmware-config0/vmnet-only/userif.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmnet-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.22.1-41.fc7-i686'
make: *** [vmnet.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/vmnet-only'
Unable to build the vmnet module.

Thanks to Philipp Baer who did a patch for VMWare Workstation 6.0 which works for VMware Player 2.0.0-45731 as well. To solve the problem do following:

  • Untar vmnet.tar to temporary directory:
    $ tar xfv /usr/lib/vmware/modules/source/vmnet.tar -C /tmp/
  • Download the patch:
    $ wget -P /tmp http://npw.net/~phbaer/vmware-workstation-6.0_linux-kernel-2.6.22.patch
  • Apply the patch:
    $ CD /tmp/vmnet-only
    $ patch -p1 < ../vmware-workstation-6.0_linux-kernel-2.6.22.patch $ CD ../
  • Put patched sources back into archive
    $ tar vzcf vmnet.tar vmnet-only
    and copy to the VMWare module source directory

    $cp vmnet.tar /usr/lib/vmware/modules/source/

  • Run VMWare configuration script:
    $ vmware-config.pl

One response to “VMware Player 2.0.0-45731 and kernel 2.6.22”

  1. Wulf Solter says:

    Thanks! You made that one a no brainer 🙂

    Bless you

Leave a Reply

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