VMware Communities > VMTN > VMware Server > VMware Server 2 > Installation & Upgrade > Discussions
1 2 Previous Next
22 Replies Last post: Aug 14, 2009 11:37 AM by meubeukeu
Reply

Here is patch for 2.6.30 kernel for VMware Server 2.0.1 build-156745 x_64

Jun 16, 2009 7:34 AM

Click to view michelemase's profile Novice michelemase 34 posts since
Nov 11, 2005
After updating the kernel 2.6.30, I couldn't compile modules. The error was:

...

CC [M] /tmp/vmware-config2/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config2/vmmon-only/linux/driver.c:31:
/tmp/vmware-config2/vmmon-only/./include/compat_wait.h:78: error: conflicting types for ‘poll_initwait’
include/linux/poll.h:67: error: previous declaration of ‘poll_initwait’ was here
/tmp/vmware-config2/vmmon-only/linux/driver.c: In function ‘LinuxDriverSyncCallOnEachCPU’:
/tmp/vmware-config2/vmmon-only/linux/driver.c:1423: error: too many arguments to function ‘smp_call_function’
/tmp/vmware-config2/vmmon-only/linux/driver.c: In function ‘LinuxDriver_Ioctl’:
/tmp/vmware-config2/vmmon-only/linux/driver.c:1987: error: ‘struct task_struct’ has no member named ‘euid’
/tmp/vmware-config2/vmmon-only/linux/driver.c:1987: error: ‘struct task_struct’ has no member named ‘uid’
/tmp/vmware-config2/vmmon-only/linux/driver.c:1988: error: ‘struct task_struct’ has no member named ‘fsuid’
/tmp/vmware-config2/vmmon-only/linux/driver.c:1988: error: ‘struct task_struct’ has no member named ‘uid’
/tmp/vmware-config2/vmmon-only/linux/driver.c:1989: error: ‘struct task_struct’ has no member named ‘egid’
/tmp/vmware-config2/vmmon-only/linux/driver.c:1989: error: ‘struct task_struct’ has no member named ‘gid’
/tmp/vmware-config2/vmmon-only/linux/driver.c:1990: error: ‘struct task_struct’ has no member named ‘fsgid’
/tmp/vmware-config2/vmmon-only/linux/driver.c:1990: error: ‘struct task_struct’ has no member named ‘gid’
/tmp/vmware-config2/vmmon-only/linux/driver.c:2007: error: too many arguments to function ‘smp_call_function’
make[2]: *** [/tmp/vmware-config2/vmmon-only/linux/driver.o] Error 1
make[1]: *** _module_/tmp/vmware-config2/vmmon-only Error 2
...

Thanx to user Krellan on his post http://communities.vmware.com/thread/208963
Changing a little his patch and shell file, now it's possible to work with kernel 2.6.30 on vmware server 2.0.1
I've successfully tested it on ubuntu x_64 (9.04).
I hope it will be useful
Regards Michele

Reply Re: Here is patch for 2.6.30 kernel for VMware Server 2.0.1 build-156745 x_64 Jun 16, 2009 6:34 PM
Click to view BigThumper's profile Lurker BigThumper 1 posts since
Jun 16, 2009
Just upgraded to 2.6.30 and had a momentary panic attack when VM 2.0.1 wouldn't compile. The patches work beautifully - many thanks!
Reply Re: Here is patch for 2.6.30 kernel for VMware Server 2.0.1 build-156745 x_64 Jun 17, 2009 8:24 AM
Click to view kewi's profile Lurker kewi 1 posts since
Jun 17, 2009

Have been searching around the net and finally hit the jackpot. Thx a lot for this. Worked like a charm.

Really needed to get the 2.6.30 kernel working with everything.

/Kenneth

Reply Re: Here is patch for 2.6.30 kernel for VMware Server 2.0.1 build-156745 x_64 Jun 17, 2009 12:38 PM
in response to: kewi
Click to view Justin.King's profile Novice Justin.King 16 posts since
Oct 8, 2008

As someone who knows how to do little more than tar xzf and ./vmware-config.pl could you possibly explain how to use this patch?


Reply Re: Here is patch for 2.6.30 kernel for VMware Server 2.0.1 build-156745 x_64 Jun 17, 2009 11:34 PM
in response to: Justin.King
Click to view michelemase's profile Novice michelemase 34 posts since
Nov 11, 2005

Like explaned in the post http://communities.vmware.com/thread/208963

Simply:

-Download both files;

-Move in the download dir (eg. cd Downloads)

-As super user (eg. root) digit: bash vmware-server.2.0.1_x64-modules-2.6.30-fix.sh

-Done!

Ciao Michele

Reply Re: Here is patch for 2.6.30 kernel for VMware Server 2.0.1 build-156745 x_64 Jun 23, 2009 8:43 PM
in response to: michelemase
Click to view ubauba's profile Lurker ubauba 1 posts since
Jun 23, 2009
sorry guys i triend to apply the patch and rerun the installation but gave me again the errors, can anyon tell me what's the procedure to get vmware installed?
Reply Re: Here is patch for 2.6.30 kernel for VMware Server 2.0.1 build-156745 x_64 Jun 28, 2009 5:40 AM
in response to: ubauba
Click to view salnajjar's profile Lurker salnajjar 1 posts since
Oct 6, 2005
I had some problems with this too, but it was down to the fact that I had installed vmware into /usr/local and not plain /usr.

Anyway, here's what I did if it helps.

cd /usr/src
mkdir vmware-patches
cd vmware-patches
wget http://communities.vmware.com/servlet/JiveServlet/download/1285430-24470/vmware-server.2.0.1_x64-modules-2.6.30-fix.sh
wget http://communities.vmware.com/servlet/JiveServlet/download/1285430-24471/vmware-server.2.0.1_x64-modules-2.6.30-fix.patch
chmod 700 vmware-server.2.0.1_x64-modules-2.6.30-fix.sh
cp /usr/local/lib/vmware/modules/source/*.tar .
./vmware-server.2.0.1_x64-modules-2.6.30-fix.sh

Seri
Reply Re: Here is patch for 2.6.30 kernel for VMware Server 2.0.1 build-156745 x_64 Jun 28, 2009 9:05 AM
Click to view jeff.traylor's profile Lurker jeff.traylor 1 posts since
Apr 26, 2008

Could you possibly post a patch/script for the 32 bit version instead of the 64?

Or, else, please note what I should edit in your files for the VMWare Server 2.0.1 build-156745 to work with my new 2.6.30 kernel.

Reply Re: Here is patch for 2.6.30 kernel for VMware Server 2.0.1 build-156745 x_64 Jun 29, 2009 12:49 AM
in response to: jeff.traylor
Click to view OOPMan's profile Lurker OOPMan 4 posts since
Jun 29, 2009
This patch works fine with the 32-bit version. Source code is not generally that tuned towards being 32bit vs. 64-bit.

Anyways, I've tested the patch on my 32-bit VMware Server 2.0.1 build-156745 and it works fine.

There is, however, one problem. Whenever my machine restarts, VMWare refuses to load. It's somehow able to
detect that the driver it's running have been modified in some way and refuses to load them. If I run vmware-config
again it instructs me to delete the vmmon, vmnet and vmacpi drivers as they were not built by vmware-config
(Even though they were...)

Does anyone have any ideas what the fix for this would be?
Reply Re: Here is patch for 2.6.30 kernel for VMware Server 2.0.1 build-156745 x_64 Jun 29, 2009 12:55 AM
in response to: salnajjar
Click to view michelemase's profile Novice michelemase 34 posts since
Nov 11, 2005

In response to salnajjar:

just change line 11 of installer VMMODDIR="/usr/lib/vmware/modules" to where you have your installation, eg: VMMODDIR="/usr/local/lib/vmware/modules" and it should work!

The installer is not a general purpose one!

Regards Michele

Reply Re: Here is patch for 2.6.30 kernel for VMware Server 2.0.1 build-156745 x_64 Jun 29, 2009 2:25 AM
in response to: jeff.traylor
Click to view michelemase's profile Novice michelemase 34 posts since
Nov 11, 2005

The vmware code is the same for 32 and 64 bit; so, the patch should work both the versions

ciao

Michele

Reply Re: Here is patch for 2.6.30 kernel for VMware Server 2.0.1 build-156745 x_64 Jun 29, 2009 4:09 AM
in response to: OOPMan
Click to view michelemase's profile Novice michelemase 34 posts since
Nov 11, 2005

In response to OOPMan:

try this: stop vmware services;

delete in /lib/modules/$(uname -r)/misc

vmci.ko, vmci.o, vmmon.ko, vmmon.o, vmnet.ko, vmnet.o

use the patch

Ciao Michele

Reply Re: Here is patch for 2.6.30 kernel for VMware Server 2.0.1 build-156745 x_64 Jun 29, 2009 8:54 AM
Click to view newnet82's profile Lurker newnet82 2 posts since
Jun 29, 2009

HI,

I installed a slack 12.2.

I upgraded to the kernel 2.6.30

I downloaded VMware-server-2.0.1-156745.i386.tar.gz and the two files (.patch and .sh)

I run the .sh . All is fine

Now I run the vmware-install.pl

When the program try to build the vmmon module I have the same error as before the patch.

Why ?

The error is
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmon-only'
make -C /lib/modules/2.6.30/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.30'
CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config0/vmmon-only/linux/driver.c:31:
/tmp/vmware-config0/vmmon-only/./include/compat_wait.h:78: error: conflicting types for 'poll_initwait'
include/linux/poll.h:67: error: previous declaration of 'poll_initwait' was here
/tmp/vmware-config0/vmmon-only/linux/driver.c: In function 'LinuxDriverSyncCallOnEachCPU':
/tmp/vmware-config0/vmmon-only/linux/driver.c:1423: error: too many arguments to function 'smp_call_function'
/tmp/vmware-config0/vmmon-only/linux/driver.c: In function 'LinuxDriver_Ioctl':
/tmp/vmware-config0/vmmon-only/linux/driver.c:1987: error: 'struct task_struct' has no member named 'euid'
/tmp/vmware-config0/vmmon-only/linux/driver.c:1987: error: 'struct task_struct' has no member named 'uid'
/tmp/vmware-config0/vmmon-only/linux/driver.c:1988: error: 'struct task_struct' has no member named 'fsuid'
/tmp/vmware-config0/vmmon-only/linux/driver.c:1988: error: 'struct task_struct' has no member named 'uid'
/tmp/vmware-config0/vmmon-only/linux/driver.c:1989: error: 'struct task_struct' has no member named 'egid'
/tmp/vmware-config0/vmmon-only/linux/driver.c:1989: error: 'struct task_struct' has no member named 'gid'
/tmp/vmware-config0/vmmon-only/linux/driver.c:1990: error: 'struct task_struct' has no member named 'fsgid'
/tmp/vmware-config0/vmmon-only/linux/driver.c:1990: error: 'struct task_struct' has no member named 'gid'
/tmp/vmware-config0/vmmon-only/linux/driver.c:2007: error: too many arguments to function 'smp_call_function'
make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] Error 1
make[1]: *** _module_/tmp/vmware-config0/vmmon-only Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.30'
make: *** http://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.

Thx

Reply Re: Here is patch for 2.6.30 kernel for VMware Server 2.0.1 build-156745 x_64 Jun 30, 2009 12:09 AM
in response to: michelemase
Click to view OOPMan's profile Lurker OOPMan 4 posts since
Jun 29, 2009
Nope, that doesn't fix it. Gah, this is a real pain.
Reply Re: Here is patch for 2.6.30 kernel for VMware Server 2.0.1 build-156745 x_64 Jun 30, 2009 1:18 AM
in response to: newnet82
Click to view michelemase's profile Novice michelemase 34 posts since
Nov 11, 2005

Since you receive the same message when the patch is missing I suppose there was something wrong. I seeems like you are still using the old drivers. It may be caused because it's a first installation or a reinstallation.

Try the following:

Simply patch the installation files (usually in ./vmware-server-distrib/lib/modules/source/) and retry. It should work.

Regards, Michele

1 2 Previous Next
Actions

Copyright © 2009 VMware, Inc. All rights reserved.

rss feed