Wednesday, December 31, 2014

use vmnet patch with vmware 10.0.4 and kernel 3.17

diff -ur vmnet-only.a/netif.c vmnet-only/netif.c
--- vmnet-only.a/netif.c    2014-10-10 03:23:08.585920012 +0300
+++ vmnet-only/netif.c  2014-10-10 03:23:09.245920008 +0300
@@ -149,7 +149,7 @@
    memcpy(deviceName, devName, sizeof deviceName);
    NULL_TERMINATE_STRING(deviceName);

-   dev = alloc_netdev(sizeof *netIf, deviceName, VNetNetIfSetup);
+   dev = alloc_netdev(sizeof *netIf, deviceName, NET_NAME_UNKNOWN, VNetNetIfSetup);
    if (!dev) {
       retval = -ENOMEM;
       goto out;


  1. tar xf /usr/lib/vmware/modules/source/vmnet.tar -C /tmp/vmware
  2. patch vmnet-only.a/netif.
  3. tar -cf vmnet.tar vmnet-only/ cp vmnet.tar /usr/lib/vmware/modules/source/
  4. # vmware-modconfig --console --install-all

1 comment: