I found out XEN and VMware won’t play nice together. Make sure XEN is not installed.
If they’re not already installed:
- yum install xinetd
- yum install kernel-devel
Download and install the latest VMWare Server rpm package. Don’t worry… even though the download suggests it’s an i386 version, it will still work just fine on the x86_64 platform.
Create a blank config.h file in /usr/src/your-kernel/include/linux/
touch /usr/src/your-kernel/include/linux/config.h
(where your-kernel is whatever kernel you're running)
run vmware-config.pl as usual.
ADDENDUM (found at: http://www.linux-noob.com/forums/index.php?showtopic=2952):
If you have a newer kernel like me kernel 2.6.20-1.2948.fc6 (where they are talking about 2.6.19-1.2911.fc6), this is how i got it working.
1)Register to get your free serial number(s) to start using VMware Server & then download http://download3.vmware.com/software/vmser…-44356.i386.rpm.
2)Make sure you have the following or updated
* gcc
* gcc-c++
* kernel-devel
* xinetd
& if i was in your shoes i will also install
compat-gcc-34
compat-gcc-34-c++
which will not harm your box (FC6 includes GCC 4.1 compiler. Some applications will NOT compile in GCC 4.1)
install GCC 3.4 to allow compiling applications which do not yet support GCC 4.1
yum install
3)uname -r & it should spit 2.6.20-1.2948.fc6
4)rpm -q kernel-devel & should spit [kernel-devel-2.6.20-1.2948.fc6]
5) rpm -i /home/user_name/VMware-server-1.0.3-44356.i386.rpm
6)VMWare server is installed & for your box to use it you will have to configure it
7)$ su -
# vmware-config.pl
this is what you get:
In which directory do you want to install the mime type icons ?
[/usr/share/icons]
What directory contains your desktop menu entry files? These files have a .desktop file extension. [/usr/share/applications]
…
In theory , you can valid & confirm each section.
8)End of installation if you have no errors !!! your configuration should look like this
The configuration of VMware Server for Linux for this
running kernel completed successfully.
You can now run VMware Workstation by invoking the following command:
“/usr/bin/vmware”.
Enjoy,
–the VMware team
as root
/etc/init.d/xinetd start
9)Now if everything went wrong & the vmware-config.pl aborted to configure with something like this
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmnet-only’
make -C /lib/modules/2.6.19-1.2911.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.19-1.2911.fc6-i686′
CC [M] /tmp/vmware-config0/vmnet-only/driver.o
CC [M] /tmp/vmware-config0/vmnet-only/hub.o
CC [M] /tmp/vmware-config0/vmnet-only/userif.o
/tmp/vmware-config0/vmnet-only/userif.c: In function ‘VNetCopyDatagramToUser’:
/tmp/vmware-config0/vmnet-only/userif.c:629: error: ‘CHECKSUM_HW’ undeclared (first use in this function)
/tmp/vmware-config0/vmnet-only/userif.c:629: error: (Each undeclared identifier is reported only once
/tmp/vmware-config0/vmnet-only/userif.c:629: error: for each function it appears in.)
make[2]: *** [/tmp/vmware-config0/vmnet-only/userif.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmnet-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.19-1.2911.fc6-i686′
make: *** [vmnet.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/vmnet-only’
Unable to build the vmnet 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.
10) Rendez vous at this page & download http://ftp.cvut.cz/vmware/vmware-any-any-update109.tar.gz which is a patch to fix this problem where it will save you a great big headache.
11)put this file in your /home/user_name & -> tar -xzf vmware-any-any-update109.tar.gz
12)After the file has been extracted, change to the /vmware-any-any-update??? directory and run:
13) ./runme.pl
14)During the configuration, which automatically follows right after the patch has been applied, I accepted all of the defaults to the questions that are asked, meaning the paths to directories that were listed, “yes” wherever there was [yes] as default option, and “no” where it was [no].
15)I am not sure what those error logs are, but it doesn’t look serious and VMware worked nicely after complete install
16)Once it’s all configured, the final stage follows, which creates the list of modules that are supposed to be loaded when your fc6 starts, as well as loads them right away to start using your VMware Server.
again as root
/etc/init.d/xinetd start
& beware , everytime you update your kernel you have to vmware-config.pl & if it does not work & is aborted use the patch again which is regularly updated at http://ftp.cvut.cz/
Another person noted a different compile error and commented that the patch also fixed his problem as well:
Note: i did receive a different error when running vmware-configure.pl.
here’s what I received:
===BEGIN===
Building the vmmon module.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config4/vmmon-only’
make -C /lib/modules/2.6.20-1.2948.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.20-1.2948.fc6-i586′
CC [M] /tmp/vmware-config4/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config4/vmmon-only/linux/driver.c:80:
/tmp/vmware-config4/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘…’ before ‘compat_exit’
/tmp/vmware-config4/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘…’ before ‘exit_code’
/tmp/vmware-config4/vmmon-only/./include/compat_kernel.h:21: warning: type defaults to ‘int’ in declaration of ‘_syscall1’
make[2]: *** [/tmp/vmware-config4/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config4/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.20-1.2948.fc6-i586′
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config4/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.
===END===
running the any-any patch resolved my issues as well.
ANOTHER ADDENDUM (found at: http://dev.urandom.karakoon.com/index.php?tempskin=_rss):
After I upgraded to the 2.6.22.4-45.fc6 kernel, vmware-config.pl was exploding again while attempting to compile the vmnet module. After a few minutes looking around I found this:
- Download the file http://npw.net/~phbaer/vmnet.tar
- Save it to /usr/lib/vmware/modules/source/
- (just save the tar archive there, there’s no need to untar)
- Run vmware-config.pl again