Thursday, November 16, 2006

VMware server on fedora core 6

Vmware server on fedora core 6 is having problem while configuring it with vmware-config.pl. The error trace is:
/tmp/vmware-config1/vmnet-only/procfs.c:33:26: error: linux/config.h: No such file or directory
make[2]: *** [/tmp/vmware-config1/vmnet-only/procfs.o] Error 1
make[1]: *** [_module_/tmp/vmware-config1/vmnet-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686'
make: *** [vmnet.ko] Error 2
make: Leaving directory `/tmp/vmware-config1/vmnet-only'
Unable to build the vmnet module.

The problem as evident from the trace is because of the missing config.h file at this location
/usr/src/kernels/2.6.18-1.2798.fc6-i686/include/linux/config.h

Fix for the problem is to create an empty config.h file at this location /usr/src/kernels/2.6.18-1.2798.fc6-i686/include/linux/.
$ touch /usr/src/kernels/2.6.18-1.2798.fc6-i686/include/linux/config.h
will do the magic.


cheers, make world open...

21 comments:

vprajan said...

this entry was very useful man..

Anonymous said...

Thanks a lot for the post - it solved my problem!

Max said...

same for me: you just solved my problem!! googleing for the error message worked!

Anonymous said...

sir, im still unable to do confiure..i have done the same steps as u have mentioned in ur blog. Im getting this error please see that...


In file included from /tmp/vmware-config0/vmmon-only/linux/hostif.c:3608:
/tmp/vmware-config0/vmmon-only/linux/hostif_compat.h: In function ‘properties’:
/tmp/vmware-config0/vmmon-only/linux/hostif_compat.h:513: error: expected ‘:’ or ‘)’ before ‘UTS_RELEASE’
make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/hostif.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/vmmon-only'
Unable to build the vmmon module.

Anonymous said...

if everyone do the same think, linux will become more easy and popular!

Anonymous said...

Great it worked!

Unknown said...

good find thanks i had been working on this for hours.

Rams said...

Thanks a lot man, didn't even bother to check the error message and hit google straight due to time pressure. You made my day.

Anonymous said...

it took an alternative method for me to get vmware going on fc6. If you have an x86 then theres a bug on the fc6 page telling about how it loads the wrong kernel. to fix:
#yum install yum-utils
#yumdownloader kernel.i686
then if your running the current kernel do
#rpm -ivh --replacefiles --replacepkgs kernel-2*.i686.rpm
or if you just downloaded a newer kernel you can leave out the replace files and pkgs statements.
That's how I got it going

Anonymous said...

Thx, I've been searching for this solution.

Anonymous said...

Thanks. This was driving me crazy as to why it wouldn't work. It works great now!

JR said...

Thank you for the advice, it was a life safer. I'm running kernel version 2.6.18-1.2869.fc6, and I was getting the same problem. Touching config.h solved the problem.

Anonymous said...

Worked for me, too! I had to change the exact command because I'm running kernel 2.6.18-1.2869.fc6PAE #1 SMP according to `uname -a`. Because of this, the config.h file had to be created using the command sudo

touch /usr/src/kernels/2.6.18-1.2869.fc6-PAE-i686/
include/linux/config.h

Others may also have to modify the touch command according to the output of 'uname -a'. Thanks for your tip!

Anonymous said...

Thank you, your post helped me with the MadWifi (Atheros wireless card driver) module in FC6.

Anonymous said...

Thanks for the post !!
It helped :)

Anonymous said...

Man of man, I wish I could buy you a beverage of your choice! Thank you!

Anonymous said...

thank you!!! now for the next error message: mknod: `/dev/vmmon': File exists
Unable to create the character device /dev/vmmon with major number 10 and minor
number 165.

kamran said...

hi i am kamran
i am using fedora 6 and i wanted to install VMWARE SERVER on my desktop. i followed entire procedure even i created config.h file but at the end i get this error


"The installation of VMware Server 1.0.1 build-29996 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall.pl".

Before running VMware Server for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config.pl". Do you want this
program to invoke the command for you now? [yes]

You are not running Linux. This version of the product only runs on Linux.

Execution aborted.

after i created config.h file when i use "uname -r" command it gives me
"segmentation fault"
i don't understand what is the meaning by segmentation fault and how to solve this problem.
i would appreciate if you help me in this situation
thankyou

Anonymous said...

Thanks to author.

SNEHASHIS MUKHERJEE said...

Hello Sir,
I too have tried to config the vmware on FC6 but this is what I end up with
Stopping VMware services:
Virtual machine monitor [ OK ]

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the theme icons?
[/usr/share/icons]

What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Player 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? [/usr/src/linux/include]
Couls u please find a solution for this ? I am using the i686 kernel.

SNEHASHIS MUKHERJEE said...

Hello Sir,
I tried to configure vmware and ended uo with the following error
Stopping VMware services:
Virtual machine monitor [ OK ]

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the theme icons?
[/usr/share/icons]

What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Player 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? [/usr/src/linux/include]
Could u plz tell me a solution ? I am using the i686 kernel of FC6.