vmware linux ethernet module compile issue

Reading Time: 2 minutes

I’ve faced this issue today in the morning after a fresh ubuntu 14.04 installation on my laptop. The issue occurs because vmware cannot configure the Ethernet module.

dvtqH

W8e1B

   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

to resolve the issue complete the following objectives:

open terminal

sudo gedit /tmp/filter.c.diff

copy the below content and save it

<code>205a206
&gt; #if LINUX_VERSION_CODE &lt; KERNEL_VERSION(3, 13, 0)
206a208,210
&gt; #else
&gt; VNetFilterHookFn(const struct nf_hook_ops *ops,        // IN:
&gt; #endif
255c259,263
&lt;    transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
---
&gt;    #if LINUX_VERSION_CODE &lt; KERNEL_VERSION(3, 13, 0)
&gt;       transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
&gt;    #else
&gt;       transmit = (ops-&gt;hooknum == VMW_NF_INET_POST_ROUTING);
&gt;    #endif

</code>and carry out those commands
<code>sudo -E -s

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

cp vmnet.tar vmnet.tar.original

tar xvf vmnet.tar vmnet-only/filter.c

patch vmnet-only/filter.c &lt; /tmp/filter.c.diff

tar -uvf vmnet.tar vmnet-only/filter.c

rm -rf vmnet-only/</code>
and you are good to go! Starting VMware services: Virtual machine monitor done Virtual machine communication interface done VM communication interface socket family done Blocking file system done Virtual ethernet done VMware Authentication Daemon done Shared Memory Available done