LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 01-25-2010, 04:23 AM   #1
Xolo
Member
 
Registered: Jul 2004
Location: The Netherlands
Distribution: Mandrake, Knoppix, Coyote Linux, RedHat
Posts: 354
Blog Entries: 3

Rep: Reputation: 31
[MDV2010.0] VMware Server 2, stuck during install - C Header files?


During installation of VMware Server 2 from the tarball (VMware-server-2.0.1-156745.i386.tar.gz) provided by VMware proceeds as expected, until we reach this point:

Code:
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]


The path "/usr/src/linux/include" is a kernel header file directory, but it
does not contain the file "linux/version.h" as expected.  This can happen if
the kernel has never been built, or if you have invoked the "make mrproper"
command in your kernel directory.  In any case, you may want to rebuild your
kernel.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]
No matter what path you point it at, it is not accepted. 'version.h' is nowhere to be found on the system between the source files.

This system is running:
Code:
uname -r
2.6.31.6-desktop-1mnb
And to be sure I installed the right packages before starting, I checked these items:
  • kernel-source package matching running kernel
  • kernel-desktop586-devel package matching running kernel
  • xinetd
  • perl-devel
  • gcc
  • gcc-c++
  • any resulting dependancies

But it seems that when you install 'kernel sources', nowadays you don't get the full deal anymore.

I'd like to get this running, any suggestions?
 
Old 01-25-2010, 04:49 AM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Install kernel headers.
 
Old 01-25-2010, 07:06 AM   #3
Xolo
Member
 
Registered: Jul 2004
Location: The Netherlands
Distribution: Mandrake, Knoppix, Coyote Linux, RedHat
Posts: 354

Original Poster
Blog Entries: 3

Rep: Reputation: 31
Quote:
Originally Posted by Linux.tar.gz View Post
Install kernel headers.
I re-checked the already installed packages, and added three more next-best matches:
  • kernel-desktop-devel-2.6.31.6-1mnb-1-1mnb2.i586
  • kernel-desktop-devel-latest-2.6.31.6-1mnb2.i586
  • kernel-source-latest-2.6.31.6-1mnb2.i586

The default path suggested by VMware's installer points to a symlink present on the machine, which in turn points to the wrong kernel sources.
I again tried with the correct path:
Code:
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/src/linux-2.6.31.6-desktop-1mnb/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.31.6-desktop-1mnb/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.31.6-desktop-1mnb'                         
  CC [M]  /root/tmp/vmware-config0/vmmon-only/linux/driver.o                               
In file included from /root/tmp/vmware-config0/vmmon-only/linux/driver.c:31:               
/root/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 /root/tmp/vmware-config0/vmmon-only/./include/vmware.h:38,                            
                 from /root/tmp/vmware-config0/vmmon-only/linux/driver.c:99:                                
/root/tmp/vmware-config0/vmmon-only/./include/vm_basic_types.h:108:7: warning: "__FreeBSD__" is not defined 
In file included from /root/tmp/vmware-config0/vmmon-only/./include/vcpuset.h:103,                          
                 from /root/tmp/vmware-config0/vmmon-only/./include/modulecall.h:37,                        
                 from /root/tmp/vmware-config0/vmmon-only/./common/vmx86.h:33,                              
                 from /root/tmp/vmware-config0/vmmon-only/linux/driver.h:29,                                
                 from /root/tmp/vmware-config0/vmmon-only/linux/driver.c:101:                               
/root/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:329:7: warning: "_MSC_VER" is not defined         
/root/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:333:7: warning: "_MSC_VER" is not defined         
/root/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:401:7: warning: "_MSC_VER" is not defined         
/root/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:407:7: warning: "_MSC_VER" is not defined         
/root/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:506:7: warning: "_MSC_VER" is not defined         
/root/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:595:7: warning: "_MSC_VER" is not defined         
/root/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:684:7: warning: "_MSC_VER" is not defined         
/root/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:773:7: warning: "_MSC_VER" is not defined         
/root/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:775:7: warning: "_MSC_VER" is not defined         
/root/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:860:7: warning: "_MSC_VER" is not defined         
/root/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:862:7: warning: "_MSC_VER" is not defined         
/root/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:945:7: warning: "_MSC_VER" is not defined         
/root/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:947:7: warning: "_MSC_VER" is not defined         
/root/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:1028:7: warning: "_MSC_VER" is not defined        
/root/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:1030:7: warning: "_MSC_VER" is not defined        
/root/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:1223:7: warning: "_MSC_VER" is not defined        
/root/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:1227:7: warning: "_MSC_VER" is not defined        
/root/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:1536:7: warning: "_MSC_VER" is not defined        
/root/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:1663:7: warning: "_MSC_VER" is not defined        
In file included from /root/tmp/vmware-config0/vmmon-only/./include/vm_basic_asm.h:46,                      
                 from /root/tmp/vmware-config0/vmmon-only/./include/rateconv.h:45,
                 from /root/tmp/vmware-config0/vmmon-only/./include/modulecall.h:40,
                 from /root/tmp/vmware-config0/vmmon-only/./common/vmx86.h:33,
                 from /root/tmp/vmware-config0/vmmon-only/linux/driver.h:29,
                 from /root/tmp/vmware-config0/vmmon-only/linux/driver.c:101:
/root/tmp/vmware-config0/vmmon-only/./include/vm_basic_asm_x86.h:62:7: warning: "_MSC_VER" is not defined
/root/tmp/vmware-config0/vmmon-only/./include/vm_basic_asm_x86.h:177:7: warning: "_MSC_VER" is not defined
/root/tmp/vmware-config0/vmmon-only/./include/vm_basic_asm_x86.h:346:7: warning: "_MSC_VER" is not defined
/root/tmp/vmware-config0/vmmon-only/./include/vm_basic_asm_x86.h:453:7: warning: "_MSC_VER" is not defined
In file included from /root/tmp/vmware-config0/vmmon-only/./include/vm_asm.h:43,
                 from /root/tmp/vmware-config0/vmmon-only/linux/driver.c:103:
/root/tmp/vmware-config0/vmmon-only/./include/vm_asm_x86.h:486:7: warning: "_MSC_VER" is not defined
/root/tmp/vmware-config0/vmmon-only/./include/vm_asm_x86.h:779:7: warning: "_MSC_VER" is not defined
/root/tmp/vmware-config0/vmmon-only/./include/vm_asm_x86.h:820:7: warning: "_MSC_VER" is not defined
/root/tmp/vmware-config0/vmmon-only/./include/vm_asm_x86.h:922:7: warning: "_MSC_VER" is not defined
In file included from /root/tmp/vmware-config0/vmmon-only/linux/driver.c:119:
/root/tmp/vmware-config0/vmmon-only/./common/hostif.h:53:7: warning: "WINNT_DDK" is not defined
/root/tmp/vmware-config0/vmmon-only/linux/driver.c: In function ‘LinuxDriverSyncCallOnEachCPU’:
/root/tmp/vmware-config0/vmmon-only/linux/driver.c:1423: error: too many arguments to function ‘smp_call_function’
/root/tmp/vmware-config0/vmmon-only/linux/driver.c: In function ‘LinuxDriver_Ioctl’:
/root/tmp/vmware-config0/vmmon-only/linux/driver.c:1987: error: ‘struct task_struct’ has no member named ‘euid’
/root/tmp/vmware-config0/vmmon-only/linux/driver.c:1987: error: ‘struct task_struct’ has no member named ‘uid’
/root/tmp/vmware-config0/vmmon-only/linux/driver.c:1988: error: ‘struct task_struct’ has no member named ‘fsuid’
/root/tmp/vmware-config0/vmmon-only/linux/driver.c:1988: error: ‘struct task_struct’ has no member named ‘uid’
/root/tmp/vmware-config0/vmmon-only/linux/driver.c:1989: error: ‘struct task_struct’ has no member named ‘egid’
/root/tmp/vmware-config0/vmmon-only/linux/driver.c:1989: error: ‘struct task_struct’ has no member named ‘gid’
/root/tmp/vmware-config0/vmmon-only/linux/driver.c:1990: error: ‘struct task_struct’ has no member named ‘fsgid’
/root/tmp/vmware-config0/vmmon-only/linux/driver.c:1990: error: ‘struct task_struct’ has no member named ‘gid’
/root/tmp/vmware-config0/vmmon-only/linux/driver.c:2007: error: too many arguments to function ‘smp_call_function’
make[2]: *** [/root/tmp/vmware-config0/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/root/tmp/vmware-config0/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31.6-desktop-1mnb'
make: *** [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/go/unsup-linux-products" and
"http://www.vmware.com/go/unsup-linux-tools".

Execution aborted.
This time the installer accepts the path, but fails during build.
 
Old 01-26-2010, 07:33 AM   #4
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Seems you did it the right way.

Maybe uninstall all kernel sources packages, and reinstall only kernel-source-latest-2.6.31.6-1mnb2.i586 ?
 
Old 02-01-2010, 07:59 AM   #5
Xolo
Member
 
Registered: Jul 2004
Location: The Netherlands
Distribution: Mandrake, Knoppix, Coyote Linux, RedHat
Posts: 354

Original Poster
Blog Entries: 3

Rep: Reputation: 31
Quote:
Originally Posted by Linux.tar.gz View Post
reinstall only kernel-source-latest-2.6.31.6-1mnb2.i586 ?
"kernel-source-latest-2.6.31.6-1mnb2.i586" appears to be hidden under the package name "kernel-source-latest" in Mandriva's software management program. I'm glad they at least list the version and release number next to it in separate columns, else I would not have been able to identify it.. because "kernel-source-latest-2.6.31.6-1mnb2.i586" will not appear in a package search even if set to search 'all'.

Result of selecting it:

Code:
The following 2 packages are going to be installed:

- kernel-source-2.6.31.6-1mnb-1-1mnb2.i586
- kernel-source-latest-2.6.31.6-1mnb2.i586

284MB of additional disk space will be used.

50MB of packages will be retrieved.

Is it ok to continue?

Unfortunately, this apparently does not include the 'version.h' file VMware is looking for.

Last edited by Xolo; 02-01-2010 at 08:00 AM.
 
Old 02-03-2010, 02:23 AM   #6
Xolo
Member
 
Registered: Jul 2004
Location: The Netherlands
Distribution: Mandrake, Knoppix, Coyote Linux, RedHat
Posts: 354

Original Poster
Blog Entries: 3

Rep: Reputation: 31
Yesterday's updates put me at kernel 2.6.31.12-desktop-1mnb on this notebook. It also updated the source packages, but no sign of version.h anywhere.
 
Old 02-03-2010, 02:38 PM   #7
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Unfortunately, i can't help you more.
I don't use MDV since 2003 and i usually compile kernel myself... Maybe should you consider it ?
Anyway, i wish you good luck.
 
Old 02-04-2010, 02:53 AM   #8
Xolo
Member
 
Registered: Jul 2004
Location: The Netherlands
Distribution: Mandrake, Knoppix, Coyote Linux, RedHat
Posts: 354

Original Poster
Blog Entries: 3

Rep: Reputation: 31
That's okay.
I get the feeling Mandriva has gone a bit overboard with their customizations.
Unfortunately I can't afford to make many mistakes learning to compile my own kernel, I need this machine for work purposes, adding VMware to the mix was supposed to be a half day exercise so I could continue studying virtualization.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VmWare install, header files, fedora core 4 jaa1180 Linux - Software 4 03-03-2006 09:44 PM
vmware looking for c header files for kernel zuessh Debian 4 07-23-2005 08:12 AM
C Header files (VMWare Install) mr.linux.noob Linux - General 2 04-05-2004 11:33 AM
location of dir of C header files? VMWARE install.. s7nner Linux - Newbie 3 09-07-2003 11:32 PM
RH8, vmware install asking for C header files s7nner Linux - Newbie 2 05-07-2003 07:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 09:50 PM.

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
Open Source Consulting | Domain Registration