LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-27-2010, 05:51 PM   #1
bmd5599
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Rep: Reputation: 0
VMware Server 2.0 on Ubuntu 9.10 - vmmon module, C header file, running kernel


Having problems configuring VMware. Once I run # vmware-config.pl

Making sure services for VMware Server are stopped.

Stopping VMware autostart virtual machines:
Virtual machines failed
Stopping VMware management services:
VMware Virtual Infrastructure Web Access
VMware Server Host Agent failed
Stopping VMware services:
VMware Authentication Daemon done
Virtual machine monitor done

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? [/lib/modules/2.6.31-17-generic-pae/build/include]

I have targeted multiple location and install the kernel-source package, but continue to get the same message

"What is the location of the directory of C header files that match your running kernel? [/lib/modules/2.6.31-17-generic-pae/build/include]"

For all responses please use simple terms, because I am fairly new to linux.
 
Old 01-27-2010, 05:54 PM   #2
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
you can use the default locations for 99% of it. if it shows a location in brackets then just press [ENTER] and move on. I have vmware-server 2 myself and run it all out of default locations.
 
Old 01-28-2010, 09:16 AM   #3
bmd5599
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Need more suggestions

That's the problem the default did not work.
 
Old 01-28-2010, 09:27 AM   #4
Web31337
Member
 
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Blog Entries: 71

Rep: Reputation: 65
sure you have that directory?
aptitude show linux-headers-`uname -r`
is it installed? if not, install and try again.
http://www.howtoforge.com/how-to-ins...n-debian-lenny
 
Old 01-29-2010, 09:05 AM   #5
bmd5599
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Original Poster
Rep: Reputation: 0
I feel that I am close to resolving this but not yet :(

Thanks for the response Web31337, but it look like I have the linux-headers:

I entered: aptitude show linux-headers-`uname -r` (And response)

Package: linux-headers-2.6.31-17-generic-pae
State: installed
Automatically installed: no
Version: 2.6.31-17.54
Priority: optional
Section: devel
Maintainer: Ubuntu Kernel Team <kernel-team@lists.ubuntu.com>
Uncompressed Size: 8,806k
Depends: coreutils | fileutils (>= 4.0), linux-headers-2.6.31-17, libc6 (>= 2.8)
Provides: linux-headers, linux-headers-2.6
Description: Linux kernel headers for version 2.6.31 on x86
This package provides kernel header files for version 2.6.31 on x86.

This is for sites that want the latest kernel headers. Please read
/usr/share/doc/linux-headers-2.6.31-17/debian.README.gz for details

Any other suggestions?
 
Old 01-29-2010, 10:44 AM   #6
bmd5599
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Hopefully this is helpful...

When I try and configure it the outcome is this error:

I enter: vmware-config.pl

Making sure services for VMware Server are stopped.

Stopping VMware autostart virtual machines:
Virtual machines failed
Stopping VMware management services:
VMware Virtual Infrastructure Web Access
VMware Server Host Agent failed
Stopping VMware services:
VMware Authentication Daemon done
Virtual machine monitor done

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? [/lib/modules/2.6.31-17-generic-pae/build/include]

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.31-17-generic-pae/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.31-17-generic-pae'
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: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/./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] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-17-generic-pae'
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/go/unsup-linux-products" and "http://www.vmware.com/go/unsup-linux-tools".

Execution aborted.
 
Old 01-30-2010, 05:10 AM   #7
Web31337
Member
 
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Blog Entries: 71

Rep: Reputation: 65
you know the thing... i only got it to work with patches on gentoo. i failed to build it on debian. well, there are gentoo sources packages having those patches applied. you probably need latest kernel drivers sources, you can try gentoo ones, but I don't guarantee anything: http://mirror.csclub.uwaterloo.ca/ge...25.x86.tar.bz2
in fact i remeber i got to compile those ones @ debian but failed to do something else, what else it was i don't really remember probably they were for 2.0 and i had 1.0.9 vmware server.
Recently I made a few notes in my blog about that hacking.
googling around this problem can also find you some useful info, I'm sure.
Post back here, if that fails.
 
Old 03-31-2010, 02:28 PM   #8
Silly22
LQ Newbie
 
Registered: Mar 2002
Location: Edmonton, AB
Distribution: Mandrake 10.2, Ubuntu 6.10
Posts: 26

Rep: Reputation: 15
I had the same problems and the following two similar articles provided the solution and a patch to download and apply before running vmware-config.pl.

1. http://www.ubuntugeek.com/how-to-ins...10-karmic.html

2. http://blog.mymediasystem.net/uncate...-koala-x86_64/

A third resource:
3. https://help.ubuntu.com/community/VMware/Server

After I installed everything, going to https://localhost:8333/ or https://127.0.0.1:8333/ brought up the Login Name: and Password: webpage. As I had answered defaults to most of the questions during vmware configuration, I had to enable the Linux root user and password to login. Then I set up a Virtual Machine that I intended to put Windows 98 SE on. Everything went swimmingly, however, after rebooting my Linux Ubuntu host, visiting the web interface page at https://localhost:8333 or the one at 127.0.0.1 brought up a blank screen. I reboot a couple more times and found that http://localhost:8222/ had less problems but this didn't guarantee that all the components of vmware were running properly.

So I played around with the vmware scripts in the /etc/init.d directory. You can go to that directory directly or prepend "service" to each of the scripts. Either way, you'll want to start every command with sudo otherwise it won't let you run the vmware-related scripts. So from within /etc/init.d/ I tried various combinations of "sudo ./vmware-mgmt restart", "sudo ./vmware stop", "sudo ./vmware start" and just "vmware", which calls the binary in /usr/bin/vmware/. This seems to restart VMware if it's not running properly after rebooting my Linux Ubuntu host. Additionally, if "sudo ./vmware start" complains that vmware has not been configured and that you should run /usr/bin/vmware-config.pl again, then it's probably because it has created a 0 byte file named "not_configured" in the /etc/vmware/ folder which may be deleted.

Last edited by Silly22; 04-01-2010 at 12:59 AM. Reason: Added info about accessing web interface after reboot of host
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vmware-config under ubuntu 8.10 vmmon module compilation error jkzfixme Linux - Software 7 05-06-2009 05:45 PM
VMWare installation problem - vmmon module lonecrow Linux - Software 5 03-26-2009 12:57 PM
VMMON module error with vmware JET-33 Linux - Newbie 3 11-20-2006 05:47 PM
Trouble building vmmon module for VMware Server with Slackware 10.2 Lothoir Linux - Software 14 07-15-2006 10:01 PM
Including the header file of a module in kernel code omkarlagu Linux - Newbie 0 02-05-2006 08:55 AM


All times are GMT -5. The time now is 11:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration