sábado, 5 de setembro de 2015

HOW TO INSTALL VMWARE PLAYER OR WORKSTATION IN KALI LINUX 2.0 [SOLVED ERROR VMWARE NET KERNEL UPDATE]

vmware kernel module updater
kernel headers 4.0.0-kali1-amd64 error  appear


First of all:

apt-get install linux-headers-$(uname -r)

1. apt-get install git gcc make linux-headers-$(uname -r)

2. Download vmware at
https://my.vmware.com/web/vmware/downloads
Install VMware
As you saw, VMware can not run.

Now , how to fix
Download patch for kernel 4.0
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
tar -cf vmnet.tar vmnet-only
rm -r *-only
vmware-modconfig --console --install-all

3. Now, confinue Fix

cd /usr/lib/vmware/modules/source
tar -xvf vmnet.tar
#edit file  vmnet-only/netif.c and replace the line that looks like
#line 152# dev = alloc_netdev(sizeof *netIf, deviceName, VNetNetIfSetup);
to
dev = alloc_netdev(sizeof *netIf, deviceName, NET_NAME_UNKNOWN, VNetNetIfSetup);
save file
$tar -cvf vmnet.tar vmnet-only/
$ rm -rf vmnet-only/

Run Vmware player or workstation again

Procedures that help some times:

sudo apt-get install open-vm-tools
sudo apt-get install gcc

Obs.: after if cant open, i recomend, kill all process from vmware and try again.

Dedicate for my brother

3 comentários:

  1. Thanks for providing this informative information…..
    You may also refer- http://www.s4techno.com/blog/category/vmware/

    ResponderExcluir
  2. kali kernel 4.9.0 updated link
    go to
    http://www.hack4learn.com/2017/02/how-to-patch-kernel-module-in-vmware.html

    ResponderExcluir