How to get VMware Server working with an unsupported kernel and the vmware-any-any patch

0.00 avg. rating (0% score) - 0 votes

VMware Server needs exactly two kernel modules running on the host system (there are separate modules for guest systems). These are the vmmon and the vmnet modules. Unfortunately, the vmmon and vmnet packages included in the VMware server distribution package don’t compile with the newest kernels. When I upgraded my laptop to Gutsy Gibbon a few weeks ago, I forgot to check if VMware server supports the new kernel. And, of course, it doesn’t yet. But luckily I found the vmware-any-any package, a patched version of the host kernel modules that works with newer kernel versions.

You can download the package from here:

http://knihovny.cvut.cz/ftp/pub/vmware/?M=D

Download the tarball and unpack it:

You also need the source code of your running kernel. On Ubuntu, you can get it by running:

There’s a “runme.pl” script included which should be able to compile the modules and patch your system, but I couldn’t get it working. Instead, I unpacked the the vmmon.tar and vmnet.tar and compiled them myself:

The result is two files which can be loaded into the kernel as modules: vmmon.ko and vmnet.ko. You can simply insert those into the kernel with the insmod command:

After that, VMware server starts up nicely!

But one thing is still left. To be able to load the modules at startup properly, they must be copied to the kernel module tree under /lib. First I created a directory for the modules, and then copied them there. After that operation, the command depmod must be run in order to create an up-to-date list of available modules:

That’s it! Now you should be able to run VMware server, and all the modules should be loaded at runtime. Please note that if you are doing a fresh install of VMware server, you must now run the vmware-config-network.pl script to configure the network.

You can make sure that the modules load properly by unloading them with rmmod and then loading them again with modprobe:

Vmmon should print a status message like this in your dmesg:

One thought on “How to get VMware Server working with an unsupported kernel and the vmware-any-any patch”

Leave a Reply to mikko Cancel reply