Tuesday, February 19, 2013

VMWare Workstation 9.0.1, NVidia Drivers and Linux Kernel 3.8

Linus Torvalds has just released Linux Kernel 3.8 today and i have successfully compiled and upgrade to this shinny Linux Kernel. Head to KernelNewbies if you are curious about what's interesting on this release.

Soon after compiling Linux Kernel 3.8, i made a symlink to the correct version.h used by many third-party application  that will link to kernel modules by running this command
ln -s /usr/src/linux-3.8/include/generated/uapi/linux/version.h /usr/src/linux-3.8/include/linux/version.h

Next... Reboot

After i logged in, i ran my NVidia 304.64-custom driver (i posted this before) and it worked out of the box, so no more patching is needed for this version of NVidia driver. If you are using newer NVidia driver or this is your first time upgrading to a newer Linux Kernel, you can head to this directory where you can find patches for other version of NVidia drivers along with instructions how to patch the original NVIdia driver.

Next is VMWare Workstation. As stated on this blog post that VMWare Workstation 9.0.1 by default is not compatible with Linux Kernel 3.8 without any patches. One of the visitor wrote a comment and tell us about a simple patch to fix this problem. His patch is kinda messy because the HTML form parser makes it broken.

So, i take the manual steps of reviewing the changed files and codes and then make a simple diff based on the difference of those two files and then adding an automated bash script based on previous patch for Linux Kernel 3.5 and modify it to include this patch and the result is an automatic process. You only need to download the patch from my SlackHacks repository, unzip, and run it (using root user).

The zip file contains 2 files. First file called patch-modules_3.8.0.sh is the automated script which later calls vmware-3.8.patch file which is the real patch that does the magic. All you need is give execute permission to patch-modules_3.8.0.sh by executing chmod +x patch-modules_3.8.0.sh and then execute it ./patch-modules_3.8.0.sh. At the end of the process, it will rebuilt VMWare Workstation and there should be no problem. I have tested them on my machine and it worked perfectly. Let me know if it's broken on your machines.

Credit should go to Tim who gave us those patch. I only provide some automated script to make it easier for end users without having to untar the source, applying the patch manually and creating a tar archive again.

Here's the result of uname -a on my desktop at home
Linux desktop 3.8.0-smp #1 SMP Tue Feb 19 17:00:33 WIT 2013 i686 Pentium(R) Dual-Core CPU E5300 @ 2.60GHz GenuineIntel GNU/Linux