VMware
1 2 3 4 Previous Next 51 Replies Last post: Oct 24, 2009 1:37 PM by paulsm4   Go to original post
Click to view jlward4th's profile Novice 13 posts since
Feb 24, 2007
No worries. Attached is the updated patch and script for 2.6.31 which seems to work for me.
Click to view Ehud's profile Novice 16 posts since
Feb 27, 2008

Patch works fantastic for unpatched 6.5.2... Since I'd already patched at 2.6.30 I reinstalled 6.5.2. The patch worked fine afterward.

2.6.31-rc1 (will be at rc2 shortly ;)

Ehud

P.S. Thanks for the nice work!

Click to view dajhorn's profile Novice 18 posts since
Dec 16, 2004
This patch works perfectly for VMware Workstation 6.5.2 running on Ubuntu Karmic with the new 2.6.31-2-generic kernel package.

(Much appreciated.)

Click to view hohndel's profile Lurker 2 posts since
Mar 7, 2005
The 2.6.31 patch compiles fine - but the resulting vmnet module doesn't work. It hangs the first time it's loaded, can't be unloaded anymore and the guest OS get's no networking conncetion.

Any suggestions?
Click to view Starfly2's profile Lurker 1 posts since
Jul 13, 2009

Doesnt work 4 me...

Ubuntu Karmic 2.6.31 ---> V2 !

Errors, after starting Patching Script :

./vmware-6.5.2-modules-2.6.31-fix.sh
Found tar file for vmnet module
Found tar file for vmmon module
Found tar file for vsock module
Found tar file for vmblock module
Found tar file for vmci module
Found tar file for vmppuser module
Using patch file: /root/Desktop/vmware-6.5.2-modules-2.6.31-fix.patch
Using module directory: /usr/lib/vmware/modules/source
Using backup directory: /usr/lib/vmware/modules/source-backup
Untarring vmnet.tar
Untarring vmmon.tar
Untarring vsock.tar
Untarring vmblock.tar
Untarring vmci.tar
Untarring vmppuser.tar
Testing patch
patching file vmnet-only/netif.c
Hunk #3 FAILED at 338.
Hunk #4 FAILED at 584.
Hunk #5 FAILED at 640.
Hunk #6 FAILED at 701.
4 out of 6 hunks FAILED -- saving rejects to file vmnet-only/netif.c.rej
patching file vmci-only/Makefile
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file vmci-only/Makefile.rej
patching file vmnet-only/Makefile
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file vmnet-only/Makefile.rej
patching file vsock-only/Makefile
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file vsock-only/Makefile.rej
patching file vmblock-only/Makefile
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file vmblock-only/Makefile.rej
patching file vmblock-only/linux/control.c
Hunk #2 FAILED at 158.
Hunk #3 FAILED at 172.
2 out of 3 hunks FAILED -- saving rejects to file vmblock-only/linux/control.c.rej
patching file vmmon-only/linux/driver.c
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file vmmon-only/linux/driver.c.rej
patching file vmmon-only/linux/vmmonInt.h
patching file vmmon-only/Makefile
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file vmmon-only/Makefile.rej
patching file vmmon-only/linux/hostif.c
Hunk #1 succeeded at 3384 (offset -39 lines).
Hunk #2 FAILED at 3498.
Hunk #3 FAILED at 3622.
2 out of 3 hunks FAILED -- saving rejects to file vmmon-only/linux/hostif.c.rej
Sorry, problem with the patch, I can't apply it

Always Complaining about previous applied patches... how to kill oldones ?

After it , it should work right ?

Click to view Poloisfej's profile Lurker 4 posts since
Jul 14, 2009
lolpol, using 2.6.30-ARCH

root@myhost Desktop# bash ./vmware-6.5.2-modules-2.6.30-fix.sh
Found tar file for vmci module
Found tar file for vmmon module
Found tar file for vmnet module
Found tar file for vmblock module
Found tar file for vsock module
Found tar file for vmppuser module
Using patch file: /home/det/Desktop/vmware-6.5.2-modules-2.6.30-fix.patch
Using module directory: /usr/lib/vmware/modules/source
Using backup directory: /usr/lib/vmware/modules/source-backup
Backing up ./vmci.tar to /usr/lib/vmware/modules/source-backup/./vmci.tar
Backing up ./vmmon.tar to /usr/lib/vmware/modules/source-backup/./vmmon.tar
Backing up ./vmnet.tar to /usr/lib/vmware/modules/source-backup/./vmnet.tar
Backing up ./vmblock.tar to /usr/lib/vmware/modules/source-backup/./vmblock.tar
Backing up ./vsock.tar to /usr/lib/vmware/modules/source-backup/./vsock.tar
Backing up ./vmppuser.tar to /usr/lib/vmware/modules/source-backup/./vmppuser.tar
Untarring vmci.tar
Untarring vmmon.tar
Untarring vmnet.tar
Untarring vmblock.tar
Untarring vsock.tar
Untarring vmppuser.tar
Testing patch
patching file vmblock-only/linux/control.c
patching file vmblock-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmci-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmmon-only/include/x86svm.h
patching file vmmon-only/linux/driver.c
patching file vmmon-only/linux/hostif.c
Hunk #1 succeeded at 3424 (offset 1 line).
Hunk #2 succeeded at 3538 (offset 1 line).
Hunk #3 succeeded at 3662 (offset 1 line).
patching file vmmon-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmnet-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmnet-only/netif.c
patching file vsock-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
Applying patch!
patching file vmblock-only/linux/control.c
patching file vmblock-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmci-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmmon-only/include/x86svm.h
patching file vmmon-only/linux/driver.c
patching file vmmon-only/linux/hostif.c
Hunk #1 succeeded at 3424 (offset 1 line).
Hunk #2 succeeded at 3538 (offset 1 line).
Hunk #3 succeeded at 3662 (offset 1 line).
patching file vmmon-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmnet-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmnet-only/netif.c
patching file vsock-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
Preparing new tar file for vmci module
Preparing new tar file for vmmon module
Preparing new tar file for vmnet module
Preparing new tar file for vmblock module
Preparing new tar file for vsock module
Preparing new tar file for vmppuser module
Trying to compile vmci module to see if it works
Using standalone build system.
./autoconf/geninclude.c:19:28: error: linux/autoconf.h: No such file or directory
.././autoconf/geninclude.c:19:28: error: linux/autoconf.h: No such file or directory
Dependencies for driver.c
In file included from .././linux/driver.c:20:
.././include/driver-config.h:42:5: error: #error "No Module support in this kernel. Please configure with CONFIG_MODULES"
make[1]: *** http://driver.d Error 1
make: *** deps Error 2
Sorry, problem compiling the vmci module after it was patched
You must restore from this backup directory:
/usr/lib/vmware/modules/source-backup

Click to view Poloisfej's profile Lurker 4 posts since
Jul 14, 2009
I did do "make menuconfig" and selected the defaults when customizing the kernel but I still get the same error :/
Click to view martyfelker's profile Hot Shot 178 posts since
Sep 30, 2005

This patch worked great up until now. In fact it worked on just this kernel before I reinstalled the OS. Host Debian Kernel 2.6.30.1-amd64

Error message


debian:/home/marty/build# ./vmware-6.5.2-modules-2.6.30-fix.sh
Found tar file for vmci module
Found tar file for vmnet module
Found tar file for vmblock module
Found tar file for vmppuser module
Found tar file for vmmon module
Found tar file for vsock module
Using patch file: /home/marty/build/vmware-6.5.2-modules-2.6.30-fix.patch
Using module directory: /usr/lib/vmware/modules/source
Using backup directory: /usr/lib/vmware/modules/source-backup
Untarring vmci.tar
Untarring vmnet.tar
Untarring vmblock.tar
Untarring vmppuser.tar
Untarring vmmon.tar
Untarring vsock.tar
Testing patch
patching file vmblock-only/linux/control.c
patching file vmblock-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmci-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmmon-only/include/x86apic.h
Hunk #1 FAILED at 94.
1 out of 1 hunk FAILED -- saving rejects to file vmmon-only/include/x86apic.h.rej
patching file vmmon-only/include/x86svm.h
patching file vmmon-only/linux/driver.c
patching file vmmon-only/linux/hostif.c
Hunk #1 succeeded at 3424 (offset 1 line).
Hunk #2 succeeded at 3538 (offset 1 line).
Hunk #3 succeeded at 3662 (offset 1 line).
patching file vmmon-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmnet-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmnet-only/netif.c
patching file vsock-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
Sorry, problem with the patch, I can't apply it



Can the author of this partch or somebody else help me out with this?

Thanks.

Marty Felker

Click to view Ehud's profile Novice 16 posts since
Feb 27, 2008
The patch works on an UNPATCHED VMWare distro.


Download the VMware installer.


Run it.


(it will remove the patched one. It will fail on install. )


Patch it.


Run it.


It will work.


E

Click to view treepeter's profile Lurker 2 posts since
Jun 16, 2009

@ martyfelker

Do you use Debian Lenny? v5.02?

Is it a self build Kernel 2.6.30.1-amd64 ?

Greetings

Click to view martyfelker's profile Hot Shot 178 posts since
Sep 30, 2005

Interestingly VMware Workstatiion E.X.P installs without using the patch at all on Debian Lenny 5.02 Kernel 2.6.30-1-amd64!!

Weird. Perhaps VMware has included the patch in the beta??

Since I have WS 6.5.2 (licensed) installed on Windows 7 host and Linux versiion on Sabayon host (using 2.6.29 patch! ) think I'll just use the beta. I can and have copied VM's from one OS to another and ran them on standard or beta without a problem.

Marty Felker

Click to view hohndel's profile Lurker 2 posts since
Mar 7, 2005
Thanks for your work on this. The new patch does the trick for me (2.6.31-rc3 on F11 32bit)
Click to view riftware's profile Lurker 2 posts since
Jul 22, 2009

Hey folks - the last patch applied cleanly but I'm getting an error when it does the testcompile of the vmnet module (the other modules compile successfully) - any ideas appreciated.

If it makes any difference I'm using the suse factory kernel complete with its src and modules : 2.6.30.1-3-default #1 SMP 2009-07-15 09:08:18 -0700 x86_64 x86_64 x86_64 GNU/Linux

make -C /lib/modules/2.6.30.1-3-default/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.30.1-3-obj/x86_64/default'
make -C ../../../linux-2.6.30.1-3 O=/usr/src/linux-2.6.30.1-3-obj/x86_64/default/. modules
CC [M] /usr/lib/vmware/modules/source/vmnet-only/driver.o
CC [M] /usr/lib/vmware/modules/source/vmnet-only/hub.o
CC [M] /usr/lib/vmware/modules/source/vmnet-only/userif.o
CC [M] /usr/lib/vmware/modules/source/vmnet-only/netif.o
/usr/lib/vmware/modules/source/vmnet-only/netif.c: In function ‘VNetNetIfSetup’:
/usr/lib/vmware/modules/source/vmnet-only/netif.c:201: error: ‘struct net_device’ has no member named ‘init’
/usr/lib/vmware/modules/source/vmnet-only/netif.c:202: error: ‘struct net_device’ has no member named ‘open’
/usr/lib/vmware/modules/source/vmnet-only/netif.c:203: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/usr/lib/vmware/modules/source/vmnet-only/netif.c:204: error: ‘struct net_device’ has no member named ‘stop’
/usr/lib/vmware/modules/source/vmnet-only/netif.c:205: error: ‘struct net_device’ has no member named ‘get_stats’
/usr/lib/vmware/modules/source/vmnet-only/netif.c:206: error: ‘struct net_device’ has no member named ‘set_mac_address’
/usr/lib/vmware/modules/source/vmnet-only/netif.c:207: error: ‘struct net_device’ has no member named ‘set_multicast_list’
make[4]: *** [/usr/lib/vmware/modules/source/vmnet-only/netif.o] Error 1
make[3]: *** _module_/usr/lib/vmware/modules/source/vmnet-only Error 2
make[2]: *** sub-make Error 2
make[1]: *** all Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.30.1-3-obj/x86_64/default'

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities