VMware

This Question is Not Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
7 Replies Last post: Apr 20, 2008 1:05 AM by dolphans1  

Can't "vmware-config.pl" Mandriva with Linux 2.6.24.4-desktop-1mnb #1 SMP posted: Apr 13, 2008 8:19 PM

Click to view dolphans1's profile Enthusiast 118 posts since
Jan 3, 2005

Hello Peter and all,

I just installed Mandriva Linux 2008 Spring and I installed VMware 6.03 and I can't configure VMware, any clues or hints you can give me?

Here is a snippet of information it gives....

*make: *** http://vmmon.ko Error 2*
make: Leaving directory `/root/tmp/vmware-config3/vmmon-only'
Unable to build the vmmon module.

Command # vmware-config.pl
Making sure services for VMware Workstation are stopped.

Stopping VMware services:
Virtual machine monitor OK

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the theme icons?
[/usr/share/icons]

What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

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)? yes

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

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

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/root/tmp/vmware-config3/vmmon-only'
make -C /lib/modules/2.6.24.4-desktop-1mnb/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.24.4-desktop-1mnb'
CC [M] /root/tmp/vmware-config3/vmmon-only/linux/driver.o
CC [M] /root/tmp/vmware-config3/vmmon-only/linux/hostif.o
CC [M] /root/tmp/vmware-config3/vmmon-only/common/comport.o
CC [M] /root/tmp/vmware-config3/vmmon-only/common/cpuid.o
In file included from include/asm/bitops.h:2,
from /root/tmp/vmware-config3/vmmon-only/./include/vcpuset.h:74,
from /root/tmp/vmware-config3/vmmon-only/./include/modulecall.h:23,
from /root/tmp/vmware-config3/vmmon-only/common/vmx86.h:18,
from /root/tmp/vmware-config3/vmmon-only/common/hostif.h:18,
from /root/tmp/vmware-config3/vmmon-only/common/cpuid.c:14:
include/asm/bitops_32.h:9:2: error: #error only <linux/bitops.h> can be included directly
make[2]: *** [/root/tmp/vmware-config3/vmmon-only/common/cpuid.o] Error 1
make[1]: *** _module_/root/tmp/vmware-config3/vmmon-only Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24.4-desktop-1mnb'
make: *** http://vmmon.ko Error 2
make: Leaving directory `/root/tmp/vmware-config3/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 d-1


Click to view IamTHEvilONE's profile Virtuoso 1,399 posts since
Apr 1, 2008
I'm not sure what derivative Mandriva is ... but the common thing I have seen is that an basic install of some distributions don't include the kernel source or GCC/GCC-C++.

With OpenSUSE you need to use YaST to install those 3 items, the kernel source being something like "linux-kernel-source" in the software list.

If Mandriva has YUM or APT-GET, it should be simple to get the packages you are looking for. If it's YaST, you can add an online repository. Otherwise, you need to find the packages & install them before doing the ./vmware-config

I hope this steers you in the right direction.
Click to view jkeller's profile Novice 9 posts since
Dec 30, 2006
Have a look at this post that I made not too long ago:
http://communities.vmware.com/message/894791

See my last post to it, the answer is found here:
http://communities.vmware.com/docs/DOC-3850

The key is the line "include/asm/bitops_32.h:9:2: error: #error only <linux/bitops.h> can be included directly" (you and I both had that in our output).

This isn't a problem with Mandriva; you can see it in any distro with a kernel from the 2.6.24 series. It causes a bug in VMWare due to the way that headers have changed in the 2.6.24 kernel series. Until VMWare releases a new version (6.0.4?), the fix is to change a line in a file from using "asm/bitops.h" to "linux/bitops.h".

Hope that helps!
Click to view IamTHEvilONE's profile Virtuoso 1,399 posts since
Apr 1, 2008
Any Any patch is suppose to help get vmware tools installed on any linux based system.

It looks like the compiler used got an error, esp since it wasn't the expected one.

i.e. CC instead of GCC ... when it encounters the error it attempts to use GCC-C++, but can't locate the module in the default location.

at least, that's what it looks like to me.

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities