Friday, September 9, 2016

Installing VMware 12.1.1 on Kali2.1(Rolling)


Hello Guys
Today I am writing about "how to install vmware 12.1.1 on Kali 2.1(Rolling).
Make sure you have updated and upgraded your Kali Linux.And Vm ware 12.1.1 work fine with kernel version 4.8. If your kernel version is 4.9 then follow

I am sure you have downloaded VMware workstation 12.1.1 .So first goto that directory where you have downloaded VMware workstation.And type this
(i) chmod +x VM(press Tab key)
(ii) ./VM(press Tab Key)
then install it properly.


when you run vmware after installing,I am sure you will get gcc error.See this screen shot.

If it showing same on your machine..So do same as i am writing here.
STEP 1:
  • Type "apt-get install build-essential dkms -y".I am installing it because some times vmware need more dependencies for its modules.So installing dkms will help us.And it will not give you any trouble in future.its safe.I have tested it.
  • type "apt-get purge gcc-6"
  • type "apt-get remove gcc-6"
STEP 2:Install gcc-5
  • Type "apt-get update"
  • Type "apt-get install gcc-5"
  • Type "apt-get install g++-5"
STEP 3:Linking Gcc
  • Type "ln -s /usr/bin/gcc-5 /usr/bin/gcc"
  • Type "ln -s /usr/bin/g++-5 /usr/bin/g++"
Now after these steps ,if you run vmware you will get an error of "Linux-headers"

Now you have to install "Linux-Headers for kernel 4.6.0"

STEP 4:
  • Type "apt-get install linux-headers-$(uname -r) -y"
STEP 5:

Now I hope that, When you'll run vmware "linux header"
error will be gone.And you will get another error like this.See screen shot.





Now to solve this error.Do the following.


STEP 6:
  • cd /usr/lib/vmware/modules/source  
  • tar xf vmmon.tar  
  • mv vmmon.tar vmmon.old.tar  
  • sed -i -e 's/get_user_pages/get_user_pages_remote/g' vmmon-only/linux/hostif.c  
  • tar cf vmmon.tar vmmon-only  
  • rm -r vmmon-only 


  • tar xf vmnet.tar  
  • mv vmnet.tar vmnet.old.tar  
  • sed -i -e 's/get_user_pages/get_user_pages_remote/g' vmnet-only/userif.c  
  • tar cf vmnet.tar vmnet-only  
  • rm -r vmnet-only
Now you are done but some times you need to install "vmware-modconfig --console --install-all". So you may run  "vmware-modconfig --console --install-all"








you can watch this Youtube video as well.




Step 7 : If your Kernel version is 4.9 then proceed accordingly
First update your Vmware 12.1.1 to 12.5.0 and then follow this LINK

Thanks for reading guys ;-) .
























1 comment:

  1. This was superb....It really soved my problem of vmware..Thanks for the solution.!!

    ReplyDelete