VMware Communities
torstenk
Contributor
Contributor

New vmware-any-any patch

Hello List!

This writing is mainly for feedback to you -- I installed kernel 2.6.23 on my Fedora machine and vmware came up with some kernel-errors when using the module vmnet for a bridged network.

After some research I patched the file bridge.c in the vmnet-module. This seems to work for me. For those interesed: rtnl_lock() and rtnl_unlock() seems to be required before changing the status of the net-device.

I have attached the vile vmware-any-any-update115.tar.gz which is version 114 and includes my fix.

    • Torsten.

Message was edited by: KevinG

I remove the attachment because it was a modified version of vmware-any-any-update114.tar.gz NOT from the author. If you want to post a modified file, give it a unique name

0 Kudos
10 Replies
carlosrm
Contributor
Contributor

Hello,

I receive this messages with your version vmware-any-any-update115

Laptop-CRM:/USB4CRM/VmWareSoft/WorkStation/vmware-any-any-update115 # ./runme.pl

Updating /usr/bin/vmware ... No patch needed/available

Updating /usr/bin/vmnet-bridge ... No patch needed/available

Updating /usr/lib/vmware/bin/vmware-vmx ... No patch needed/available

Updating /usr/lib/vmware/bin-debug/vmware-vmx ... No patch needed/available

VMware modules in "/usr/lib/vmware/modules/source" has been updated.

Before running VMware for the first time after update, you need to configure it

for your running kernel by invoking the following command:

"/usr/bin/vmware-config.pl". Do you want this script to invoke the command for

you now?

Making sure services for VMware Workstation are stopped.

Stopping VMware services:

Virtual machine monitor done

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the theme icons?

What directory contains your desktop menu entry files? These files have a

.desktop file extension.

In which directory do you want to install the application's icon?

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Workstation is suitable for your

running kernel. Do you want this program to try to build the vmmon module for

your system (you need to have a C compiler installed on your system)?

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

Your kernel was built with "gcc" version "4.3.0", while you are trying to use

"/usr/bin/gcc" version "4.3". This configuration is not recommended and VMware

Workstation may crash if you'll continue. Please try to use exactly same

compiler as one used for building your kernel. Do you want to go with compiler

"/usr/bin/gcc" version "4.3" anyway? yes

What is the location of the directory of C header files that match your running

kernel?

Extracting the sources of the vmmon module.

Building the vmmon module.

Unknown VMware Workstation 6.0.2 build 59824 detected. Building for Workstation 6.0.0.

Using 2.6.x kernel build system.

make: Entering directory `/tmp/vmware-config2/vmmon-only'

make -C /lib/modules/2.6.24-rc2-git6-50-default/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/linux-2.6.24-rc2-git6-50-obj/i386/default'

make -C /usr/src/linux-2.6.24-rc2-git6-50 O=/usr/src/linux-2.6.24-rc2-git6-50-obj/i386/default modules

CC /tmp/vmware-config2/vmmon-only/linux/driver.o

In file included from /tmp/vmware-config2/vmmon-only/./include/vmware.h:25,

from /tmp/vmware-config2/vmmon-only/linux/driver.c:52:

/tmp/vmware-config2/vmmon-only/./include/vm_basic_types.h:170: error: conflicting types for ‘uintptr_t’

/usr/src/linux-2.6.24-rc2-git6-50/include/linux/types.h:40: error: previous declaration of ‘uintptr_t’ was here

In file included from /tmp/vmware-config2/vmmon-only/./include/x86.h:23,

from /tmp/vmware-config2/vmmon-only/linux/driver.h:15,

from /tmp/vmware-config2/vmmon-only/linux/driver.c:53:

/tmp/vmware-config2/vmmon-only/./include/x86cpuid.h:381:1: warning: "BIT_MASK" redefined

In file included from /usr/src/linux-2.6.24-rc2-git6-50/include/linux/kernel.h:15,

from /tmp/vmware-config2/vmmon-only/linux/driver.c:15:

/usr/src/linux-2.6.24-rc2-git6-50/include/linux/bitops.h:7:1: warning: this is the location of the previous definition

In file included from /tmp/vmware-config2/vmmon-only/./include/vmci_kernel_defs.h:26,

from /tmp/vmware-config2/vmmon-only/./common/vmciContext.h:19,

from /tmp/vmware-config2/vmmon-only/linux/driver.h:21,

from /tmp/vmware-config2/vmmon-only/linux/driver.c:53:

/tmp/vmware-config2/vmmon-only/./include/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined

/tmp/vmware-config2/vmmon-only/./include/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined

In file included from /tmp/vmware-config2/vmmon-only/./include/vmci_kernel_defs.h:26,

from /tmp/vmware-config2/vmmon-only/./common/vmciContext.h:19,

from /tmp/vmware-config2/vmmon-only/linux/driver.h:21,

from /tmp/vmware-config2/vmmon-only/linux/driver.c:53:

/tmp/vmware-config2/vmmon-only/./include/compat_wait.h:60: error: conflicting types for ‘poll_initwait’

/usr/src/linux-2.6.24-rc2-git6-50/include/linux/poll.h:65: error: previous declaration of ‘poll_initwait’ was here

/tmp/vmware-config2/vmmon-only/linux/driver.c:172: warning: initialization from incompatible pointer type

/tmp/vmware-config2/vmmon-only/linux/driver.c:176: warning: initialization from incompatible pointer type

make[4]: *** Error 1

make[3]: *** Error 2

make[2]: *** Error 2

make[1]: *** Error 2

make[1]: Leaving directory `/usr/src/linux-2.6.24-rc2-git6-50-obj/i386/default'

make: *** http://vmmon.ko Error 2

make: Leaving directory `/tmp/vmware-config2/vmmon-only'

Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please

visit our Web site at "http://www.vmware.com/download/modules/modules.html" and

"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

Laptop-CRM:/USB4CRM/VmWareSoft/WorkStation/vmware-any-any-update115 # ./runme.pl

Updating /usr/bin/vmware ... No patch needed/available

Updating /usr/bin/vmnet-bridge ... No patch needed/available

Updating /usr/lib/vmware/bin/vmware-vmx ... No patch needed/available

Updating /usr/lib/vmware/bin-debug/vmware-vmx ... No patch needed/available

VMware modules in "/usr/lib/vmware/modules/source" has been updated.

Before running VMware for the first time after update, you need to configure it

for your running kernel by invoking the following command:

"/usr/bin/vmware-config.pl". Do you want this script to invoke the command for

you now?

Making sure services for VMware Workstation are stopped.

Stopping VMware services:

Virtual machine monitor done

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the theme icons?

What directory contains your desktop menu entry files? These files have a

.desktop file extension.

In which directory do you want to install the application's icon?

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Workstation is suitable for your

running kernel. Do you want this program to try to build the vmmon module for

your system (you need to have a C compiler installed on your system)?

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

Your kernel was built with "gcc" version "4.3.0", while you are trying to use

"/usr/bin/gcc" version "4.3". This configuration is not recommended and VMware

Workstation may crash if you'll continue. Please try to use exactly same

compiler as one used for building your kernel. Do you want to go with compiler

"/usr/bin/gcc" version "4.3" anyway? yes

What is the location of the directory of C header files that match your running

kernel?

Extracting the sources of the vmmon module.

Building the vmmon module.

Unknown VMware Workstation 6.0.2 build 59824 detected. Building for Workstation 6.0.0.

Using 2.6.x kernel build system.

make: Entering directory `/tmp/vmware-config2/vmmon-only'

make -C /lib/modules/2.6.24-rc2-git6-50-default/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/linux-2.6.24-rc2-git6-50-obj/i386/default'

make -C /usr/src/linux-2.6.24-rc2-git6-50 O=/usr/src/linux-2.6.24-rc2-git6-50-obj/i386/default modules

CC /tmp/vmware-config2/vmmon-only/linux/driver.o

In file included from /tmp/vmware-config2/vmmon-only/./include/vmware.h:25,

from /tmp/vmware-config2/vmmon-only/linux/driver.c:52:

/tmp/vmware-config2/vmmon-only/./include/vm_basic_types.h:170: error: conflicting types for ‘uintptr_t’

/usr/src/linux-2.6.24-rc2-git6-50/include/linux/types.h:40: error: previous declaration of ‘uintptr_t’ was here

In file included from /tmp/vmware-config2/vmmon-only/./include/x86.h:23,

from /tmp/vmware-config2/vmmon-only/linux/driver.h:15,

from /tmp/vmware-config2/vmmon-only/linux/driver.c:53:

/tmp/vmware-config2/vmmon-only/./include/x86cpuid.h:381:1: warning: "BIT_MASK" redefined

In file included from /usr/src/linux-2.6.24-rc2-git6-50/include/linux/kernel.h:15,

from /tmp/vmware-config2/vmmon-only/linux/driver.c:15:

/usr/src/linux-2.6.24-rc2-git6-50/include/linux/bitops.h:7:1: warning: this is the location of the previous definition

In file included from /tmp/vmware-config2/vmmon-only/./include/vmci_kernel_defs.h:26,

from /tmp/vmware-config2/vmmon-only/./common/vmciContext.h:19,

from /tmp/vmware-config2/vmmon-only/linux/driver.h:21,

from /tmp/vmware-config2/vmmon-only/linux/driver.c:53:

/tmp/vmware-config2/vmmon-only/./include/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined

/tmp/vmware-config2/vmmon-only/./include/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined

In file included from /tmp/vmware-config2/vmmon-only/./include/vmci_kernel_defs.h:26,

from /tmp/vmware-config2/vmmon-only/./common/vmciContext.h:19,

from /tmp/vmware-config2/vmmon-only/linux/driver.h:21,

from /tmp/vmware-config2/vmmon-only/linux/driver.c:53:

/tmp/vmware-config2/vmmon-only/./include/compat_wait.h:60: error: conflicting types for ‘poll_initwait’

/usr/src/linux-2.6.24-rc2-git6-50/include/linux/poll.h:65: error: previous declaration of ‘poll_initwait’ was here

/tmp/vmware-config2/vmmon-only/linux/driver.c:172: warning: initialization from incompatible pointer type

/tmp/vmware-config2/vmmon-only/linux/driver.c:176: warning: initialization from incompatible pointer type

make[4]: *** Error 1

make[3]: *** Error 2

make[2]: *** Error 2

make[1]: *** Error 2

make[1]: Leaving directory `/usr/src/linux-2.6.24-rc2-git6-50-obj/i386/default'

make: *** http://vmmon.ko Error 2

make: Leaving directory `/tmp/vmware-config2/vmmon-only'

Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please

visit our Web site at "http://www.vmware.com/download/modules/modules.html" and

"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

Thanks

Carlos

VCP310 - System Engineer

0 Kudos
admin
Immortal
Immortal

I just rolled a new kernel over the weekend, 2.6.23.8. I did not need to run the vmware-any-any patch at all for workstation to install.

I am using Bridged networking.

Slackware12 - 2.6.23.8

0 Kudos
carlosrm
Contributor
Contributor

Hello,

I use 2.6.24-rc2-git6-50-default kernel on openSuSE 10.3

A+

Carlos

0 Kudos
torstenk
Contributor
Contributor

Hi again ... thanks for your feedback. I am currently lacking time to do more reseach for this -- but obviously using 2.6.24 kernel it is the old Linux game: something has been renamed or changed an now things will not compile :-(. The patch I supplied was just to fill a gap but I am sure the vmware-any-any patch will be updated soon to reflect the changes from the new kernel.

All the best,

Torsten.

0 Kudos
carlosrm
Contributor
Contributor

Hello,

I probe the new version of vmware-any-any-update115a with the kernel openSuSE 2.6.24-rc3-git1-3-default and receive this messages

CC /tmp/vmware-config0/vmmon-only/common/vmciContext.o

CC /tmp/vmware-config0/vmmon-only/common/vmciDatagram.o

CC /tmp/vmware-config0/vmmon-only/common/vmciDriver.o

CC /tmp/vmware-config0/vmmon-only/common/vmciDs.o

CC /tmp/vmware-config0/vmmon-only/common/vmciGroup.o

CC /tmp/vmware-config0/vmmon-only/common/vmciHashtable.o

CC /tmp/vmware-config0/vmmon-only/common/vmciProcess.o

CC /tmp/vmware-config0/vmmon-only/common/vmciResource.o

CC /tmp/vmware-config0/vmmon-only/common/vmciSharedMem.o

CC /tmp/vmware-config0/vmmon-only/common/vmx86.o

CC /tmp/vmware-config0/vmmon-only/vmcore/compat.o

CC /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.o

LD /tmp/vmware-config0/vmmon-only/vmmon.o

Building modules, stage 2.

MODPOST 1 modules

CC /tmp/vmware-config0/vmmon-only/vmmon.mod.o

LD /tmp/vmware-config0/vmmon-only/vmmon.ko

make[1]: Leaving directory `/usr/src/linux-2.6.24-rc3-git1-3-obj/i386/default'

cp -f vmmon.ko ./../vmmon.o

make: Leaving directory `/tmp/vmware-config0/vmmon-only'

Unable to make a vmmon module that can be loaded in the running kernel:

insmod: error inserting '/tmp/vmware-config0/vmmon.o': -1 Unknown symbol in modu

There is probably a slight difference in the kernel configuration between the

set of C header files you specified and your running kernel. You may want to

rebuild a kernel based on that directory, or specify another directory.

For more information on how to troubleshoot module-related problems, please

visit our Web site at "http://www.vmware.com/download/modules/modules.html" and

"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

Thanks

A+

Carlos

0 Kudos
iaw4
Contributor
Contributor

if not yet known: the 115 patch fails under 2.6.24.-rc6. should I tell someone, or is this already well known?

/tmp/vmware-config0/vmmon-only/./include/compat_wait.h:60: error: conflicting types for 'poll_initwait'

include/linux/poll.h:65: error: previous declaration of 'poll_initwait' was here

/tmp/vmware-config0/vmmon-only/linux/driver.c:172: warning: initialization from incompatible pointer type

/tmp/vmware-config0/vmmon-only/linux/driver.c:176: warning: initialization from incompatible pointer type

make[2]: *** Error 1

make[1]: *** module/tmp/vmware-config0/vmmon-only Error 2

make[1]: Leaving directory `/usr/src/linux-2.6.24-rc6'

make: *** Error 2

my install is gentoo linux, pretty updated. vmware was running fine with an older kernel and the older vmware kernel drivers. couldn't vmware donate its interface into the kernel. ok---I understand that free software politics is playing roles here, and I don't understand the issues well enough.

/iaw

0 Kudos
tteikhua
Contributor
Contributor

I had success installing VMware 6.0.2 build-59824 on my FC6 git updated with 2.6.24-rc6 (latest).

Essentially it is taking the any-any-update115 and modify the vcpuset.h to change the asm/bitops.h to linux/bitops.h, and then changing the version of the module from 161 to 167, which is required by 6.0.2.

The details are as per attached.

If you just install VMware 6.0.2 straight away, you will encounter the following errors:

make -C /lib/modules/2.6.24-rc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/mnt/hd0/download/linux-2.6_latest'

CC /tmp/vmware-config4/vmmon-only/linux/driver.o

In file included from /tmp/vmware-config4/vmmon-only/./include/vmware.h:25,

from /tmp/vmware-config4/vmmon-only/linux/driver.c:83:

/tmp/vmware-config4/vmmon-only/./include/vm_basic_types.h:170: error: conflicting types for 'uintptr_t'

include/linux/types.h:40: error: previous declaration of 'uintptr_t' was here

In file included from /tmp/vmware-config4/vmmon-only/./include/x86.h:23,

from /tmp/vmware-config4/vmmon-only/linux/driver.h:15,

from /tmp/vmware-config4/vmmon-only/linux/driver.c:84:

/tmp/vmware-config4/vmmon-only/./include/x86cpuid.h:383:1: warning: "BIT_MASK" redefined

In file included from include/linux/kernel.h:15,

from /tmp/vmware-config4/vmmon-only/linux/driver.c:11:

include/linux/bitops.h:7:1: warning: this is the location of the previous definition

In file included from /tmp/vmware-config4/vmmon-only/./include/vmci_kernel_defs.h:26,

from /tmp/vmware-config4/vmmon-only/./common/vmciContext.h:19,

from /tmp/vmware-config4/vmmon-only/linux/driver.h:21,

from /tmp/vmware-config4/vmmon-only/linux/driver.c:84:

/tmp/vmware-config4/vmmon-only/./include/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined

/tmp/vmware-config4/vmmon-only/./include/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined

In file included from /tmp/vmware-config4/vmmon-only/./include/vmci_kernel_defs.h:26,

from /tmp/vmware-config4/vmmon-only/./common/vmciContext.h:19,

from /tmp/vmware-config4/vmmon-only/linux/driver.h:21,

from /tmp/vmware-config4/vmmon-only/linux/driver.c:84:

/tmp/vmware-config4/vmmon-only/./include/compat_wait.h:60: error: conflicting types for 'poll_initwait'

include/linux/poll.h:65: error: previous declaration of 'poll_initwait' was here

/tmp/vmware-config4/vmmon-only/linux/driver.c:198: warning: initialization from incompatible pointer type

make[2]: *** Error 1

make[1]: *** module/tmp/vmware-config4/vmmon-only Error 2

make[1]: Leaving directory `/mnt/hd0/download/linux-2.6_latest'

make: *** http://vmmon.ko Error 2

make: Leaving directory `/tmp/vmware-config4/vmmon-only'

Unable to build the vmmon module.

And if you run update115 you will encounter the asm/bitops.h bug. And after successfully building the module, you will encounter the following errors:

Version mismatch with vmmon module: expecting 167.0, got 161.0.

You have an incorrect version of the `vmmon' kernel module.

Try reinstalling VMware Workstation.

Therefore, the overall installation procedure are as follows:

a. remove the modules: lsmod | grep vm

vmnet 38068 13

vmblock 18848 3

vmmon 1804588 0

and then rmmod vmmon. The vmnet and vmblock must be uninstall via the following scripts.

stop the services: ifdown vmnet8

b. uninstall all the existing services and installation: /usr/bin/vmware-uninstall-vix.pl and /usr/bin/vmware-uninstall.pl

c. Install the 6.0.2: untar VMWare-workstation-6.0.2, and run vmware-install.pl. Errors will be encountered as shown above when building the module, just ignore it.

d. Then untar the update116 as attached, and run "runme.pl". Building the modules should go through successfully.

All these are done under Fedora Core 6.

Message was edited by: KevinG

I remove the attachment because it was a modified version of vmware-any-any-update114.tar.gz NOT from the author. If you want to post a modified file, give it a unique name

0 Kudos
Dave_Mishchenko
Immortal
Immortal

This thread has been moved to the VMware Workstation forum.

Dave Mishchenko

VMware Communities User Moderator

0 Kudos
iaw4
Contributor
Contributor

thank you, tteikhua. will this also work with workstation 5.5? http://I still am running this older version. I did not see a strong reason to update.

/iaw

0 Kudos
RuralRob
Enthusiast
Enthusiast

I am rather confused about when the "any-any" patch is needed. I have two machines running Sidux with the 2.6.23.12 kernel, with Workstation 6.0.1 on one machine and Player 2.0.1 on the other. In both cases, they installed and run fine (bridged, NAT, and host-only) with no patching needed. Was something fixed at some point in the 2.6.23 kernel to make VMware work?

0 Kudos