VMware Communities
iaprops
Contributor
Contributor

Help installing VMWare Wrkstn on Ubuntu Feisty

Hello all,

I am attempting to install VM Workstation 5.5.3 on Ubuntu Feisty Fawn 7.04 on an HP nx9420 (which has an ATI x1600 gfx card and is running Beryl 3D window enhancements - mentioning detail incase it's relevant).

When I try to run the vmware-install.pl script I get the following output:

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-3.4". 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 `/tmp/vmware-config0/vmmon-only'

make -C /lib/modules/2.6.20-15-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'

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

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

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

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

/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]: *** \[_module_/tmp/vmware-config0/vmmon-only] Error 2

make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic'

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/download/modules/modules.html" and

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

Execution aborted.

I can't work out what I need to do to get this to install. Any help would be appreciated. Thanks.

0 Kudos
8 Replies
RDPetruska
Leadership
Leadership

Since you are running on an unSupported Linux host and/or kernel, you will probably need Petr's latest vmware-any-any-update patch http://platan.vc.cvut.cz/ftp/pub/vmware/

0 Kudos
redboot
Contributor
Contributor

Ran this. It did not seem to make any difference.

0 Kudos
norahaura
Contributor
Contributor

This patch worked great for me. I ran Petr's vmware-any-any-update patch and it did the following:

norahaura@norah-desktop:~/Downloads/vmware-any-any-update109.tar.gz_FILES/vmware-any-any-update109$ sudo ./runme.pl

Password:

Updating /usr/bin/vmware-config.pl ... now patched

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? \[yes] y

Making sure services for VMware Server are stopped.

Stopping VMware services:

Virtual machine monitor done

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the mime type 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 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.

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.

Building for VMware Server 1.0.0.

Using 2.6.x kernel build system.

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

make -C /lib/modules/2.6.20-15-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'

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

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

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

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

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

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

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

cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++

cc1plus: warning: command line option "-Wno-pointer-sign" is valid for C/ObjC but not for C++

cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++

/tmp/vmware-config1/vmmon-only/common/task_compat.h: In function ‘void Task_Switch_V45(VMDriver*, Vcpuid)’:

/tmp/vmware-config1/vmmon-only/common/task_compat.h:1713: warning: ‘sysenterState.SysenterStateV45::validEIP’ may be used uninitialized in this function

/tmp/vmware-config1/vmmon-only/common/task_compat.h:1713: warning: ‘sysenterState.SysenterStateV45::cs’ may be used uninitialized in this function

/tmp/vmware-config1/vmmon-only/common/task_compat.h:1713: warning: ‘sysenterState.SysenterStateV45::rsp’ may be used uninitialized in this function

/tmp/vmware-config1/vmmon-only/common/task_compat.h:1713: warning: ‘sysenterState.SysenterStateV45::rip’ may be used uninitialized in this function

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

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

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

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

Building modules, stage 2.

MODPOST 1 modules

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

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

make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic'

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

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

The module loads perfectly in the running kernel.

Do you want networking for your virtual machines? (yes/no/help) \[yes]

...............

It looks like I am ready to config now Smiley Happy

Thx!

0 Kudos
norahaura
Contributor
Contributor

I found I also had to install the package xinetd (I am running Ubuntu Desktop/not Server, so didn't have this installed automatically). Then just had to run sudo vmware-config.pl again.

0 Kudos
Verros
Contributor
Contributor

I had this problem as well, after upgrading from Edgy to Fiesty. I was able to fix the problem after installing build-essential.

Do a search in Synaptic or run the following on the command line

sudo apt-get install build-essential

It must have been uninstalled when I upgraded.

0 Kudos
RenGale
Contributor
Contributor

I am using Workstation 5.5.2 in Xubuntu 7.04 released. I had the similar problem with vmmon module when running the config.pl script. The problem was solved after I installed g++ compiler. Give it a try!

sudo aptitude install g++

the run the config.pl script again

Smiley Happy

0 Kudos
jamesdownes
Contributor
Contributor

I have just installed VMware Workstation 5.5.4 build 44386 on Feisty X64.

I originally got the same/similar failure to compile a new vmmon module as you did.

The solution that worked for me was to install the vmware-any-any-update patch as someone else has suggested, and then modifying the vmmon as per the instructions here:

http://kb.barnoid.com/?p=18

Then it compiled and ran like a dream.

hth

James Downes

www.pancentric.com

0 Kudos
DrNic
Contributor
Contributor

Hi all

Sorry - daft nube question, I guess! Running Kubuntu 7.04, Kernel 2.6.20-16-386, trying to install VM Workstation 6.02. Got the vm module error as described in this thread. tried to the "any-any" patch which said.....

nic@nic-laptop:~/Files/vmware-any-any-update115$ sudo ./runme.pl

Password:

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.

Proceed on to the config.pl for VM, as expected but keep stalling here....

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.

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

kernel?

The path "/usr/src/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.20-16-generic/build/include

The directory of kernel headers (version 2.6.20-16-generic) does not match your

running kernel (version 2.6.20-16-386). 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-headers-2.6.20-16-generic/include

The directory of kernel headers (version 2.6.20-16-generic) does not match your

running kernel (version 2.6.20-16-386). 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? /lib/modules/2.6.20-16-generic/build/include

The directory of kernel headers (version 2.6.20-16-generic) does not match your

running kernel (version 2.6.20-16-386). Even if the module were to compile

successfully, it would not load into the running kernel.

No matter what I try as the location for the header files it keeps on baulking (as can be seen!).

Where should I be specifying the location of the header files???

Any help greatly appreciated! (I have already tried the Xinetd, and G++ ideas on this thread, the remaining patching of vmmon-only/include/compat_kernel.h seems to apply to when the compile fails, a stage where I haven't even reached as I can't get past specifying the headers!!)

thanks

Nic

0 Kudos