Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm justing to configure and setup vmware 5.0 on my linux box, but I'm running into problems. I was wondering if anyone got vmware 5.0 running with a 2.6.18 kernel. Currently the error i'm getting is this:
Code:
What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.18/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.18/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.18'
CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config0/vmmon-only/include/vmware.h:24,
from /tmp/vmware-config0/vmmon-only/linux/driver.c:44:
/tmp/vmware-config0/vmmon-only/include/vm_basic_defs.h:208:5: warning: "_MSC_VER" is not defined
In file included from /tmp/vmware-config0/vmmon-only/include/vcpuset.h:56,
from /tmp/vmware-config0/vmmon-only/include/modulecall.h:23,
from /tmp/vmware-config0/vmmon-only/common/vmx86.h:18,
from /tmp/vmware-config0/vmmon-only/linux/driver.h:15,
from /tmp/vmware-config0/vmmon-only/linux/driver.c:45:
/tmp/vmware-config0/vmmon-only/include/vm_atomic.h:54:5: warning: "_MSC_VER" is not defined
In file included from /tmp/vmware-config0/vmmon-only/linux/driver.h:19,
from /tmp/vmware-config0/vmmon-only/linux/driver.c:45:
/tmp/vmware-config0/vmmon-only/include/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined
/tmp/vmware-config0/vmmon-only/include/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined
In file included from /tmp/vmware-config0/vmmon-only/linux/driver.h:19,
from /tmp/vmware-config0/vmmon-only/linux/driver.c:45:
/tmp/vmware-config0/vmmon-only/include/compat_wait.h:60: error: conflicting types for `poll_initwait'
include/linux/poll.h:62: error: previous declaration of `poll_initwait'
In file included from /tmp/vmware-config0/vmmon-only/include/vm_asm.h:23,
from /tmp/vmware-config0/vmmon-only/linux/driver.c:48:
/tmp/vmware-config0/vmmon-only/include/vm_basic_asm.h:48:5: warning: "_MSC_VER" is not defined
/tmp/vmware-config0/vmmon-only/linux/driver.c:138: warning: initialization from incompatible pointer type
/tmp/vmware-config0/vmmon-only/linux/driver.c:142: warning: initialization from incompatible pointer type
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.18'
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.
Any ideas? My next step is to try a older kernel. a year or so ago I got vmware 5.0 running on a 2.6.11 kernel. I just wanted some feedback before I jump to an older kernel.
Brian1 you rock it worked, was this your script you wrote?
One thing to note, inorder for vmware to realize I had a 2.6.18 kernel header sources; I had to modify the version.h file in include/linux/ directory:
at the top I had to add this line
Code:
#define UTS_RELEASE "2.6.18"
I don't know if you had to do this for your 2.6.17x kernels.
Have fun! Also thanks again, I can use the new 2.6.18 kernel and vmware. life is good
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
I am guessing you are using precompiled kernels. May be standard for Slackware. I compile my own from source and just been to busy to update the 3 linux machines I have. Luckily for me 2 machines are identical and I just copy over the needed info from one to the other. Notebook is a bit picky. Have to modify a few items for my hardware. Just been busy updating firefox and extensions. Hacking a few to work under firefox 2.0.
slackware doesn't come with precompiled kernels either, i'm just thinking the 2.6.18 version.h file changed from previous versions, and was wondering if what your 2.6.17x kernels version.h file looked like. Anyways thanks for the tip.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
My 2.6.17.13 is this
#define UTS_RELEASE "2.6.17.13"
#define LINUX_VERSION_CODE 132625
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
You are right. I have the 2.6.18 and it is missing the line. Then I checked 2.6.18.2 and the file does not exist. Same applies to the 2.6.19-rc2. Very strange. Will make a note of this for future updates with vmware and kernels 2.6.18 or greater.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Well I installed the 2.6.18.3 kernel and did the vmware-any-any-tool install for vmware 5.0. It went fine even though /usr/src/linux-2.6.18.3/include/linux/version.h does not exist. So the file does not seem to be required. I did an old module an it uses the file to build with. It could not complete because not present.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.