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.


20 thoughts on “Install VMWare Player on Ubuntu 12.04

  1. Thank you, this saved me as well, I depend on a Win 7 VM running under Player for a few work apps, I almost had to put back in my Windows 7 drive (gasp)

  2. Pingback: Cài đặt phần mềm + tinh chỉnh cho Ubuntu 12.04 | Mẫn Thắng's Blog

  3. Perfect! Thanks for the step by step. Only ad libbing I had to do was provide the full path to umnet.tar in the backup step, as I wasn’t sitting in that directory. THANKS!

  4. Miljons of thanks, this is very clarly and simple step by step instuction and solves also VMplayer version 4.0.4 problem … THANKS, THANKS and THANKS!!!!

  5. So I did this once and worked great.

    But then I installed some updates and it stoped working.

    I tried to follow the same instructions again and got stuck in this phase:
    $ patch -p0 < vmnet.diffs
    patching file vmnet-only/filter.c
    Reversed (or previously applied) patch detected! Assume -R? [n]

    ¿Should I try with the -f option?
    ¿Should I delete all stuff?

    • What update did you do? Ubuntu update or VMWare update?
      If Ubuntu kernel is updated, when you run the VMWare Player, it will ask you to Install again:

      Before you can run VMware, several modules must be compiled and loaded into the running kernel.

      You just need to click on “Install”.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s