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
Very good. Thank you very much
ResponderExcluirThanks for providing this informative information…..
ResponderExcluirYou may also refer- http://www.s4techno.com/blog/category/vmware/
kali kernel 4.9.0 updated link
ResponderExcluirgo to
http://www.hack4learn.com/2017/02/how-to-patch-kernel-module-in-vmware.html