VMware Communities
chucktr
Contributor
Contributor

VMware 7 on openSuSE 11.3

Have been attempting to use VMware 7.0 on openSuSE 11.3. I can get it installed -but- when I execute it and it tries to build the modules it continually complains about the C header files not matching the running kernel. Well, they do and they are in the correct place. Just what is being looked for?? Is there already a correction/patch for this or is it a new problem?

Thanks,

Chuck

Reply
0 Kudos
16 Replies
athlon_crazy
Virtuoso
Virtuoso

Do you install kernel-dev package match with your running kernel? Sometime kernel-header only is not enough. Kernel-dev normally will come with GCC package which is need by VMware to compile kernel module and if your GCC compiler version doesn't match with your running kernel, the same error you will get.






vcbMC-1.0.6 Beta

vcbMC-1.0.7 Lite

http://www.no-x.org

http://www.no-x.org
Reply
0 Kudos
chucktr
Contributor
Contributor

Hi there,

Yep, I installed:

kernel-default-devel

kernel-desktop

kernel-desktop-devel

kernel-devel

kernel-pae-devel

kernel-source

kernel-syms

kernel-xen-devel

All of these were automagically installed except the sources and the syms. I had to specifically select those. As you will see below the version of GCC is 4.5. Which came with the installation and if it is incorrect then shame on SuSE. However, I do beleive that it is correct. This is the "latest" version of openSuSE, version 11.3 RC1. Course I couldn't get VMware modules to compile in the previous milestone release M7 either. For some reason VMware can not find the C header files... even when I tell it where they are. What I would like to know is where/how VMware is looking?? Is there a config file somewhere that I can change to specifiy something different -or- is VMware looking for something specific in the header files and I need to add or create it? I mean it has to be something simple ... I always find the hard things. Smiley Happy

dusty-tr2:~ # vmware

Logging to /tmp/vmware-root/setup-10503.log

/usr/share/themes/Clearlooks/gtk-2.0/gtkrc:76: error: unexpected identifier `colorize_scrollbar', expected character `}'

ERROR: modinfo: could not find module vmmon

ERROR: modinfo: could not find module vmnet

ERROR: modinfo: could not find module vmblock

ERROR: modinfo: could not find module vmci

ERROR: modinfo: could not find module vsock

ERROR: modinfo: could not find module vmmon

ERROR: modinfo: could not find module vmnet

ERROR: modinfo: could not find module vmblock

ERROR: modinfo: could not find module vmci

ERROR: modinfo: could not find module vsock

ERROR: modinfo: could not find module vmmon

ERROR: modinfo: could not find module vmnet

ERROR: modinfo: could not find module vmblock

ERROR: modinfo: could not find module vmci

ERROR: modinfo: could not find module vsock

Fontconfig error: "conf.d", line 1: no element found

Fontconfig warning: line 73: unknown element "cachedir"

Fontconfig warning: line 74: unknown element "cachedir"

ERROR: modinfo: could not find module vmmon

ERROR: modinfo: could not find module vmnet

ERROR: modinfo: could not find module vmblock

ERROR: modinfo: could not find module vmci

ERROR: modinfo: could not find module vsock

/tmp/vmware-root/setup-10503.log contains:

Jun 19 21:17:11.650: app-3076830912| Log for VMware Workstation pid=10503 version=7.0.0 build=build-203739 option=Release

Jun 19 21:17:11.650: app-3076830912| The process is 32-bit.

Jun 19 21:17:11.650: app-3076830912| Host codepage=UTF-8 encoding=UTF-8

Jun 19 21:17:11.650: app-3076830912| Logging to /tmp/vmware-root/setup-10503.log

Jun 19 21:17:11.932: app-3076830912| System distribution is SuSE

Jun 19 21:17:11.933: app-3076830912| System version is 11.3

Jun 19 21:17:11.933: app-3076830912| modconf query interface initialized

Jun 19 21:17:11.949: app-3076830912| modconf library initialized

Jun 19 21:17:12.020: app-3076830912| Your GCC version: 4.5

Jun 19 21:17:12.066: app-3076830912| Your GCC version: 4.5

Jun 19 21:17:13.242: app-3076830912| Trying to find a suitable PBM set for kernel 2.6.34-9-desktop.

Jun 19 21:17:13.249: app-3076830912| Trying to find a suitable PBM set for kernel 2.6.34-9-desktop.

-


this repeated several more times ending with a Your GCC version: 4.5

Reply
0 Kudos
athlon_crazy
Virtuoso
Virtuoso

Can you verify the "version.h" file inside ../include/linux/?






vcbMC-1.0.6 Beta

vcbMC-1.0.7 Lite

http://www.no-x.org

http://www.no-x.org
Reply
0 Kudos
Borja_Mari
Virtuoso
Virtuoso

Hi,

maybe you have already checked this tutorials. Maybe not, but IMHO it can be helpful.

http://en.opensuse.org/Setting_up_VMware_Workstation

http://u-random.blogspot.com/2010/01/vmware-workstation-7.html

Hope this helps Smiley Happy




Regards/Saludos,
Pablo

Please consider awarding

any helpful or corrrect answer. Thanks!! -

Por favor considera premiar

cualquier respuesta útil o correcta. ¡¡Muchas gracias!!

Virtually noob blog

------------------------------------------------------------------------------------------------- PLEASE CONSIDER AWARDING any HELPFUL or CORRECT reply. Thanks!! Por favor CONSIDERA PREMIAR cualquier respuesta ÚTIL o CORRECTA . ¡¡Muchas gracias!! VCP3, VCP4, VCP5-DCV (VCP550), vExpert 2010, 2014 BLOG: http://communities.vmware.com/blogs/VirtuallyAnITNoob
Reply
0 Kudos
chucktr
Contributor
Contributor

Hi there,

Yes I have already tried all those "tricks". I have VMware fully operational in openSuSE 11.2 -but- in openSuSE 11.3 it will not find the 'C' header files.

==========================

version.h contains:

#define LINUX_VERSION_CODE 132642

#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 😎 + (c))

and ---

dusty-tr2:~ # uname -a

Linux dusty-tr2 2.6.34-9-desktop #1 SMP PREEMPT 2010-06-03 18:33:51 +0200 i686 i686 i386 GNU/Linux

Thanks,

Chuck

Reply
0 Kudos
Noel
Expert
Expert

Yes I have already tried all those "tricks".

What do you get from vmware-modconfig --console --install-all ? Does it show a more interesting set of error messages?

Reply
0 Kudos
chucktr
Contributor
Contributor

dusty-tr2:~ #

dusty-tr2:~ # vmware-modconfig --console --install-all

gcc and kernel headers must be installed

dusty-tr2:~ # gcc test.c

dusty-tr2:~ # ./a.out

Hello World

dusty-tr2:~ #

In response to the question you can see the result... followed by a compilation of "Hello World" and an execution of the same. My 'C' compiler and 'C' headers are installed and operational. Just not with VMware. Something is missing. Possibly cause this is a pre-release version of openSuSE. If you can think of anything else it would be appreciated.

Thanks,

Chuck

Later July 02, 2010 :: Obtained a new release from openSuSE. It is version 11.3 RC2. It installed finely. I then installed my saved VM and tried it out. I see others have tried this and complained aobut the same thing. In the previous tries I was using VMware 7.1 cause I still had it on my hard drive. -But- on this install I got the systm to read the DVD and install/compile with version 7.0. It went relatively smooth. I will try 7.1 again with in the next few days. It seems that "most" of the complaints have concerned VMware 7.1

Chuck

Reply
0 Kudos
robertthebob
Contributor
Contributor

It appears, in my installation of 11.3, that the header files are empty.

They appear to be present, but with zero size.

I've reinstalled them many times. I think this is an opensuse bug.

Best regards,

Bob

Reply
0 Kudos
fahmwalt
Contributor
Contributor

I had to do a clean install of opensuse 11.3 due to some other issues during update from 11.2. Installation of Workstation 7.1 on openSuSe 11.3 went fine after installing the dependent packages.

Reply
0 Kudos
rocketero
Contributor
Contributor

I'm also having problem installing VMware Workstation 7.0.1 into OpenSUSE 11.3 i586.

running the file .bundle is ok, but the problem is after intallation running "Vmware" as root, there is a prolem compiling the modules, in this case the "VMMON" module. here are the details:

running: Opensuse 11.3 (i586), VMware Workstation 7.0.1

here is the final syslog file:

Jul 26 14:13:20.937: app-3076970176| Log for VMware Workstation pid=29536 version=7.1.0 build=build-261024 option=Release

Jul 26 14:13:20.937: app-3076970176| The process is 32-bit.

Jul 26 14:13:20.937: app-3076970176| Host codepage=UTF-8 encoding=UTF-8

Jul 26 14:13:20.937: app-3076970176| Logging to /tmp/vmware-root/setup-29536.log

Jul 26 14:13:21.108: app-3076970176| System distribution is SuSE

Jul 26 14:13:21.108: app-3076970176| System version is 11.3

Jul 26 14:13:21.108: app-3076970176| modconf query interface initialized

Jul 26 14:13:21.108: app-3076970176| modconf library initialized

Jul 26 14:13:21.151: app-3076970176| Searching for GCC 4.5.

Jul 26 14:13:21.153: app-3076970176| Kernel compiled with: GCC 4.5

Jul 26 14:13:21.153: app-3076970176| Your GCC version: 4.5

Jul 26 14:13:21.157: app-3076970176| Searching for GCC 4.5.

Jul 26 14:13:21.159: app-3076970176| Kernel compiled with: GCC 4.5

Jul 26 14:13:21.159: app-3076970176| Your GCC version: 4.5

Jul 26 14:13:21.170: app-3076970176| Searching for GCC 4.5.

Jul 26 14:13:21.172: app-3076970176| Kernel compiled with: GCC 4.5

Jul 26 14:13:21.173: app-3076970176| Your GCC version: 4.5

Jul 26 14:13:21.188: app-3076970176| Searching for GCC 4.5.

Jul 26 14:13:21.190: app-3076970176| Kernel compiled with: GCC 4.5

Jul 26 14:13:21.190: app-3076970176| Your GCC version: 4.5

Jul 26 14:13:21.201: app-3076970176| Searching for GCC 4.5.

Jul 26 14:13:21.203: app-3076970176| Kernel compiled with: GCC 4.5

Jul 26 14:13:21.203: app-3076970176| Your GCC version: 4.5

Jul 26 14:13:21.250: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.257: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.262: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.267: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.272: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.301: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.306: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.313: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.319: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.325: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.328: app-3076970176| Searching for GCC 4.5.

Jul 26 14:13:21.330: app-3076970176| Kernel compiled with: GCC 4.5

Jul 26 14:13:21.330: app-3076970176| Your GCC version: 4.5

Jul 26 14:13:21.341: app-3076970176| Searching for GCC 4.5.

Jul 26 14:13:21.343: app-3076970176| Kernel compiled with: GCC 4.5

Jul 26 14:13:21.343: app-3076970176| Your GCC version: 4.5

Jul 26 14:13:21.390: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.394: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.400: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.405: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.411: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.415: app-3076970176| Searching for GCC 4.5.

Jul 26 14:13:21.417: app-3076970176| Kernel compiled with: GCC 4.5

Jul 26 14:13:21.417: app-3076970176| Your GCC version: 4.5

Jul 26 14:13:21.441: app-3076970176| Searching for GCC 4.5.

Jul 26 14:13:21.443: app-3076970176| Kernel compiled with: GCC 4.5

Jul 26 14:13:21.443: app-3076970176| Your GCC version: 4.5

Jul 26 14:13:21.516: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.522: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.527: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.531: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.536: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.827: app-3076970176| Trying to find a suitable PBM set for kernel 2.6.34-12-default.

Jul 26 14:13:21.827: app-3076970176| Building module vmmon.

Jul 26 14:13:21.828: app-3076970176| Extracting the sources of the vmmon module.

Jul 26 14:13:21.843: app-3076970176| Building module with command: /usr/bin/make -C /tmp/vmware-root/modules/vmmon-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/2.6.34-12-default/build/include CC=/usr/bin/gcc-4.5 GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.5

Jul 26 14:13:22.214: app-3076970176| Failed to compile module vmmon![/CODE]

I have not idea why it can not compile the vmmon module even that all pre-requisites have been met, gcc45, kernel headers, kernel devel, make, insmode, rmmode, etc.

help here would be greatly appreciated folks.

Reply
0 Kudos
fahmwalt
Contributor
Contributor

No problems with VMware Workstation 7.1 on OpenSUSE 11.3 x64

Reply
0 Kudos
chucktr
Contributor
Contributor

Hello,

Here it is a later date and there are problms running VMware 7.0 on openSuSE 11.3. Yes, I said that it was working on version RC2 -but- that changed with the Public Release. It can't find the header files again. Now then, my original question has never been answered... Does anyone know where VMware is looking for these headers -and- what it is looking for, that will state that it found them. I didn't save a copy of the RC2 that worked and there isn't one to be found. Because of the recent events, I'm sure this is a SuSE problem, but it would sure help to know what for and where VMware is looking.

Thanks for any and all responses,

Chuck

A later update to all this (02 Aug 10)

To any and all concerned:

A member of our openSuSE group, silenuz, has a way of compiling the VMware modules in openSuSE 11.3 that works. It is simple ... and yet it is not if you don't take the time to read over the script and understand the code. We should not have to do this -but- that is the way of 'puters and changes/updates. Anyway, I have used the script he presented and it works. First you "Install VMware Normally". Second try the /usr/bin/vmware execution. IF you get the "Can not find the Headers" then you can use this script.

Now then, please pay attention. IF you are new -or- are in a hurry. + PART of this needs "root permisions".+ The creation of the SubDir and the final copy of the files. In his example, he is expecting you to perform this operation from your own home dir. You are creating a SubDir in your home dir in which the files will be created and then copied over to the proper dir in /lib/modules.

I have a better explanation of this out on my WebPages at:

The script presented by our member is :

cd ~

rm -rf vmware-modules

mkdir vmware-modules

cd vmware-modules

find /usr/lib/vmware/modules/source -name "*.tar" -exec tar xf '{}' \;

mkdir -p /lib/modules/`uname -r`/misc

rm -f /lib/modules/`uname -r`/misc/{vmblock.ko,vmci.ko,vmmon.ko,vmnet.ko,vsock.ko}

cd vmblock-only; make; cd ..; cp -p vmblock.o /lib/modules/`uname -r`/misc/vmblock.ko

cd vmci-only; make; cd ..; cp -p vmci.o /lib/modules/`uname -r`/misc/vmci.ko

cd vmmon-only; make; cd ..; cp -p vmmon.o /lib/modules/`uname -r`/misc/vmmon.ko

cd vmnet-only; make; cd ..; cp -p vmnet.o /lib/modules/`uname -r`/misc/vmnet.ko

#cd vmppuser-only; make; cd ..; cp -p vmppuser.o /lib/modules/`uname -r`/misc/vmppuser.ko

cd vsock-only; make; cd ..; cp -p vsock.o /lib/modules/`uname -r`/misc/vsock.ko

depmod -a

service vmware restart

#If a new install, remove the not_configured tag or the error will keep coming back

rm -f /etc/vmware/not_configured

As I said above, the script is explained on my WebPage IF you need more info.

Thanks and have fun,

Chuck

Reply
0 Kudos
cmornard
Contributor
Contributor

I had a similar issue where vmware-config-tools.pl would not find the kernel-headers in OpenSuse 11.3.

Found this solution on the Web:

1. Become root

2. Install gcc, kernel-source, kernel-syms, make

3. cd /usr/src/linux

4. make cloneconfig

5. make modules_prepare

That should generate the kernel-headers that vmware-config-tools.pl requires.

Hope that helps.

Christian.

Reply
0 Kudos
hansom
Contributor
Contributor

After the upgrade

from opensuse 11.2 to 11.3, I had the same problem, but everything was

decided reinstalling the kernel package and kernel source code. But I just tried and the above instructions, may also it helped. 🙂

Reply
0 Kudos
chucktr
Contributor
Contributor

I found the answer(s) to my question. The latest "Update" changed the kernel which required another re-compile of VMware. Now then, somewhere the boat was missed in the Makefile creations and the directories. During the compile a message is put out from the file version.h. It states that there have been changes and you must create this symbolic link to a build dir. Well, it wasn't there and I had to create it in order to get a proper compile of VMware. Also had to do a compile of the modules in order to get everyone statisfied. A better explanation can be found on my WebPages at:

http://www.trcompu.com/Computers/LinNotes/NewSuSE-11-3.html#VMware_ref

I can now run VMware again in openSuSE 11.3 --- latest.

Reply
0 Kudos
nlobao
Contributor
Contributor

i there, i had the same problem.

maybe this script can help more people, it was made by malcolmewis @ suse forums:

===Begin Script===

#!/bin/bash

cd

cp -prn /usr/lib/vmware/modules/source /usr/lib/vmware/modules/source-backup

mkdir fixed

cd fixed

find /usr/lib/vmware/modules/source -name "*.tar" -exec tar xf '{}' \;

    1. add missing header on kernels

sed -i '/#include "compat_wait.h"/a\#include "compat_sched.h"' vmnet-only/vnetUserListener.c

sed -i '/#include "compat_page.h"/a\#include "compat_sched.h"' vmci-only/include/pgtbl.h

    1. comment out an invalid definition

sed -i 's|\(extern void poll_initwait(compat_poll_wqueues \*);\)|//\1|' *-only/include/compat_wait.h

tar cf vmblock.tar vmblock-only

tar cf vmci.tar vmci-only

tar cf vmmon.tar vmmon-only

tar cf vmnet.tar vmnet-only

tar cf vmppuser.tar vmppuser-only

tar cf vsock.tar vsock-only

cp -p *.tar /usr/lib/vmware/modules/source

cd /lib/modules/`uname -r`/build/include/linux

ln -s ../generated/autoconf.h

ln -s ../generated/utsrelease.h

cd

vmware-modconfig --console --install-all

  1. clean up

cd

rm -rf fixed

cd /lib/modules/`uname -r`/build/include/linux

rm autoconf.h utsrelease.h

cd /usr/lib/vmware/modules/

rm -rf source-backup

cd

===End Script===

hope it helps more people and btw, this will enable people to upgrade to latest version 7.1.1 (tested on opensuse 11.3_x64 kernel 2.6.34.7-0-2)

regards

Message was edited by: nlobao

"The only thing necessary for the triumph of evil, is that good men do nothing." Edmund Burke
Reply
0 Kudos