Skip navigation
VMware
16,983 Views 15 Replies Last post: Nov 8, 2010 9:12 AM by dreamgear RSS
1 2 Previous Next
BusAL Lurker 3 posts since
May 2, 2010
Currently Being Moderated

May 2, 2010 2:39 AM

Ubuntu 10.04 and VMware Server 2

Hi all,

 

While compiling VMWare Server 2.0.2 on Ubuntu 10.04 I ran in to the following compile error:

 


/tmp/vmware-config3/vmnet-only/vnetUserListener.c: In function ‘VNetUserListenerEventHandler’:
/tmp/vmware-config3/vmnet-only/vnetUserListener.c:240: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)
/tmp/vmware-config3/vmnet-only/vnetUserListener.c:240: error: (Each undeclared identifier is reported only once
/tmp/vmware-config3/vmnet-only/vnetUserListener.c:240: error: for each function it appears in.)
/tmp/vmware-config3/vmnet-only/vnetUserListener.c: In function ‘VNetUserListenerRead’:
/tmp/vmware-config3/vmnet-only/vnetUserListener.c:282: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)
/tmp/vmware-config3/vmnet-only/vnetUserListener.c:282: error: implicit declaration of function ‘signal_pending’
/tmp/vmware-config3/vmnet-only/vnetUserListener.c:282: error: implicit declaration of function ‘schedule’
make[2]: *** [/tmp/vmware-config3/vmnet-only/vnetUserListener.o] Error 1
make[1]: *** [_module_/tmp/vmware-config3/vmnet-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-21-generic'
make: *** [http://vmnet.ko|http://vmnet.ko] Error 2
make: Leaving directory `/tmp/vmware-config3/vmnet-only'
Unable to build the vmnet module.

 

 

In order to correct this problem you have to add a header file to vnetUserListener.c. In my case the file is at the following location:

 


/usr/lib/vmware/modules/source/vmnet-only/vnetUserListener.c

 

 

Or find it with:

 

 

 


sudo find / -name vnetUserListener.c -print 

 

 

Open the file with your prefered editor (I prefer vim):

 


sudo vim /usr/lib/vmware/modules/source/vmnet-only/vnetUserListener.c

 

 

Add after the line #include <linux/poll.h> the line #include <linux/sched.h>, so afterwards the includes look like the following.

 


#include "driver-config.h" /* must be first */
#include <linux/netdevice.h>
#include <linux/poll.h>
#include <linux/sched.h>
#include "compat_skbuff.h"
#include "compat_wait.h"
#include "vnetInt.h"

 

 

Save the file, remove and now recompile with:

 


sudo /usr/bin/vmware-config.pl

 

 

It helped me. I hope this helps you too.

ulysse21mtp Lurker 2 posts since
May 6, 2010
Currently Being Moderated
2. May 6, 2010 10:35 AM in response to: BusAL
Re: Ubuntu 10.04 and VMware Server 2

hello

 

 

i try on kubuntu 10.04 but it doesn't work (i do not understand 

computering very well)

 

 

 

 

can you help me ?

 

 

 

 

i have :

 

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

               Re: Ubuntu 10.04 and VMware Server 2

 

               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.32-22-generic/build/include

 

               Extracting the sources of the vmmon module.

 

               Building the vmmon module.

 

               Using 2.6.x kernel build system.

               make: entrant dans le répertoire « /tmp/vmware-config0/vmmon-only »

               make -C /lib/modules/2.6.32-22-generic/build/include/.. SUBDIRS=$PWD

               SRCROOT=$PWD/. modules

               make[1]: entrant dans le répertoire «

               /usr/src/linux-headers-2.6.32-22-generic »

               CC Re: Ubuntu 10.04 and VMware Server 2  /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:70: note: previous declaration of ‘poll_initwait’

               was here

               In file included from

               /tmp/vmware-config0/vmmon-only/./include/vmware.h:38,

               from /tmp/vmware-config0/vmmon-only/linux/driver.c:99:

               /tmp/vmware-config0/vmmon-only/./include/vm_basic_types.h:108:7:

               warning: "__FreeBSD__" is not defined

               In file included from

               /tmp/vmware-config0/vmmon-only/./common/vmx86.h:32,

               from /tmp/vmware-config0/vmmon-only/linux/driver.h:29,

               from /tmp/vmware-config0/vmmon-only/linux/driver.c:101:

               /tmp/vmware-config0/vmmon-only/./include/x86msr.h:164:1: warning:

               "MSR_THERM2_CTL" redefined

               In file included from

               /usr/src/linux-headers-2.6.32-22-generic/arch/x86/include/asm/msr.h:4,

               from

               /usr/src/linux-headers-2.6.32-22-generic/arch/x86/include/asm/processor.h:21,

               from include/linux/prefetch.h:14,

               from include/linux/list.h:6,

               from include/linux/module.h:9,

               from

               /tmp/vmware-config0/vmmon-only/./include/compat_module.h:27,

               from /tmp/vmware-config0/vmmon-only/linux/driver.c:26:

               /usr/src/linux-headers-2.6.32-22-generic/arch/x86/include/asm/msr-index.h:227:1:

               warning: this is the location of the previous definition

               In file included from

               /tmp/vmware-config0/vmmon-only/./include/vcpuset.h:103,

               from

               /tmp/vmware-config0/vmmon-only/./include/modulecall.h:37,

               from

               /tmp/vmware-config0/vmmon-only/./common/vmx86.h:33,

               from /tmp/vmware-config0/vmmon-only/linux/driver.h:29,

               from /tmp/vmware-config0/vmmon-only/linux/driver.c:101:

               /tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:329:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:333:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:401:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:407:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:506:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:595:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:684:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:773:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:775:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:860:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:862:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:945:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:947:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:1028:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:1030:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:1223:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:1227:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:1536:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:1663:7: warning:

               "_MSC_VER" is not defined

               In file included from

               /tmp/vmware-config0/vmmon-only/./include/vm_basic_asm.h:46,

               from

               /tmp/vmware-config0/vmmon-only/./include/rateconv.h:45,

               from

               /tmp/vmware-config0/vmmon-only/./include/modulecall.h:40,

               from

               /tmp/vmware-config0/vmmon-only/./common/vmx86.h:33,

               from /tmp/vmware-config0/vmmon-only/linux/driver.h:29,

               from /tmp/vmware-config0/vmmon-only/linux/driver.c:101:

               /tmp/vmware-config0/vmmon-only/./include/vm_basic_asm_x86.h:62:7:

               warning: "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_basic_asm_x86.h:177:7:

               warning: "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_basic_asm_x86.h:346:7:

               warning: "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_basic_asm_x86.h:453:7:

               warning: "_MSC_VER" is not defined

               In file included from

               /tmp/vmware-config0/vmmon-only/./include/vm_asm.h:43,

               from /tmp/vmware-config0/vmmon-only/linux/driver.c:103:

               /tmp/vmware-config0/vmmon-only/./include/vm_asm_x86.h:486:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_asm_x86.h:779:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_asm_x86.h:820:7: warning:

               "_MSC_VER" is not defined

               /tmp/vmware-config0/vmmon-only/./include/vm_asm_x86.h:922:7: warning:

               "_MSC_VER" is not defined

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

               /tmp/vmware-config0/vmmon-only/./common/hostif.h:53:7: warning:

               "WINNT_DDK" is not defined

               /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 Erreur 1

               make[1]: *** Re: Ubuntu 10.04 and VMware Server 2 Erreur 2

               make[1]: quittant le répertoire «

               /usr/src/linux-headers-2.6.32-22-generic »

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

               make: quittant le répertoire « /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.

 

 

tglemser Novice 4 posts since
Jun 6, 2006
Currently Being Moderated
3. May 7, 2010 1:54 AM in response to: BusAL
Re: Ubuntu 10.04 and VMware Server 2

The Script from radu.cotescu.com worked very well for me . Walkthrough

 


cd /usr/local/src
wget [http://codebin.cotescu.com/vmware/vmware-server-2.0.x-kernel-2.6.3x-install.sh]
tar xvzf raducotescu-vmware-server-linux-2.6.3x-kernel-592e882.tar.gz
cd raducotescu-vmware-server-linux-2.6.3x-kernel-592e882/
tar xvzf  VMware-server-2.0.2-203138.x86_64.tar.gz #OF COURSE you have to copy the tar.gz to this dir first..
chmod +x vmware-server-2.0.x-kernel-2.6.3x-install.sh
./vmware-server-2.0.x-kernel-2.6.3x-install.sh 

 

As there is no way to submit bug reports (I found one), just one thing to add:

If you want to grant your admin-group access to the Web-GUI and your admins all have the "admin"-Group on the system as primary group, it just won't work. You have force the groupadd using


usermod -G admin -a &lt;username&gt;

as VMware Server seems to have a look at /etc/group and not at /etc/passwd and the primary users group.

ulysse21mtp Lurker 2 posts since
May 6, 2010
Currently Being Moderated
4. May 7, 2010 1:57 PM in response to: tglemser
Re: Ubuntu 10.04 and VMware Server 2

thanks

i'll try about the 19 when i'll go back in my ofice

then i'll post the result on the community

have a good day

 

pierre

 

 

 

tglemser <communities-emailer@vmware.com> a écrit :

 

,

 

A new message was posted in the thread "Ubuntu 10.04 and VMware Server 2":

 

http://communities.vmware.com/message/1529264#1529264

 

Author  : tglemser

Profile : http://communities.vmware.com/people/tglemser

Message:

 

vmbeppo Novice 4 posts since
Dec 10, 2009
Currently Being Moderated
5. May 10, 2010 6:30 AM in response to: tglemser
Re: Ubuntu 10.04 and VMware Server 2

 

Hi

 

 

This script worked perfectly for me too!

 

 

- Ubuntu 10.04 amd64

- VMware Server 2.0.2

 

 

ThomasHans Lurker 2 posts since
Feb 24, 2010
Currently Being Moderated
6. May 12, 2010 3:42 AM in response to: tglemser
Re: Ubuntu 10.04 and VMware Server 2

 

you made my Day - thank you very much!

 

 

 

 

 

works perfectly on Ubuntu 10.04 Kernel 2.6.32-22-generic

 

 

manwar Lurker 1 posts since
May 12, 2010
Currently Being Moderated
7. May 12, 2010 9:23 PM in response to: BusAL
Re: Ubuntu 10.04 and VMware Server 2

BusAL, thank you so very much.

After hours of reading, I found this post and my vmware is happily churning through my vms now

thks.

ThomasHans Lurker 2 posts since
Feb 24, 2010
Currently Being Moderated
8. May 13, 2010 2:03 AM in response to: ThomasHans
Re: Ubuntu 10.04 and VMware Server 2

 

You made my Day Yesterday - today after reboot the System i got

 

</div>

and need to rerun vmware-config.pl ( i will run again but after reboot it's gone again

 

 

 

 

enriconeri Lurker 1 posts since
Sep 15, 2006
Currently Being Moderated
9. Jun 1, 2010 1:41 AM in response to: BusAL
Re: Ubuntu 10.04 and VMware Server 2

dear all,

works perfectly on our server 10.04.

this patch rocks

thank you - i' d send you a nice bottle of Italian wine

 

Enrico

Polymorphic101 Lurker 1 posts since
Jun 22, 2010
Currently Being Moderated
11. Jun 22, 2010 6:35 PM in response to: BusAL
Re: Ubuntu 10.04 and VMware Server 2

I just upgraded to Ubuntu 10 and I am wanting to run VM Server.  I get through the script but when I try to go to https://192.168.1.131:8333 all I get is a blank page with the title "Loading..." if i click refresh I get an error saying connection lost.  Any ideas?

 

 

 

 

 

 

 

Thanks

 

 

 

 

 

 

 

 

 

Nick

 

 

 

 

 

EDIT:  also and Im not sure if this will make a difference but all settings are default except my Machine location was changed to /home/&lt;user&gt;/Virtual_Machines and I put the admin user to my specific user as well.

tglemser Novice 4 posts since
Jun 6, 2006
Currently Being Moderated
12. Jun 23, 2010 12:08 AM in response to: Polymorphic101
Re: Ubuntu 10.04 and VMware Server 2

I get through the script but when I try to go to https://192.168.1.131:8333

all I get is a blank page with the title "Loading..." if i click

refresh I get an error saying connection lost.  Any ideas?

 

 

Do you use Firefox to access the page? If so: This still seems to be an unfixed bug. Sad but true, use IE (maybe Chrome or Opera work, too, never tried), same here for me.

Gohuge Lurker 3 posts since
Dec 4, 2009
Currently Being Moderated
13. Oct 9, 2010 8:36 AM in response to: BusAL
Re: Ubuntu 10.04 and VMware Server 2

 

I keep seeing others having success with this but I still can't get this to work.   Everything looks like it's running (from Webmin all vmware services are running) but all I get is a blank page when I https:
localhost:8333 to the console.  Any ideas?  This happens from any computer on the network wih any browser (not a browser issue).

 

 

 

 

 

Thanks,

 

 

T

 

 

dreamgear Enthusiast 59 posts since
Aug 10, 2006
Currently Being Moderated
14. Nov 8, 2010 8:42 AM in response to: Gohuge
Re: Ubuntu 10.04 and VMware Server 2

This is happening to me as well.  Very disappointing.  Part of my strategy with VMware is to use ESX for a high-performance platform and Server on vanilla hardware as a backup and stopgap recovery platform.   This sort of makes the whole thing pointless.

Bookmarked By (0)

Share This Page

Communities