Error Installing Vmware Workstation On Ubuntu

To fix this we will need to apply this patch to filter.c in VMware Player module sources.

Step No 1

create a file in tmp directory name filter.c.diff and copy paste the following code init.

nano /tmp/filter.c.diff

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

Step No 2

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 < /tmp/filter.c.diff

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

rm -rf vmnet-only/

After that just run vmware and it will work fine.

   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

Note : You also need to chown the .vmware directory otherwise your vmware changes will not save

example

sudo chown -R one:one .vmware

Where one is my username and one is my group. sudo chown -R $USER:$USER .vmware

HELP


To fix the issue on Ubuntu 14.10 kernel 3.17.2

Step No 1

curl http://pastie.org/pastes/9636106/download -o /tmp/vmware-3.17.patch

Step No 2

Rebuilding modules, Extract module sources:

cd /usr/lib/vmware/modules/source
for i in vmci vmmon vmnet vsock; do tar -xf $i.tar; done

Step No 3

Apply the patch:

 patch -p1 -i /tmp/vmware-3.17.patch

Step No 4

Recreate the archives:

for i in *-only; do tar -cf ${i/-only}.tar $i; done

Step No 5

Remove leftovers:

rm -r *-only

Step No 6

Rebuild modules:

vmware-modconfig --console --install-all

HELP


To fix the issue on Ubuntu 14.x kernel 3.19.x, run the following steps as Root (in a terminal):

  1. log in as root (e.g. sudo -s)

  2. Enter your Root password.

  3. Enter these commands:

curl http://pastie.org/pastes/9934018/download -o /tmp/vmnet-3.19.patch
cd /usr/lib/vmware/modules/source
tar -xf vmnet.tar
patch -p0 -i /tmp/vmnet-3.19.patch
mv vmnet.tar vmnet.tar.SAVED
tar -cf vmnet.tar vmnet-only
rm -r vmnet-only
vmware-modconfig --console --install-all