VMware : Virtual Network Device unable to load/compile-VM Player 4.0.2 in Ubuntu 12.04

by kartook on May 1, 2012

Sponsored Links

 

VMware Workstation version 8.0.2 build-591240 and the vmmon module compiles, but the vmnet module fails..

 

Virtual Network Device unable to load/compile-VM Player 4.0.2 in Ubuntu 12.04

 

Here ins the steps to solve this issue

Download and install – VMware Workstation version 8.0.2 build-591240.bundle from Vmware site

 

kartook@kartook:~/Downloads$ wget http://communities.vmware.com/servlet/JiveServlet/download/1902218-80055/vmware802fixlinux320.tar.gz
kartook@kartook:~/Downloads$ ls
vmware802fixlinux320.tar.gz
kartook@kartook:~/Downloads$ tar zxvf vmware802fixlinux320.tar.gz
patch-modules_3.2.0.sh
vmware3.2.0.patch
kartook@kartook:~/Downloads$ su
Password:
root@kartook:/home/kartook/Downloads# ./patch-modules_3.2.0.sh
patching file vmnet-only/filter.c
patching file vmnet-only/netif.c
patching file vmnet-only/userif.c
Stopping VMware services:
VMware Authentication Daemon                                                                               done
VM communication interface socket family                                                       done
Virtual machine communication interface                                                         done
Virtual machine monitor                                                                                         done
Blocking file system                                                                                               done
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmmon-only’
make -C /lib/modules/3.2.0-24-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/.
MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-24-generic’
CC [M]   /tmp/vmware-root/modules/vmmon-only/linux/driver.o
CC [M]   /tmp/vmware-root/modules/vmmon-only/linux/driverLog.o

//
//
//
//
make[1]: Entering directory `/tmp/vmware-root/modules/vsock-only’
make[1]: `postbuild’ is up to date.
make[1]: Leaving directory `/tmp/vmware-root/modules/vsock-only’
cp -f vsock.ko ./../vsock.o
make: Leaving directory `/tmp/vmware-root/modules/vsock-only’

** (vmware-installer.py:12702): WARNING **: The connection is closed
Built vsock module
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

All done, you can now run VMWare WorkStation.
Modules sources backup can be found in the ‘/usr/lib/vmware/modules/source-workstation8.0.2-2012-05-02-09:35:44-backup’ directory
root@kartook:/home/kartook/Downloads#

Thanks

Kartook

 

 

Kartook - who has written 769 posts on Technical Notes Tweaks.

Follow him on Twitter @kartook and on Google+

Previous post:

Next post:

{ 24 comments… read them below or add one }

Didge May 3, 2012 at 8:22 am

Many, many thanks. Absolutely perfect.

Reply

Ville May 7, 2012 at 3:24 pm

Hi

Thanks. It works also for newer version of VMWare, just comment following three lines:

# diff patch-modules_3.2.0.sh patch-modules_3.2.0.sh.orig
29c29
[ -z “$product” ] && error “Sorry, this script is only for VMWare WorkStation $vmreqver or VMWare Player $plreqver”
32c32
[ -f “$ptoken” ] && error “$ptoken found. You have already patched your sources”

Reply

Oliver May 7, 2012 at 5:31 pm

Great – Thanks !!! You save my life 🙂

Reply

JOhnyRi May 10, 2012 at 4:03 pm

There is new version available, so you can use this package instead:

wget http://xaxatyxa.ru/download/vmware803fixlinux320.tar.gz
tar -xvf vmware803fixlinux320.tar.gz
sudo ./patch-modules_3.2.0.sh

Reply

freedole May 13, 2012 at 1:45 am

thank you very much.
i have 12.04 64bit, vmware player 4.0.3 and now work perfect

thanx again

Reply

Will May 14, 2012 at 9:32 am

Found I needed to install “patch” before I could use this script.

sudo apt-get install patch

After that, all good

Reply

till May 14, 2012 at 3:22 pm

This russian programm is great!!!
thank you!
I use VMware Workstation 8.0.3 for L… and couldn´t start it after updating ubuntu.

Reply

kartook May 14, 2012 at 4:13 pm

Thanks till

Kindly updatem e which user u used to update this patch ..if you run as root .. u need to start Vmware application as root …

Thanks
K~

Reply

andy May 17, 2012 at 12:33 pm

Thanks a lot,
this is an elegant problem fix

Reply

Carlos May 29, 2012 at 4:52 am

Hello man,
do you know how to fix this problem?

carlos@carlos-desktop:~$ sudo sh patch-modules_3.2.0.sh
patch-modules_3.2.0.sh: 27: [: player4.0.3: unexpected operator
patch-modules_3.2.0.sh: 28: [: player4.0.3: unexpected operator
Sorry, this script is only for VMWare WorkStation 8.0.2 or VMWare Player 4.0.2. Exiting

Reply

kartook May 29, 2012 at 8:39 am

Hey ,

Uninstall hole Vmware workstation bundle and try to reinstall and patch it .Should work .

make sure u using right version of Vmware workstation .

Error seems to be like .. worng version u r trying

Thanks
Ka~

Reply

Vadim June 1, 2012 at 3:57 am

Thank you for the patch. Worked for me for player 4.0.3 (had to edit line 8 to make the script accept the newer player version).

Reply

Brahim June 9, 2012 at 9:07 am

In reponse to Carlos. I had the same problem but i could fix it this way:

-Download vmnet.tar
-Move vmnet.tar to /usr/lib/vmware/modules/source/
-Run the commande: sudo /usr/bin/vmware-modconfig –console –install-all

Good luck.

Reply

csongradi3 June 10, 2012 at 11:53 pm

Thanks

Reply

bscheibe June 15, 2012 at 12:26 am

Does anyone have the new patch for 8.0.4?

Reply

scottie June 17, 2012 at 7:07 am

for 8.0.4 just comment out lines 26,27,28 and 29

# [ -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”

Changing the version number at the start of the script didn’t work.

Reply

chervox June 20, 2012 at 8:39 pm

+1
works with VMware Player 4.0.4 too and Ubuntu 12.04 64-bits. Just change the line:

plreqver=4.0.3
to
plreqver=4.0.4

😀

Reply

BobTheNukularPhysist July 21, 2012 at 8:56 pm

Thanks chervox!! This worked wonderfully.

quick instructions open the patch-modules*.sh file in a text editor and find and edit the plreqver to what chevrox above stated. This can apply to any 4.x version (barring 4.5) presumably.

Reply

Brian June 22, 2012 at 1:49 am

Just what I was looking for – simple and right to the point!
Thanks!
-Brian

Reply

kartook June 22, 2012 at 8:15 am

Thanks for your visit

Reply

tecwizrd July 24, 2012 at 1:20 am

I used this patch to fix Workstation 8.0.4, I edited the patch script and changed the version line to 8.0.4 a poof. Vmware Workstation is running.

Reply

kartook July 24, 2012 at 3:24 pm

Thanks for your visit and comment ….

KA~

Reply

Habutre July 30, 2012 at 11:55 pm

Yep, this script is really great! Just change the version of vmplayer on script and all works fine!

Reply

np October 12, 2012 at 9:09 am

Thanks JOhnyRi it worked

Thanks kartook.

Reply

Leave a Comment

{ 1 trackback }