Wednesday, May 9, 2012

Vmware workstation 8.0.3 on Linux with kernel 3.2.0

Running Vmware workstation 8.0.3 on Linux with kernel 3.2.0 (in my situation Ubuntu 12.04 with kernel 3.2.0-24-generic) gave a module compilation error for the "Virtual ethernet" module.
Luckily more people had this problem and had a solution for this. :-) 

Download the patch from: http://www.linuxinsight.com/files/vmware-workstation-8.0.1-linux-kernel-3.2.patch

Go to the module source directory and untar all archives:
  cd /usr/lib/vmware/modules/source
for file in * do
 tar xvf $file
done


Apply the patch:

patch -p0 < path_to_pathfile

Pack all archives once again, and get rid of the unpacked directories:

for file in *-only do
 tar cvf `basename $file -only`.tar $file
done
rm -rf *-only

Now you can rebuild and load modules:

vmware-modconfig --console --install-all 

When you see something like this:

Starting VMware services:
  Virtual machine monitor   done
  Virtual machine communication interface   done
  VM communication interface socket family   done
  Blocking file system   done
  Virtual ethernet   done
  VMware Authentication Daemon   done
  Shared Memory Available   done


Your all done and have fun!

2 comments:

  1. Thanks.. this recipe worked on Debian with kernel 3.2.0-0.bpo.1-amd64

    ReplyDelete
  2. Hi Rani, thanks for your comment and good to hear it works for you as well :-)

    ReplyDelete