Tested on Debian 2.6.32-bpo.5-686 , also may work on 2.6.x kernel version #!usr/bin/python ''' Author:This script was written by me [pyth0n3] to download and apply the patch written by Radu Cotescu [http://radu.cotescu.com/] for VMware Server 2.0.2 To do: First you need to download the VMware Server 2.0.2 [http://downloads.vmware.com/d/info/datacenter_downloads/vmware_server/2_0] Extract VMware Server: tar -xzf VMware-server-2.0.2-203138.i386.tar.gz Run this script in the same directory where you have extracted the previous package , it will apply the patch and Run VMWare installer (Tested by me on Ubuntu and Debian distribution) Purpose: Adds support for newer versions of the Linux kernel and does not require it to be recompiled Features: Add support for versions of the Linux Kernel that implement COW credentials. Add support for net_device_ops structure. Add support for netdev_priv(). Remove references to init_mm structure by removing APIC support for 2.6.25 and later (APIC code currently uses the macro pgd_offset_k). Suppress GCC warnings. Fix the vsock use of exported symbols from from vmci module problem. Fix the ether_setup() (misplaced) problem introduced by the previous patch (the NAT network connection problem). Fix other known issues. This script was written by me [pyth0n3] to download and apply the patch automatically ''' import os import glob import tarfile import urllib first = os.getcwd() print "[+] Downloading the patch file..." urllib.urlretrieve ("http://sprunge.us/THYP","VMware-server-2.0.2-203138-update-2.patch" ) print "[+] Retrieving old modules... " os.chdir("vmware-server-distrib/lib/modules/source/") for files in glob.glob("*.tar"): tar = tarfile.open(files) tar.extractall() tar.close() os.chdir(first) os.chdir("vmware-server-distrib") print "[+] Patching the modules and removing old archives..." cmd = "patch -p1 < ../VMware-server-2.0.2-203138-update.patch" os.system(cmd) os.chdir("lib/modules/source/") for files in glob.glob("*.tar"): os.remove(files) print "[+] Archiving patched modules..." cmd2 = ["tar -cf vmci.tar vmci-only/",\ "tar -cf vmmon.tar vmmon-only/",\ "tar -cf vmnet.tar vmnet-only/",\ "tar -cf vsock.tar vsock-only/"] for c in cmd2: os.system(c) print "[+] Run installer script as root..." os.chdir(first) os.chdir("vmware-server-distrib") cmd3 = "sudo ./vmware-install.pl" os.system(cmd3) Download : wget http://sprunge.us/fXbZ -O patch_vmware.py