VMware Communities
RolloSuperStar
Contributor
Contributor

Erro compiling the vmplayer on ubuntu 12.x

Hi all,

Since yesterday, when my os was up to date to version 12.04 my vm player not works.

All times when I click on the program to try open it, the system return: Before you can run VMWare, several modules must be compiled and loaded into the running kernel.

So i Click install and type my root pwd. The installer return : Unable to build kernel module.

See log file /tmp/vmware-root-2809389152/modconfig-25273.log for details

Tags (2)
Reply
0 Kudos
7 Replies
AvocadoMan
Contributor
Contributor

Having the same problem...:(

Reply
0 Kudos
l33t8l
Contributor
Contributor

I'm having the same problem also

Reply
0 Kudos
keitht
Contributor
Contributor

If you have not already resolved the problem, I found the solution elsewhere

http://weltall.heliohost.org/wordpress/2012/01/26/vmware-workstation-8-0-2-player-4-0-2-fix-for-linu...

summary is download patch from
  http://weltall.heliohost.org/wordpress/wp-content/uploads/2012/01/vmware802fixlinux320.tar.gz
unpack to produce two files including "vmware3.2.0.patch"

become root in some way, perhaps

  su -

or

  sudo bash

cd /usr/lib/vmware/modules/source
Untar source modules
tar xvf vmnet.tar
This creates a subfolder containing the source files (in this case, vmnet-only).

Apply the patch
Assuming the patch file is ~/Downloads/vmware3.2.0.patch
patch -p1 < ~/Downloads/vmware3.2.0.patch

Re-Tar the source folder
tar cvf vmnet.tar vmnet-only/

Rerun the module compilation process (e.g. start vmplayer) and hope the patches fix the problem (it did for me)

Reply
0 Kudos
dutch1918
Contributor
Contributor

I have VMware Player 4.0.2 installed and keep getting the following:

patch-modules_3.2.0.sh: 27: [: player4.0.2: unexpected operator
patch-modules_3.2.0.sh: 28: [: player4.0.2: unexpected operator
Sorry, this script is only for VMWare WorkStation 8.0.2 or VMWare Player 4.0.2. Exiting
Never mind.. I just modified the script to remove the check and all is well now
Reply
0 Kudos
keitht
Contributor
Contributor

I did not run the script supplied with the patch, but rather applied the patch file using the patch command

  patch -p1 < ~/Downloads/vmware3.2.0.patch

Reply
0 Kudos
raeb
Contributor
Contributor

Hi,

I was fighting with this one too and I found a (kind of ugly) solution:

The problem seems to be, that there is an error within the version verification part of the script.

Since I couldn't resolve it, I just commented out the relevant lines:

#! /bin/bash
# VMWare Workstation/Player _host kernel modules_ patcher v0.6.2 by ©2010 Artem S. Tashkinov
# Tailored and fixed vmblock patching for the 2.6.39 patch by Stefano Angeleri (weltall)
# Use at your own risk.

fpatch=vmware3.2.0.patch
vmreqver=8.0.2
plreqver=4.0.2


error()
{
    echo "$*. Exiting"
    exit
}

curdir=`pwd`
bdate=`date "+%F-%H:%M:%S"` || error "date utility didn't quite work. Hm"
vmver=`vmware-installer -l 2>/dev/null | awk '/vmware-/{print $1substr($2,1,5)}'`
vmver="${vmver#vmware-}"
basedir=/usr/lib/vmware/modules/source
ptoken="$basedir/.patched"
bkupdir="$basedir-$vmver-$bdate-backup"

unset product
[ -z "$vmver" ] && error "VMWare is not installed (properly) on this PC"
#[ "$vmver" == "workstation$vmreqver" ] && product="VMWare WorkStation"
#[ "$vmver" == "player$plreqver" ] && product="VMWare Player"
[ -z "$product" ] && error "Sorry, this script is only for VMWare WorkStation $vmreqver or VMWare Player $plreqver"

  • so open the script in an editor
  • scroll down to line 27 and 28
  • add "#" at the beginning of both lines
  • save the script
  • try to run the script

Hopefully this should disable the version check.

Good luck!

Raeb

Reply
0 Kudos
AvocadoMan
Contributor
Contributor

OK I think I solved this.... check out this link it worked for me.

http://www.webupd8.org/2012/06/how-to-install-vmware-player-in-ubuntu.html

If you are installing 4.0.4 or newer read the instructions at the end.

Smiley Happy

Reply
0 Kudos