OpenSuse 12.1 And VMware Workstation 8.0 Problem Solution

OpenSuse 12.1 And VMware Workstation 8.0 Problem Solution

OpenSuse 12.1 And vmware kernel module updater Erorrs

--------------------

SoftWare : VMware-Workstation-Full-8.0.0-471780.i386.bundle

OS: Linux  3.1.0-1.2-default #1 SMP Thu Nov 3 14:45:45 UTC 2011 (187dde0) i686 athlon i386 GNU/Linux

---------------------------------------------------------------------------------------------------------------------------------------------------------

when run vmware appear Vmware Kernel Module Updater

and fail to install virtual network device

----------------------------------------------------------

Unable to start services.

See log file /tmp/vmware-root/modconfig-8714.log for details.

------------------------------------------------------------------------

use the script

--------------------------------------------------------------------------------------------------------------------------------------------

#!/bin/bash
# -*- coding: UTF8 -*-

FOLDER=/tmp/$RANDOM$RANDDOM


mkdir $FOLDER

cd  $FOLDER
cp /usr/lib/vmware/modules/source/{vmnet.tar,vmnet.tar.old}
tar xvf /usr/lib/vmware/modules/source/vmnet.tar
patch -p0 << EOF
--- vmnet-only/compat_netdevice.h    2011-03-26 06:37:29.000000000 +0100
+++ vmnet-only/compat_netdevice.h    2011-08-10 08:17:57.000000000 +0200
@@ -47,6 +47,19 @@
#   define net_device device
#endif

+/* it looks like these have been removed from the kernel 3.1
+ * probably because the "transition" is considered complete.
+ * so to keep this source compatible we just redefine them like they were
+ * previously
+ */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0)
+#define HAVE_ALLOC_NETDEV        /* feature macro: alloc_xxxdev
+                       functions are available. */
+#define HAVE_FREE_NETDEV        /* free_netdev() */
+#define HAVE_NETDEV_PRIV        /* netdev_priv() */
+#define HAVE_NETIF_QUEUE
+#define HAVE_NET_DEVICE_OPS
+#endif

/*
  * SET_MODULE_OWNER appeared sometime during 2.3.x. It was setting
EOF
tar cf /usr/lib/vmware/modules/source/vmnet.tar vmnet-only
vmware-modconfig --console --install-all
rm -rf  $FOLDER

-----------------------------------------------------------------------------------------------------------------------------------------

http://pastebin.com/duUWpCBP

Attachments
Version history
Revision #:
1 of 1
Last update:
‎12-23-2011 11:40 PM
Updated by: