Monday, 11 July 2016

Kali Linux - VMware Workstation 12 Error Kernel 4.6.0-amd64 Not Found Error

After update my Kali Linux - I wanted to carry on working on my VM labs using VMware Workstation, the problem is that I could not longer loud. VMware Workstation 12

Every time I tried to load - this error was loading up. ERROR Kernel 4.6.0-amd64 not found 

What I tried this approach from Kali Linux forum but it didn't help

e.g 1 from :

Solution or Workaround: Modify 2 files in /usr/lib/vmware/modules/source/vmmon.tar and /usr/lib/vmware/modules/source/vmnet.tar
1- Extract /usr/lib/vmware/modules/source/vmmon.tar
2- Modify /vmmon-only/linux/hostif.c
3- Replace "get_user_pages" to "get_user_pages_remote" 
4- tar and replace original
5- Extract /usr/lib/vmware/modules/source/vmnet.tar
6- Modify ./vmnet-only/userif.c
7- Replace "get_user_pages" to "get_user_pages_remote" 
8- tar and replace original
Now you should be able to compile the modules successfully.
Tested on Kali Linux 2016 with kernel 4.6.

It was still failing ..

Then - I removed VMware completely from my system and clean dkpg ..

The Edited the /etc/apt/source.list file with this two repositories ..

e.g 2:

Edit your sources.list

The easiest way is to edit the /etc/apt/sources.list
root@kali:~# vi /etc/apt/sources.list
root@kali:~# leafpad /etc/apt/sources.list

Add official repo’s only:

Copy paste the following repositories (remove existing lines or you can comment them out – your take). Following repo list was taken from official Kali sources.list Repositories page:
# Regular repositories
deb sana main non-free contrib
deb sana/updates main contrib non-free
# Source repositories

Then ...

Clean your apt-get

apt-get clean

Do an apt-get update

apt-get update

Do an upgrade

apt-get upgrade

Finally do a distribution upgrade

apt-get dist-upgrade
That’s it, you’re set.

Then, Install the Kernel headers  ...

Then ...

Install VMware Workstation 12 on Kali 

And That's all done ...