June 28, 2017, 03:41:15 AM
Welcome, Guest. Please login or register.

You Did *NOT* Just Win a Nigerian Lottery...

Author Topic: VMWare Fix for the Newest Kali Kernel (4.6.0)  (Read 1023 times)

Offline Grey-Matter

  • Top Hat Member
  • Experienced
  • ********
  • Posts: 112
  • Internets: +57/-0
VMWare Fix for the Newest Kali Kernel (4.6.0)
« on: July 27, 2016, 01:32:47 AM »
Sup everybody. Not sure if this happened to any1 else besides me. But if you did a kali dist-upgrade in the past few days to the 4.6.0-kali1 kernel, and u run vmware inside ur kali install, and the upgrade broke vmware, here's the fix.

first type 'vmware-installer -l'
it will probly look  similar to this

root@device:/usr/lib/vmware# vmware-installer -l
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
Product Name         Product Version     
==================== ====================
vmware-workstation   12.1.1.3770994

Notice the atk-bridge error. We can fix this problem by opening up /usr/bin/vmware-installer and adding
export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libatspi.so.0:$LD_LIBRARY_PATH
somewhere near the beginning of the file

It's still gonna give you an error when trying to recompile the drivers tho. I guess there's a bug that affects
    kernel 4.6.0-1 on Debian Stretch
    kernel 4.6.1-2 on Archlinux

I know Kali's Debian Testing branch, but it's the same error and it occurs when upgrading to that kernel.

The fix for this is as follows.....

cd /usr/lib/vmware/modules/source/
tar -xvf vmmon.tar
sed -i 's/get_user_pages/get_user_pages_remote/g' vmmon-only/linux/hostif.c
tar -xvf vmmon.tar vmmon-only
rm -fR vmmon-only
tar -xvf vmnet.tar
sed -i 's/get_user_pages/get_user_pages_remote/g' vmnet-only/userif.c
tar -cvf vmnet.tar vmnet-only
rm -fR vmnet-only

This should completely fix any probs with vmware. At least it did for me :P

Source: https://www.aldeid.com/wiki/VMware

PS. wasn't sure if this belonged in Tuts, Virtual, Kali, or General Discussion lol. Feel free to move it if i guessed wrong :)

Offline H4v0K

  • Administrator
  • Elite
  • *****
  • Posts: 1017
  • Internets: +986/-1
Re: VMWare Fix for the Newest Kali Kernel (4.6.0)
« Reply #1 on: July 27, 2016, 04:11:51 AM »
Thanks for sharing :)

Offline ch3rn0byl

  • Top Hat Member
  • Experienced
  • ********
  • Posts: 186
  • Internets: +1337/-0
  • Grumpy Old Man with Mounds of Salt
Re: VMWare Fix for the Newest Kali Kernel (4.6.0)
« Reply #2 on: July 27, 2016, 08:06:27 AM »
Sick man! Thanks for the heads up! :)
The quieter you become, the more you are unlikely to sound stupid.

Offline 0x00

  • Prospect
  • *
  • Posts: 1
  • Internets: +0/-0
Re: VMWare Fix for the Newest Kali Kernel (4.6.0)
« Reply #3 on: August 26, 2016, 09:49:23 PM »
Still having problem !!!

Offline ch3rn0byl

  • Top Hat Member
  • Experienced
  • ********
  • Posts: 186
  • Internets: +1337/-0
  • Grumpy Old Man with Mounds of Salt
Re: VMWare Fix for the Newest Kali Kernel (4.6.0)
« Reply #4 on: August 27, 2016, 09:20:42 AM »
Still having problem !!!
ok? so what have you done to try and fix this??
The quieter you become, the more you are unlikely to sound stupid.