I solved via the :
cd /usr/lib/vmware/modules/source
tar -xf vmnet.tar
cd vmnet-only
make
cd ..
tar -xf vmmon.tar
cd vmmon-only
make
cd ..
cp vmmon.o /lib/modules/`uname -r`/misc/vmmon.ko
cp vmnet.o /lib/modules/`uname -r`/misc/vmnet.ko
depmod -a
/etc/init.d/vmware restart
One may need to use sudo
before each command above.
While running make during the above command execution, if there is an error, search the error in vmware community for a patch. For example i solved one issue using the following patch :
diff -Naur vmnet-only.orig/bridge.c vmnet-only/bridge.c
--- vmnet-only/bridge.c 2017-06-26 22:08:39.148034785 +1000
+++ vmnet-only/bridge.c 2017-07-16 11:37:01.325802125 +1000
@@ -636,7 +636,7 @@
unsigned long flags;
int i;
- atomic_inc(&clone->users);
+ clone = skb_get(clone);
clone->dev = dev;
clone->protocol = eth_type_trans(clone, dev);
If you have the version.h
file missing in your vmware log, try below code:
cd /usr/src/kernels/$(uname -r)/include/linux/
ln -s /usr/include/linux/version.h version.h
Note: I got all the above information from the Internet
Now i can launch VMWare player
sudo update-alternatives --config gcc
and paste into your questionsudo apt-get install linux-headers-$(uname -r)
sudo dpkg --configure -a
, thensudo apt-get update
thensudo apt-get install -f