vmware vmware-config.pl exits because of kernel version mismatch

The following are the output of vmware-config.pl.

/usr/bin/vmware-config.pl

Making sure services for VMware Server are stopped.

Stopping VMware autostart virtual machines:
Virtual machines failed
Stopping VMware management services:
VMware Virtual Infrastructure Web Access
VMware Server Host Agent failed
Stopping VMware services:
VMware Authentication Daemon done
Virtual machine monitor done

None of the pre-built vmmon modules for VMware Server 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)? [yes] yes

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

Your kernel was built with “gcc” version “4.5.1”, while you are trying to use
“/usr/bin/gcc” version “4.5”. This configuration is not recommended and VMware
Server 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.5” anyway? [no] yexs

The answer “yexs” is invalid. It must be one of “y” or “n”.

Your kernel was built with “gcc” version “4.5.1”, while you are trying to use
“/usr/bin/gcc” version “4.5”. This configuration is not recommended and VMware
Server 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.5” anyway? [no] yes

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.37.1-1.2-desktop). Even if the module were to
compile successfully, it would not load into the running kernel.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.37.1-1.2-desktop). Even if the module were to
compile successfully, it would not load into the running kernel.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

rpm -qa|grep kernel
kernel-devel-2.6.37.1-1.2.2.noarch
kernel-desktop-2.6.37.1-1.2.2.x86_64
kernel-source-2.6.37.1-1.2.2.noarch
kernel-firmware-2.6.38-1.2.1.noarch
kernel-desktop-devel-2.6.37.1-1.2.2.x86_64

uname -a
Linux linux-6q18 2.6.37.1-1.2-desktop #1 SMP PREEMPT 2011-02-21 10:34:10 +0100 x86_64 x86_64 x86_64 GNU/Linux

ls -l /usr/src/
total 16
lrwxrwxrwx 1 root root 18 Apr 1 14:20 linux -> linux-2.6.37.1-1.2
drwxr-xr-x 24 root root 4096 Apr 5 14:09 linux-2.6.37.1-1.2
drwxr-xr-x 3 root root 4096 Apr 1 14:20 linux-2.6.37.1-1.2-obj
drwxr-xr-x 3 root root 4096 Apr 1 14:20 linux-obj
drwxr-xr-x 8 root root 4096 Apr 1 12:46 packages

I installed OpenSuse 11.4 64 bit in my machine

the installed kernel is 2.6.37.1-1.2-desktop. But the kernel source from /usr/src/ says linux-2.6.37.1-1.2 version. The vmware-config.pl shows the error of kernel version mismatch.

Can you help to fix this problem?

Thanks in Advance.

On Tue, 2011-04-05 at 09:06 +0000, paryd wrote:
> the installed kernel is 2.6.37.1-1.2-desktop. But the kernel source
> from /usr/src/ says linux-2.6.37.1-1.2 version. The vmware-config.pl
> shows the error of kernel version mismatch.
>
> Can you help to fix this problem?
>
> Thanks in Advance.
>
Hi
Have a look at this SDB, I’ve also updated the rmp for 11.4
http://en.opensuse.org/SDB:Installing_VMware_server_or_workstation


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.29-0.3-default
up 1 day 11:00, 2 users, load average: 0.12, 0.05, 0.01
GPU GeForce 8600 GTS Silent - Driver Version: 260.19.26

Thank you so much…
I followed the steps given in the link http://en.opensuse.org/SDB:Installin...or_workstation.
I still have some problem while running “vmware_server_fix”.

Output:
vmware_server_fix
Restoring backup
Creating backup files
Directory exists
compat_cred.h exists, removing
patching file vmci-only/include/pgtbl.h
patching file vmnet-only/vnetUserListener.c
patching file vmci-only/Makefile
patching file vmmon-only/common/vmx86.c
patching file vmmon-only/include/compat_cred.h
patching file vmmon-only/include/x86svm.h
patching file vmmon-only/linux/driver.c
patching file vmmon-only/linux/hostif.c
Hunk #2 succeeded at 2576 (offset -1 lines).
Hunk #3 succeeded at 2602 (offset -1 lines).
Hunk #4 succeeded at 3458 (offset -1 lines).
Hunk #5 succeeded at 3582 (offset -1 lines).
patching file vmmon-only/Makefile
patching file vmnet-only/Makefile
patching file vmnet-only/netif.c
patching file vsock-only/Makefile
Making sure services for VMware Server are stopped.

Stopping VMware autostart virtual machines:
Virtual machines failed
Stopping VMware management services:
VMware Virtual Infrastructure Web Access
VMware Server Host Agent failed
Stopping VMware services:
VMware Authentication Daemon done
Virtual machine monitor done

You must read and accept the End User License Agreement to continue.
Press enter to display it.

Do you accept? (yes/no) yes

Thank you.

None of the pre-built vmmon modules for VMware Server 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)? [yes] yes

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

Your kernel was built with “gcc” version “4.5.1”, while you are trying to use
“/usr/bin/gcc” version “4.5”. This configuration is not recommended and VMware
Server 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.5” anyway? [no] yes

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.37.1-1.2-desktop/build/include] /usr/sr/linux/include

The path “/usr/sr/linux/include” is not an existing directory.

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.37.1-1.2-desktop/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory /tmp/vmware-config1/vmmon-only' make -C /lib/modules/2.6.37.1-1.2-desktop/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory /usr/src/linux-2.6.37.1-1.2-obj/x86_64/desktop’
make -C …/…/…/linux-2.6.37.1-1.2 O=/usr/src/linux-2.6.37.1-1.2-obj/x86_64/desktop/. modules
CC [M] /tmp/vmware-config1/vmmon-only/linux/driverLog.o
CC [M] /tmp/vmware-config1/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config1/vmmon-only/./common/vmx86.h:31:0,
from /tmp/vmware-config1/vmmon-only/linux/driver.h:29,
from /tmp/vmware-config1/vmmon-only/linux/driver.c:101:
/tmp/vmware-config1/vmmon-only/./include/x86apic.h:97:0: warning: “APIC_BASE_MSR” redefined
/usr/src/linux-2.6.37.1-1.2/arch/x86/include/asm/apicdef.h:145:0: note: this is the location of the previous definition
In file included from /tmp/vmware-config1/vmmon-only/./common/vmx86.h:32:0,
from /tmp/vmware-config1/vmmon-only/linux/driver.h:29,
from /tmp/vmware-config1/vmmon-only/linux/driver.c:101:
/tmp/vmware-config1/vmmon-only/./include/x86msr.h:164:0: warning: “MSR_THERM2_CTL” redefined
/usr/src/linux-2.6.37.1-1.2/arch/x86/include/asm/msr-index.h:235:0: note: this is the location of the previous definition
/tmp/vmware-config1/vmmon-only/linux/driver.c: In function ‘init_module’:
/tmp/vmware-config1/vmmon-only/linux/driver.c:426:15: error: ‘struct file_operations’ has no member named ‘ioctl’
make[4]: *** [/tmp/vmware-config1/vmmon-only/linux/driver.o] Error 1
make[3]: *** [module/tmp/vmware-config1/vmmon-only] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory /usr/src/linux-2.6.37.1-1.2-obj/x86_64/desktop' make: *** [vmmon.ko] Error 2 make: Leaving directory /tmp/vmware-config1/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/go/unsup-linux-products” and
http://www.vmware.com/go/unsup-linux-tools”.

Execution aborted.

Please help me to fix this.

Thanks,

On Wed, 2011-04-06 at 10:06 +0000, paryd wrote:
> Thank you so much…
> I followed the steps given in the link
> http://en.opensuse.org/SDB:Installin...or_workstation.
> I still have some problem while running “vmware_server_fix”.
Hi
Did you ensure you cleaned out the previous attempt, see the "Clean up
previous patches "?


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.29-0.3-default
up 2 days 12:12, 2 users, load average: 0.37, 0.21, 0.12
GPU GeForce 8600 GTS Silent - Driver Version: 260.19.26

Hi
Just an update, I’ve found some additional patches to get past your
error, however there are now failures further in the build and as of yet
no patches. Will keep looking so hope to have an update soon and a fix.

Any update on this? I’m encountering the same issue with VMware server 2.0.2 on opensuse 11.4, on 2.6.37.1-1.2 and also on 2.6.37.6-0.5. I’m getting the following error:
/tmp/vmware-config4/vmmon-only/linux/driver.c: In function ‘init_module’:
/tmp/vmware-config4/vmmon-only/linux/driver.c:426:15: error: ‘struct file_operations’ has no member named ‘ioctl’
make[4]: *** [/tmp/vmware-config4/vmmon-only/linux/driver.o] Error 1
I’ve been scouring the net for a patch for vmware server. There is a patch for workstation and player, but it don’t help server.

hello, I was using before vmware server too and always had problems after new version of openSUSE or new kernel.
Finally I stopped to use it and I’ve migrated to Oracle Virtual Box which is very easy to use and working fine for me and also it is available in openSUSE repos.

On 2011-05-13 09:36, isemionov wrote:
> Finally I stopped to use it and I’ve migrated to Oracle Virtual Box
> which is very easy to use and working fine for me and also it is
> available in openSUSE repos.

Unfortunately, VB does not support all the oses VMW does. Specially old
ones, like Windows Me.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

it may be, but at least most of Windows OSes are supported. And this was the reason of using virtual machines for me: some times needed to run windows specialized programs on my linux desktop. Didn’t try ever Windows Me but Windows 95,98 are supported for sure, here is tutorial: Tutorial: Windows 95/98 guest OSes (View topic) • virtualbox.org. I don’t think there is much difference between win 98 and win me, at least in VB Manager you can chose it :slight_smile:

by the way there is an official list on virtual box site for gust and hosts: Guest_OSes - VirtualBox

And you’re right Carlos, Windows ME is not in the list.

On 2011-05-13 16:06, isemionov wrote:

> Didn’t try ever
> Windows Me but Windows 95,98 are supported for sure

No, they are not.

<http://www.virtualbox.org/wiki/Guest_OSes>

There are no guest additions. Windows 95 is not even listed.

MsDOS has also limited support. No guest additions.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

VMWARE Server has reached EOL (end of life), its not supported any more, so there will be no more new version.

Throw its to garbage, best you can do.

For desktop solutions use VirtualBox or VMWARE Player. In newest Versions both runs without kernel problems, else with 2.6.38 from Tumbleweed.

And for a server use VirtualBox (VBoxHeadless) or Xen/KVM.

So you see there is no reason to spent time for trying to get old versions to work. Else if you get now its to work, with the next kernel update the game starts again.

On 2011-05-13 19:06, meierkurt123 wrote:
>
> VMWARE Server has reached EOL (end of life), its not supported any more,
> so there will be no more new version.

I know. Rather than EOL, it has been killed intentionally.

> For desktop solutions use VirtualBox

I repeat it does not support all the operating systems vmware does, like WinMe.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

On 2011-05-13 16:36, isemionov wrote:
>
> by the way there is an official list on virtual box site for gust and
> hosts: ‘Guest_OSes - VirtualBox’
> (http://www.virtualbox.org/wiki/Guest_OSes)
>
> And you’re right Carlos, Windows ME is not in the list.

And win 95/98 has limited support, like no guest additions. That is very
important.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Hi.

I met same situation.
I want to use vmware with OpenSuSE.

My linux environment is as follows.

laputa:/home/hanes/inst/rpm # uname -a
Linux laputa 2.6.37.6-0.5-desktop #1 SMP PREEMPT 2011-04-25 21:48:33 +0200 x86_64 x86_64 x86_64 GNU/Linux
laputa:/home/hanes/inst/rpm # rpm -qa | grep -E ‘^(kernel|linux|patch|make|gcc)-’ | sort
gcc-4.5-19.1.x86_64
gcc-c+±4.5-19.1.x86_64
kernel-default-devel-2.6.37.6-0.5.1.x86_64
kernel-desktop-2.6.37.6-0.5.1.x86_64
kernel-desktop-devel-2.6.37.6-0.5.1.x86_64
kernel-devel-2.6.37.6-0.5.1.noarch
kernel-firmware-2.6.38-1.2.1.noarch
kernel-source-2.6.37.6-0.5.1.noarch
kernel-syms-2.6.37.6-0.5.1.x86_64
kernel-xen-devel-2.6.37.6-0.5.1.x86_64
linux-glibc-devel-2.6.36-3.1.noarch
make-3.82-140.1.x86_64
patch-2.6.1.81-5.1.x86_64
laputa:/home/hanes/inst/rpm #

And VMware version that I try to install is “VMware-server-2.0.2-203138.x86_64.rpm”

I did …

laputa:/usr/lib/vmware # vi /etc/init.d/vmware

“rcvmware stop” willl stop at below.
Stopping VMware management services:
VMware Virtual Infrastructure Web Access
So I changed /etc/init.d/vmware, to stop at any time.

and I did

laputa:/usr/lib/vmware # rpm -e VMware-server-2.0.2-203138.x86_64
laputa:/usr/lib/vmware #
laputa:/home/hanes/inst/rpm # cd /usr/lib/vmware/modules/
laputa:/usr/lib/vmware/modules # pwd
/usr/lib/vmware/modules
laputa:/usr/lib/vmware/modules # ls
source source-backup
laputa:/usr/lib/vmware/modules # rm -rf source*
laputa:/usr/lib/vmware/modules # rpm -Uvh /home/hanes/inst/rpm/VMware-server-2.0.2-203138.x86_64.rpm
Preparing… ########################################### [100%]
1:VMware-server ########################################### [100%]

The installation of VMware Server 2.0.2 for Linux completed successfully.
You can decide to remove this software from your system at any time by
invoking the following command: “rpm -e VMware-server”.

Before running VMware Server for the first time, you need to
configure it for your running kernel by invoking the
following command: “/usr/bin/vmware-config.pl”.

Enjoy,

--the VMware team

laputa:/usr/lib/vmware/modules # ls
laputa:/home/hanes/inst/rpm # rpm -ivh vmware-fix-1.3-1.1.noarch.rpm
warning: vmware-fix-1.3-1.1.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID d83ee527: NOKEY
Preparing… ########################################### [100%]
1:vmware-fix ########################################### [100%]
laputa:/home/hanes/inst/rpm # vmware_server_fix
Creating backup files
patching file vmci-only/include/pgtbl.h
patching file vmnet-only/vnetUserListener.c
patching file vmci-only/Makefile
patching file vmmon-only/common/vmx86.c
patching file vmmon-only/include/compat_cred.h
patching file vmmon-only/include/x86svm.h
patching file vmmon-only/linux/driver.c
patching file vmmon-only/linux/hostif.c
patching file vmmon-only/Makefile
patching file vmnet-only/Makefile
patching file vmnet-only/netif.c
patching file vsock-only/Makefile
Making sure services for VMware Server are stopped.

Stopping VMware autostart virtual machines:
Virtual machines failed
Stopping VMware management services:
VMware Virtual Infrastructure Web Access^C <======== Script stoped at hear, I pressed Ctrl + c and continue.
VMware Server Host Agent failed
Stopping VMware services:
VMware Authentication Daemon done
Virtual machine monitor done

You must read and accept the End User License Agreement to continue.
Press enter to display it.

Do you accept? (yes/no) yes

Thank you.

None of the pre-built vmmon modules for VMware Server 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)? [yes]

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

Your kernel was built with “gcc” version “4.5.1”, while you are trying to use
“/usr/bin/gcc” version “4.5”. This configuration is not recommended and VMware
Server 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.5” anyway? [no] yes

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.37.6-0.5-desktop/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory /tmp/vmware-config0/vmmon-only' make -C /lib/modules/2.6.37.6-0.5-desktop/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory /usr/src/linux-2.6.37.6-0.5-obj/x86_64/desktop’
make -C …/…/…/linux-2.6.37.6-0.5 O=/usr/src/linux-2.6.37.6-0.5-obj/x86_64/desktop/. modules
CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config0/vmmon-only/./common/vmx86.h:32:0,
from /tmp/vmware-config0/vmmon-only/linux/driver.h:29,
from /tmp/vmware-config0/vmmon-only/linux/driver.c:101:
/tmp/vmware-config0/vmmon-only/./include/x86msr.h:164:0: warning: “MSR_THERM2_CTL” redefined
/usr/src/linux-2.6.37.6-0.5/arch/x86/include/asm/msr-index.h:240:0: note: this is the location of the previous definition
/tmp/vmware-config0/vmmon-only/linux/driver.c: In function ‘init_module’:
/tmp/vmware-config0/vmmon-only/linux/driver.c:426:15: error: ‘struct file_operations’ has no member named ‘ioctl’
make[4]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] Error 1
make[3]: *** [module/tmp/vmware-config0/vmmon-only] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory /usr/src/linux-2.6.37.6-0.5-obj/x86_64/desktop' make: *** [vmmon.ko] Error 2 make: Leaving directory /tmp/vmware-config0/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/go/unsup-linux-products” and
http://www.vmware.com/go/unsup-linux-tools”.

Execution aborted.

laputa:/home/hanes/inst/rpm #

help me please.

If you need some information, please teach to me.

Dont ride a dead horse.

VMWARE Server is dead. Unsupported and to old to run with new linux kernels.

Its time to search for alternatives.