Install VMWare Player on Ubuntu 12.04

As I expected a new system means a new set of problems. The first application that encounter problem with Pangolin is VMWare Player 4.0.3. The installation of VMWare Player was smooth though, there was no problem occurred. For a while I felt relief, “yes, I can use VMWare Player tomorrow”. The problem showed when I tested to open one of the VMWare image. The VMWare was trying to install additional functions, and it failed.

After searching on the Internet, I found this reply from a thread from VMWare forum. Basically, he recommended to apply a patch in 5 steps. (Get the patch file here)

  1. Un-tar /usr/lib/vmware/modules/source/vmnet.tar to a directory you can write to (eg /tmp, /var/tmp or your desktop or home directory) – this creates a directory vmnet-only
  2. Apply the attached patch to the un-tarred source (run patch in the directory from step 1 – the patch file was created from the parent directory of vmnet-only)
  3. Save the original source tar file as /usr/lib/vmware/modules/source/vmnet.tar.orig
  4. create a new /usr/lib/vmware/modules/source/vmnet.tar from the patched source (with ‘sudo tar cf /usr/lib/vmware/modules/source/vmnet.tar vmnet-only’ in the directory from step 1)
  5. Start the vmware player/workstation/….

So, these were what I did.

I extracted the “/usr/lib/vmware/modules/source/vmnet.tar” to “/tmp” folder.

tar xvf /usr/lib/vmware/modules/source/vmnet.tar -C /tmp

Copy the patch file (vmnet.diffs) to “/tmp” folder and then apply the patch.

patch -p0 < vmnet.diffs

Back up the original “vmnet.tar” as “vmnet.tar.orig”.

sudo cp vmnet.tar vmnet.tar.orig

Create a new “vmnet.tar” from “/tmp” folder.

sudo tar cvf /usr/lib/vmware/modules/source/vmnet.tar vmnet-only

Trigger the kernel update by trying to open a VMWare image again. At this time the update went smoothly, and the image was opened.


Install VMWare Player on Ubuntu 10.04

I need VMWare Player in my new installed Ubuntu 10.04 64-bit system. Unlike when I installed VMWare Player on Linux Mint 8, I faced problem with Ubuntu 10.04.

I downloaded VMWare Player 2.5 64-bit version installation file and ran it through terminal. The installation looks fine but when the installer were trying to do configuration, the installer stuck there and never finished. From a thread in I found out that the cause was the setup unable to create vmnet virtual devices. So, I followed the suggestion in the website.

I open two terminals, in the first terminal I ran:

while true; do sudo killall -9 vmware-modconfig-console; sleep 1; done

The purpose of the above command is to kill “vmware-modconfig-console” from the memory. In the second terminal I ran the VMWare Player installation file. When the installation file was trying to configure, it ran “vmware-modconfig-console” which was the cause of the system hang, but the command in the first terminal kill the process immediately, so the installation process finished. The installation only installed the VMWare Player program, but it’s configuration, including “vmnet” is still unconfigured. In order to do that I needed to amend several files.

I exctracted vmnet.tar and vmci.tar from “/usr/lib/vmware/modules/source” folder into “/tmp” folder

    tar xvf /usr/lib/vmware/modules/source/vmnet.tar -C /tmp
    tar xvf /usr/lib/vmware/modules/source/vmci.tar -C /tmp

    I changed the working directory to “/tmp” folder

      cd /tmp

      I added #include “compat_sched.h” to “vmnet-only/vnetUserListener.c” and “vmci-only/include/pgtbl.h” files.

        perl -pi -e ‘s,(“vnetInt.h”),\1\n#include “compat_sched.h”,’ vmnet-only/vnetUserListener.c
        perl -pi -e ‘s,(“compat_page.h”),\1\n#include “compat_sched.h”,’ vmci-only/include/pgtbl.h

        I archieved those folder again and put it in the original location

          tar cvf /usr/lib/vmware/modules/source/vmnet.tar vmnet-only
          tar cvf /usr/lib/vmware/modules/source/vmci.tar vmci-only

          I ran the command below to start configuration.

          vmware-modconfig –console –install-all

          I ran the VMWare Player, and everything looked fine. I ran the guest OS, a Windows XP, and I faced another problem. The mouse was not working properly, the VMWare Player status bar were flickering showed “To grab input, press Ctrl-G” and then “To release input, press Ctrl-Alt”, continuously. I found out a solution for this problem from this website. Inserted the line below into “/etc/vmware/bootstrap” file.

          export VMWARE_USE_SHIPPED_GTK=yes

          I tried again the VMWare Player, and it works fine… At last.