VMware Communities
tux-1
Contributor
Contributor

Problem installing VMWare on Mandriva 2008.0

Hello guys,

I am having a bit of an issue installing vmware workstation 5.5.5 on Mandriva 2008.0. I did a fresh install which run great. But now I am trying to get VMWare going which for me is essential. So far I have installed the kernel source package:

# uname -a

Linux localhost 2.6.22.9-laptop-1mdv #1 SMP Thu Sep 27 04:17:10 CEST 2007 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz GNU/Linux

# urpmi kernel-source

installing kernel-source-2.6.22.9-1mdv-1-1mdv2008.0.i586.rpm from /var/cache/urpmi/rpms

Preparing... ####################################################################################################################################

1/1: kernel-source-2.6.22.9-1mdv

####################################################################################################################################

but when I run the configure script I get:

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?

The directory of kernel headers (version 2.6.22.9-1mdvcustom) does not match

your running kernel (version 2.6.22.9-laptop-1mdv). 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?

What am I doing wrong? Why is it finding a custom version of the kernel that does not match when I installed a source package that at least by name is exactly the same?

Your help is greatly appreciated.

Thanks,

George

Reply
0 Kudos
11 Replies
tux-1
Contributor
Contributor

I made a little progress, but am stuck again....

I had the include directory path wrong, so I used the right one I think and got an even scarier message:

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

kernel? /usr/src/linux-2.6.22.9-laptop-1mdv/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-config0/vmmon-only'

make -C /usr/src/linux-2.6.22.9-laptop-1mdv/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/linux-2.6.22.9-laptop-1mdv'

CC /root/tmp/vmware-config0/vmmon-only/linux/driver.o

In file included from /root/tmp/vmware-config0/vmmon-only/linux/driver.c:80:

/root/tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...' before ‘compat_exit'

/root/tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...' before ‘exit_code'

/root/tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: warning: type defaults to ‘int' in declaration of ‘_syscall1'

make[2]: *** Error 1

make[1]: *** Error 2

make[1]: Leaving directory `/usr/src/linux-2.6.22.9-laptop-1mdv'

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

make: Leaving directory `/root/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/download/modules/modules.html" and

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

Execution aborted.

Any ideas???

Thanks,

George

Reply
0 Kudos
tux-1
Contributor
Contributor

I tried using the any-any unsupported patch and still got an error:

Building for VMware Workstation 5.5.2 or 5.5.3.

Using 2.6.x kernel build system.

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

make -C /usr/src/linux-2.6.22.9-laptop-1mdv/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/linux-2.6.22.9-laptop-1mdv'

CC /root/tmp/vmware-config1/vmmon-only/linux/driver.o

CC /root/tmp/vmware-config1/vmmon-only/linux/hostif.o

CC /root/tmp/vmware-config1/vmmon-only/common/comport.o

CC /root/tmp/vmware-config1/vmmon-only/common/cpuid.o

CC /root/tmp/vmware-config1/vmmon-only/common/hash.o

CC /root/tmp/vmware-config1/vmmon-only/common/memtrack.o

CC /root/tmp/vmware-config1/vmmon-only/common/phystrack.o

CC /root/tmp/vmware-config1/vmmon-only/common/task.o

gcc: error trying to exec 'cc1plus': execvp: No such file or directory

make[2]: *** Error 1

make[1]: *** Error 2

make[1]: Leaving directory `/usr/src/linux-2.6.22.9-laptop-1mdv'

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

make: Leaving directory `/root/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/download/modules/modules.html" and

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

Execution aborted.

I am noticing it says building for 5.5.2 and 5.5.3 do I have to go back to one of those versions to get it to work. Why is Mandriva 2008.0 not supported but 2006 and 2007 were?? I am assuming now that this is the problem??

Thanks.

Reply
0 Kudos
tux-1
Contributor
Contributor

I uninstalled vmware workstation 5.5.5 and installed 5.5.3, ran the any-any patch and still got the same error message:

Building for VMware Workstation 5.5.2 or 5.5.3.

Using 2.6.x kernel build system.

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

make -C /usr/src/linux-2.6.22.9-laptop-1mdv/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/linux-2.6.22.9-laptop-1mdv'

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

CC /root/tmp/vmware-config2/vmmon-only/linux/hostif.o

CC /root/tmp/vmware-config2/vmmon-only/common/comport.o

CC /root/tmp/vmware-config2/vmmon-only/common/cpuid.o

CC /root/tmp/vmware-config2/vmmon-only/common/hash.o

CC /root/tmp/vmware-config2/vmmon-only/common/memtrack.o

CC /root/tmp/vmware-config2/vmmon-only/common/phystrack.o

CC /root/tmp/vmware-config2/vmmon-only/common/task.o

gcc: error trying to exec 'cc1plus': execvp: No such file or directory

make[2]: *** Error 1

make[1]: *** Error 2

make[1]: Leaving directory `/usr/src/linux-2.6.22.9-laptop-1mdv'

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

make: Leaving directory `/root/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.

# gcc -version

gcc: unrecognized option '-version'

gcc: no input files

# gcc --version

gcc (GCC) 4.2.2 20070909 (prerelease) (4.2.2-0.RC.1mdv2008.0)

Copyright (C) 2007 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Any help is greatly appreciated!

Thanks,

George

Reply
0 Kudos
striderjw
Enthusiast
Enthusiast

This is only a shot in the dark as I don't use Mandriva and am not familiar with the naming conventions used in that distro.

The name of the running kernel includes 'laptop' and 'SMP'; the name of the kernel-source file does not. Does Mandriva have separate kernels (and sources) for single- and multi-CPU PCs? If so, you'll need to download the 'laptop', 'SMP' source file.

HTH

tux-1
Contributor
Contributor

Thanks for the hint that was helpful, but still I cannot compile the vmware module so I cannot run VMWare 5.5.5 on 2008.0 ... this is a bug inconvenience as I need to run windows at work.

Now I have the following kernel and sources:

Code:

$ uname -r

2.6.22.9-laptop-1mdv

$ls /usr/src/linux-2.6.22.9-laptop-1mdv/

3rdparty/ Documentation/ init/ lib/ net/ usr/

arch/ drivers/ ipc/ Makefile scripts/

block/ fs/ Kbuild mm/ security/

crypto/ include/ kernel/ Module.symvers sound/

When I run vmware-configure.pl I get:

Code:

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?

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.

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

make -C /usr/src/linux-2.6.22.9-laptop-1mdv/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/linux-2.6.22.9-laptop-1mdv'

CC /root/tmp/vmware-config5/vmmon-only/linux/driver.o

In file included from /root/tmp/vmware-config5/vmmon-only/linux/driver.c:80:

/root/tmp/vmware-config5/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...' before ‘compat_exit'

/root/tmp/vmware-config5/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...' before ‘exit_code'

/root/tmp/vmware-config5/vmmon-only/./include/compat_kernel.h:21: warning: type defaults to ‘int' in declaration of ‘_syscall1'

make[2]: *** Error 1

make[1]: *** Error 2

make[1]: Leaving directory `/usr/src/linux-2.6.22.9-laptop-1mdv'

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

make: Leaving directory `/root/tmp/vmware-config5/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.

Using the "any-any" patch results in this:

Code:

Building the vmmon module.

Building for VMware Workstation 5.5.2 or 5.5.3.

Using 2.6.x kernel build system.

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

make -C /usr/src/linux-2.6.22.9-laptop-1mdv/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/linux-2.6.22.9-laptop-1mdv'

CC /root/tmp/vmware-config6/vmmon-only/linux/driver.o

CC /root/tmp/vmware-config6/vmmon-only/linux/hostif.o

CC /root/tmp/vmware-config6/vmmon-only/common/comport.o

CC /root/tmp/vmware-config6/vmmon-only/common/cpuid.o

CC /root/tmp/vmware-config6/vmmon-only/common/hash.o

CC /root/tmp/vmware-config6/vmmon-only/common/memtrack.o

CC /root/tmp/vmware-config6/vmmon-only/common/phystrack.o

CC /root/tmp/vmware-config6/vmmon-only/common/task.o

gcc: error trying to exec 'cc1plus': execvp: No such file or directory

make[2]: *** Error 1

make[1]: *** Error 2

make[1]: Leaving directory `/usr/src/linux-2.6.22.9-laptop-1mdv'

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

make: Leaving directory `/root/tmp/vmware-config6/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.

So no luck again. I tried installing the devel kernel but it appeared that it is already installed so I just pointed the config script to that include directory.

Code:

# ls -l /usr/src/

total 16

lrwxrwxrwx 1 root root 19 2007-10-13 14:58 linux -> linux-2.6.22.9-1mdv/

drwxr-xr-x 20 root root 4096 2007-10-13 14:57 linux-2.6.22.9-1mdv/

drwxr-xr-x 20 root root 4096 2007-10-12 16:47 linux-2.6.22.9-laptop-1mdv/

drwxr-xr-x 3 root root 4096 2007-10-12 16:48 nvidia96xx-1.0-9639.4mdv2008.0/

drwxr-xr-x 3 root root 4096 2007-10-12 16:12 rpm/

but got the following error:

Code:

Building the vmmon module.

Building for VMware Workstation 5.5.2 or 5.5.3.

Using 2.6.x kernel build system.

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

make -C /usr/src/linux-2.6.22.9-laptop-1mdv/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/linux-2.6.22.9-laptop-1mdv'

CC /root/tmp/vmware-config6/vmmon-only/linux/driver.o

CC /root/tmp/vmware-config6/vmmon-only/linux/hostif.o

CC /root/tmp/vmware-config6/vmmon-only/common/comport.o

CC /root/tmp/vmware-config6/vmmon-only/common/cpuid.o

CC /root/tmp/vmware-config6/vmmon-only/common/hash.o

CC /root/tmp/vmware-config6/vmmon-only/common/memtrack.o

CC /root/tmp/vmware-config6/vmmon-only/common/phystrack.o

CC /root/tmp/vmware-config6/vmmon-only/common/task.o

gcc: error trying to exec 'cc1plus': execvp: No such file or directory

make[2]: *** Error 1

make[1]: *** Error 2

make[1]: Leaving directory `/usr/src/linux-2.6.22.9-laptop-1mdv'

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

make: Leaving directory `/root/tmp/vmware-config6/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.

Checking the manual for VMWare 2006 (http://www.vmware.com/pdf/ws6_manual.pdf) it appears that even that version does not support 2008 of course this version is quite new but the kernel I am running is not that new is it???

Thanks

Reply
0 Kudos
tux-1
Contributor
Contributor

Does anyone know if this is a problem with VMware and when it will be fixed???

Thanks

Reply
0 Kudos
franske
Contributor
Contributor

It is probably not an Vmware problem, but the naming scheme of the kernels/kernel-source of Mandriva.

You have to set it so, that it builds without the module being specific for the running kernel.

So it switched to VmwareServer (almost the same & free, 1.04).

This way I can keep it all more standard/no-tweaking (which you have to document and so on..).

It just runs (if you have wireless: don''t bridge your net to it).

Yes I have Mandy2008 too.

Franske

Reply
0 Kudos
tux-1
Contributor
Contributor

Could you please let me know how I would make the build not kernel specific??? Edit the perl script to remove the check???

Thanks.

George

Reply
0 Kudos
franske
Contributor
Contributor

George:

I suppose you could remove the check somewhere....but I would just install the stock VmWareServer2beta:

- it's free anyway,

- it DOES run,

- installs a LOT easier than 1.04,

- has almost the same functionality.

Better: you can install this on a guest too, and control it with your host!

If you DO install this, it normally runs the debug executables which are ssslllooowwww. Be sure to run the normal ones by renaming.

Frans.

Reply
0 Kudos
tux-1
Contributor
Contributor

I am using the Workstation though, so I am not sure why you are mentioning the server?

Thanks,

George

Reply
0 Kudos
franske
Contributor
Contributor

Because it is not that much different. It's got a good GUI too and well...it works!

But if you've paid good money for the workstation licence, then yes I understand you want to get that

going. But I think that WS 5xx just won't work without a lot of hassle, you need 6.02 I believe. I cannot be sure because I can't try (don't have a licence).

Frans

Reply
0 Kudos