VMware Player compiling error - Failed to execute the build command

3.19 kernels and up

Since 3.19 kernel the vmnet module will fail to build.

A patch is available at [1]:

$ 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


Kernel headers for version 3.x-xxxx were not found

After upgrading the kernel you must restart the system to find the new headers, the headers can then be found.

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

The 3.17-rc kernel in Fedora 20 (fc20). which unfortunately does not work with VMware Player 6.0.3 (build-1895310). After installing vmplayer compiling vmnet fails in netif.c with

error 'macro "alloc_netdev" requires 4 arguments, but only 3 given'.

# cd /usr/lib/vmware/modules/source/

# vi vmnet.tar

scroll the cursor to the line with


Hit enter to edit that file then enter 152 G to go to line 152 and change the line


   dev = alloc_netdev(sizeof *netIf, deviceName, VNetNetIfSetup);


   dev = alloc_netdev(sizeof *netIf, deviceName, NET_NAME_UNKNOWN, VNetNetIfSetup);

save and quit

start VMware again to recomplie