VMware – Fix for Kernel 4.2..?
Thanks to craigacgomez on the VMware Forum, there is a hack to fix VMware (vmnet) with Kernel 4.2.. https://communities.vmware.com/thread/516196
I made some more changes, to make it backward-compatible, and it seems to work OK with Kernels 4.1.3 and 4.2-rc4..
I should emphasize that I am an amateur at such things, but if you want to try this, then this is what I did, after expanding vmnet.tar:
In vmnet-only/vmnetInt.h..
Around line 79, change:
#ifdef VMW_NETDEV_HAS_NET # define compat_sk_alloc(_bri, _pri) sk_alloc(&init_net, \ PF_NETLINK, _pri, &vmnet_proto,) #else # define compat_sk_alloc(_bri, _pri) sk_alloc(PF_NETLINK, _pri, &vmnet_proto, 1) #endif
to:
#ifdef VMW_NETDEV_HAS_NET #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 00) # define compat_sk_alloc(_bri, _pri) sk_alloc(&init_net, \ PF_NETLINK, _pri, &vmnet_proto, 1) #else # define compat_sk_alloc(_bri, _pri) sk_alloc(&init_net, \ PF_NETLINK, _pri, &vmnet_proto) #endif #else # define compat_sk_alloc(_bri, _pri) sk_alloc(PF_NETLINK, _pri, &vmnet_proto, 1) #endif
I have applied this change, and VMware compiles and runs OK on Kernel 4.1.3, and 4.2-rc4..
YMMV… Usual disclaimer applies!
Robert Gadsdon. August 1, 2015.
Thank you!
This solution works on Fedora 22 with kernel 4.2.3-200.fc22.x86_64
I tried this on my Debian but i still get failed for Virtual Ethernet… any suggestions?
Linux drifter 4.2.0-1-amd64 #1 SMP Debian 4.2.5-1 (2015-10-27) x86_64 GNU/Linux
# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux testing (stretch)
Release: testing
Codename: stretch
/etc/init.d/vmware restart
Stopping VMware services:
VMware Authentication Daemon done
VM communication interface socket family done
Virtual machine communication interface done
Virtual machine monitor done
Blocking file system done
Starting VMware services:
Virtual machine monitor done
Virtual machine communication interface done
VM communication interface socket family done
Blocking file system done
Virtual ethernet failed
VMware Authentication Daemon done
I’m using Workstation 12.0.1
I don’t have any info on debian, but you might try running the ‘manual’ compile/install (# sudo vmware-modconfig –console –install-all), and see what that shows..
RG.
Can confirm this is working on Fedora 22 Kernel 4.2.5
Thanks a lot!!!
Can confirm it works on Ubuntu 15.10 with kernel version 4.2.0-23