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 https://forums.kali.org/showthread.php?31734-Vmware-Kernel-Module-Updater-Issues-with-latest-Kernel-version-4-6-0-kali1-amd64&highlight=Vmware+kernel+issues :

Solution or Workaround: Modify 2 files in /usr/lib/vmware/modules/source/vmmon.tar and /usr/lib/vmware/modules/source/vmnet.tar
Steps:
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
(or)
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 http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security 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 ...

5 comments:

  1. hi i have mostly the same error but now it's GCC 5.4.0 not found

    root@kali:~/Bureau# uname -r
    4.6.0-kali1-amd64
    root@kali:~/Bureau# gcc --version
    gcc (Debian 6.1.1-11) 6.1.1 20160802

    vmware workstation pro 12.1.1

    can you help?

    Nadia

    ReplyDelete
    Replies
    1. Hi @Nadia, thanks for you post ... Have you have any other error ? Can you past the error logs here is possible, or into Pastbin.com and then send me the link for me to have a look .. Meanwhile, I will try to replicate the error you have mentioned here and see, if I might find a way to solve it ..

      Thanks

      Delete
  2. hi, since a last kali updates i had first the same error than you about the kernel. so last april they made the version 12.1.1 and i stoped to have errors... but now i have the gcc error.

    Aug 18 08:21:59 kali vmware-workstation.desktop[10268]: Gtk-Message: Failed to load module "atk-bridge": /usr/lib/x86_64-linux-gnu/libatspi.so.0: undefined symbol: g_type_class_adjust_private_offset
    Aug 18 08:21:59 kali vmware-workstation.desktop[10268]: (vmware-modconfig:10275): Gtk-WARNING **: Impossible de trouver le moteur de thème dans module_path : « murrine »
    ....
    Aug 18 08:21:59 kali vmware-workstation.desktop[10268]: Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type

    so i's a problem of the version 12.1.1 and kali 4.6.0-kali1-amd64?

    ReplyDelete
  3. Hi @Nadia Vigneault, apologies for taking ages to come back to you. This last fewer days.. Thanks for sending over the logs, I will start working on this issue now, I couldn't before was busy with some other project..

    ReplyDelete
  4. Hi @Nadia, I haven't yet managed to recreate the issue but I have found, two solution which seems like it will help get this issue resolved. Bear in mind that I did not tested both solutions.. Saw the feedback from people that applied the solution .. Here is ..

    1 -

    ["
    pls check if thus helps:

    $ apt-get install build-essential
    $ cd /usr/lib/vmware/modules/source
    $ tar xvf vmnet.tar
    $ cd vmnet-only
    $ make
    $ cd ..
    $ cp vmmon.tar vmmon.tar.backup
    $ tar xvf vmmon.tar
    $ cd vmmon-only
    $ nano ./linux/driver.c

    #after or around line 400, which should look like:
    #ifdef VMX86_DEVEL
    unregister_chrdev(linuxState.major, linuxState.deviceName);
    #else
    #delete the following lines:
    - if (misc_deregister(&linuxState.misc)) {
    - Warning("Module %s: error unregistering\n", linuxState.deviceName);
    - }

    #add the following line (do not include the '+'):
    + misc_deregister(&linuxState.misc);

    save

    $ 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"]

    And the second one is Technical Wiki on Aldeid Website, here is the url:
    https://www.aldeid.com/wiki/VMware

    Hope that it helps. If it doesn't then I will try to replicated the problem and resolve then create a proper article or video to post here ..

    Thanks

    ReplyDelete

Mastering Docker Minified Systems: A Step-by-Step Guide with Real Use Cases

Introduction Docker is a powerful platform for developing, shipping, and running applications. Minified Docker systems are optimized for siz...