UPDATE 3: The script and patches have been updated to also support kernel 2.6.38. For older kernel releases please download the archive from here (temporary fix until I will unify the solutions).
UPDATE 2: The script and patches have been updated to also support kernel 2.6.35.
UPDATE 1: The script should also work with 2.6.32 kernels from version 1.2.
Seeing the success I have encountered with the blog post about installing VMware Server on Ubuntu Karmic Koala and helped by Ramon de Carvalho Valle with a better patch regarding the installation of the virtualization server on the newer kernels found in three of the most popular Linux distributions - Ubuntu, Fedora and openSUSE - I’ve managed to provide a script which should be able to install the server on all of these distros. Furthermore, by placing some trivial checks in a function of the script one may enlarge the applicability to a lot more distributions with common roots (Debian and all Debian-based distributions, Red Hat and all of its derivatives).
I have managed to test the script on both the 2.6.31-14 and 2.6.31-17 kernels which can be found in Ubuntu 9.10 and on the 184.108.40.206-174.fc12 kernel found in Fedora 12. Since I didn’t have an openSUSE machine I am not sure of what is the outcome on this distribution (regarding the kernel sources; people who commented previously on my blog had no problems installing VMware Server using the previous script) but the script is made so that it automatically determines on what kind of distribution is run and according to this information it automatically installs the needed packages. Careful though, as this requires Internet access for the specific machines.
The good news regarding Ramon’s patch is the fact that now VMware Server seems stable. No more warnings appear when compiling modules, except for
vsock, which - miraculously - builds on Fedora.
Regarding the installation of VMware Server on Fedora, I have encountered some difficulties after the installation completed successfully. Basically I wasn’t able to log into the web administration interface because of multiple factors. The steps which should be followed will be reminded to the Fedora users after the script completes but I’m gonna mention them here too:
/etc/servicesand replace the entry located on TCP/902 port with
disable SELinux it by editing the
/etc/selinux/configfile (permissive mode isn’t enough - see comments)
reboot your system
The general instructions are the same as the ones for the previous version of the script.
Download my script from here (right click, save as, extract archive).
Run the script with super user rights either in the same folder where you have downloaded the server archive, either by providing it the path to that folder. Make sure the folder where you have downloaded the server’s archive doesn’t contain spaces in its path name or the script will exit (giving you this reason as an error message). If the script exists, it will give you a decent warning from which you should be able to tell what’s wrong. On Ubuntu at least, the VSOCK module will not work (will fail to compile), giving you a hint that your kernel sources might not be the ones for your running kernel. This is not true, as the script takes care of this before doing the hard work. Anyway, VMware Server will work without it. Example:
chmod +x vmware-server-2.0.x-kernel-2.6.3x-install.sh sudo ./vmware-server-2.0.x-kernel-2.6.3x-install.sh [PATH _TO_VMWARE_ARCHIVE]
When you are asked about adding users to the server, if you do not provide your own account, the user used for login in the web console of the server will be root (maybe you should add yourself there).
Provide the license key when asked about it.
For the ones installing Windows guests in VMware Server, you must pick one of the following two solutions to avoid having problems with the mouse in the console:
you run the
start-VMware-console.shin the terminal every time you want to launch a VMware Server console, but after you have installed the VMware plug-in for Firefox
you export this variable in the environment right after login such that it will be set before starting Firefox:
If the solution worked well for you please share this info wherever you can. :D
I am looking forward for your feedback because running the script and the server under multiple kernel versions and distributions will provide the real way to see if this latest patch really handles all the flaws in VMware Server or not. And if it does, this means that Ramon and I (but mostly Ramon) can shout a big “In your face, VMware!”.
P.S. All my open-source work can also be found on GitHUB. This is useful if you think that you have some other non up to date versions of my scripts. Anyway, the scripts which can be found on my server represent the latest version.