By popular demand, here is an update of my original patch. It now works on 2.6.30 (I tested on 2.6.30-rc4). I'm using VMware Workstation 6.5.2.
This patch runs exactly the same as my earlier 2.6.29 patch script, which was here:
http://communities.vmware.com//thread/203231
The instructions are exactly the same as before. Download the patch, and also, download the script to help you apply it. There should be 2 attachments to this message.
Use the bash command to run the script, as root. (Look at the script first, so you know I didn't put something nasty in it!):
bash ./vmware-6.5.2-modules-2.6.30-fix.sh
It should now apply cleanly, and there should be no errors.
If there were errors, please restore your original VMware modules from backup. If you earlier tried the 2.6.29 patch script, and it failed because you're running the 2.6.30 kernel, then you'll need to undo my previous patch before trying this patch. Here's the command that will restore your earlier VMware modules:
cp -v /usr/lib/vmware/modules/source-backup/* /usr/lib/vmware/modules/source
This will restore your modules to their earlier pristine condition (hopefully), and you can now try again to run the 2.6.30 script.
I tried this and it works to run my virtual machines under 2.6.30. There are very few changes between 2.6.29 and 2.6.30 from VMware's point of view, which makes it minimally invasive. Let me know how this works.
Josh
Hi,
Thanks for your patch (are the previous one) which once again made VMware work for me.
The only glitch I had is that had to delete the following hunk from the patchfile in order to apply it cleanly to my VMware module source.
vmware-6.5.2-modules-2.6.30-fix.patch line 58:
diff -urN source-OLD/vmmon-only/include/x86apic.h source-NEW/vmmon-only/include/x86apic.h
--- source-OLD/vmmon-only/include/x86apic.h 2008-10-28 22:47:17.000000000 -0700
+++ source-NEW/vmmon-only/include/x86apic.h 2009-03-31 11:18:30.000000000 -0700
@@ -94,7 +94,11 @@
#define APIC_LVT_DELVMODE(_lvt) (_lvt & 0x700)
#define APIC_LVT_RESET_VALUE 0x00010000
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29)
#define APIC_BASE_MSR 0x1b
+#else
+#define APIC_BASE_MSR 0x800
+#endif
#define APIC_MSR_BASEMASK QWORD(0x0000000f,0xfffff000)
#define APIC_MSR_ENABLED 0x00000800
I found no APIC_BASE_MSR in my unpatched module sources.
Once these lines are deleted the patch applies (although with some offset on the line numbers) and the modules compile and run correctly. I'm running VMware Workstation 6.5.2 build-156735 on a Linux kernel 2.6.30-020630rc4-generic.
Regards
Thanks. Interesting. APIC_BASE_MSR doesn't exist anymore in Workstation 6.5.2, you're right. I thought I had already deleted it from the patch. Good catch.
thanks for your patch, but I get error:
"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
"
And I see other body had wrote its, but I don't get any answer yet. Can you show me the solve of it ?
I use WMware-workstation6.5.2 and linux kernel 2.6.30-5-generic
Thanks to spend time for this error.
Thanks!
Hi,
eris23 and s8dragon, please try the attached patch, it's a modified version of vmware-6.5.2-modules-2.6.30-fix.patch. You still have to use the original vmware-6.5.2-modules-2.6.30-fix.sh and don't forget to first revert your module sources before applying the patch.
Krellan's message gives the necessary instructions for reverting the sources.
Regards
I got it.
Thanks so much!
farzy = Thanks for supplying the modification to my patch. I was busy recently and so couldn't do it myself. I'm glad your modified patch now works. So, everyone who has problems with the first patch I posted, please also try farzy's patch.
Hi s8dragon !
May be you can help me ... I was happy with my vmware-server 1.0.9 working perfectly, remotly and localy ...;-)
I'm an old devlopper (>59years old) who is always astonished by the "Why to make it simple when you can complixify !" of today....
(I speak about the number of different products of VMware ... not really clearly described in simple terms .. )
Mandriva decided to be on the very edge of kernels so ... I am stuck for days with the bloody patches for 2.6.29xxx from everywhere which remedy
the compiler problems BUT ... ends with the bloody 138 iso 208 ... bad version of vmmon.o ...
What to do ?
Best regards.
(It seems thar vmware people don't care about these problems.)
P.S.
Do I missed something, because apparently VMware Workstation is as VMware Player ... unable to run a VM on another host !!??
The patch doesn't work:
# sh ./vmware-6.5.2-modules-2.6.30-fix.sh
Found tar file for vmblock module
Found tar file for vmci module
Found tar file for vmmon module
Found tar file for vmppuser module
Found tar file for vmnet module
Found tar file for vsock module
Using patch file: /root/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 ./vmblock.tar to /usr/lib/vmware/modules/source-backup/./vmblock.tar
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 ./vmppuser.tar to /usr/lib/vmware/modules/source-backup/./vmppuser.tar
Backing up ./vmnet.tar to /usr/lib/vmware/modules/source-backup/./vmnet.tar
Backing up ./vsock.tar to /usr/lib/vmware/modules/source-backup/./vsock.tar
Untarring vmblock.tar
Untarring vmci.tar
Untarring vmmon.tar
Untarring vmppuser.tar
Untarring vmnet.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 #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
So is it that your patch is only for 6.5.2 32bit?
n/m, ran:
mv vmware-6.5.2-modules-2.6.30-fix.patch.1 vmware-6.5.2-modules-2.6.30-fix.patch
then it worked fine.
Sorry for the noise.
Sigh - I wish I understood linux better - here is what I get with the updated patch, 2.6.30-8
root@server:/srv# bash ./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 vsock module
Found tar file for vmmon module
Using patch file: /srv/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 vsock.tar
Untarring vmmon.tar
Testing patch
patching file vmblock-only/linux/control.c
Hunk #2 succeeded at 159 (offset 1 line).
Hunk #3 succeeded at 173 (offset 1 line).
patching file vmblock-only/Makefile
Hunk #1 succeeded at 112 (offset -1 lines).
patching file vmci-only/Makefile
patching file vmmon-only/include/x86svm.h
Hunk #1 succeeded at 34 with fuzz 2 (offset -13 lines).
patching file vmmon-only/linux/driver.c
Hunk #1 succeeded at 1758 (offset -226 lines).
patching file vmmon-only/linux/hostif.c
Hunk #1 succeeded at 3237 (offset -186 lines).
Hunk #2 FAILED at 3351.
Hunk #3 FAILED at 3475.
2 out of 3 hunks FAILED -- saving rejects to file vmmon-only/linux/hostif.c.rej
patching file vmmon-only/Makefile
Hunk #1 succeeded at 139 with fuzz 1 (offset 26 lines).
patching file vmnet-only/Makefile
Hunk #1 succeeded at 139 with fuzz 1 (offset 26 lines).
patching file vmnet-only/netif.c
Hunk #1 succeeded at 310 (offset -14 lines).
Hunk #2 succeeded at 556 (offset -14 lines).
Hunk #3 succeeded at 612 (offset -14 lines).
Hunk #4 succeeded at 673 (offset -14 lines).
patching file vsock-only/Makefile
Sorry, problem with the patch, I can't apply it
Any thoughts?
simmo: What version of VMware Workstation are you running? What Linux distribution is your host running? What's your Linux kernel version (use this command: uname -a)?
It looks like you tried to patch something that was different from what was expected.
Also, try using farzy's patch (scroll back up to find his reply, then download the patch from there).
I suggest you uninstall and then reinstall VMware Workstation, then apply farzy's patch.
Should that patches also work on 64 bit versions?
None of that patches, including the latest, work for me on Ubuntu 9.04 64-bit with VMware workstation 6.5.2-156735.x86_64
CC /usr/lib/vmware/modules/source/vmmon-only/linux/driver.o
CC /usr/lib/vmware/modules/source/vmmon-only/linux/driverLog.o
CC /usr/lib/vmware/modules/source/vmmon-only/linux/hostif.o
/usr/lib/vmware/modules/source/vmmon-only/linux/hostif.c: In Funktion »HostIF_APICInit«:
/usr/lib/vmware/modules/source/vmmon-only/linux/hostif.c:2594: Fehler: Implizite Deklaration der Funktion »__fix_to_virt«
/usr/lib/vmware/modules/source/vmmon-only/linux/hostif.c:2594: Fehler: »FIX_APIC_BASE« nicht deklariert (erste Benutzung in dieser Funktion)
/usr/lib/vmware/modules/source/vmmon-only/linux/hostif.c:2594: Fehler: (Jeder nicht deklarierte Bezeichner wird nur einmal aufgeführt
/usr/lib/vmware/modules/source/vmmon-only/linux/hostif.c:2594: Fehler: für jede Funktion in der er auftritt.)
/usr/lib/vmware/modules/source/vmmon-only/linux/hostif.c: In Funktion »HostIF_APIC_ID«:
/usr/lib/vmware/modules/source/vmmon-only/linux/hostif.c:2639: Fehler: »FIX_APIC_BASE« nicht deklariert (erste Benutzung in dieser Funktion)
make[1]: ***
module/usr/lib/vmware/modules/source/vmmon-onlyFehler 2make[1]: Verlasse Verzeichnis '/usr/src/linux-2.6.30'
Sorry, problem compiling the vmmon module after it was patched
You must restore from this backup directory:
/usr/lib/vmware/modules/source-backup
Sorry for my german talking system... "Fehler" means "error"
Thanks.
It is the same for me with the Ubuntu 9.04 64-bit and VMware workstation 6.5.2-156735.x86_64!
Can someone tell me howto perform a clean uninstall of VMware?
Thanks
Greetings
I'm not sure how you guys do this stuff, or figure this out, but I'm extremely grateful!!
I commented-out the same lines and got it working with the patch on ubuntu x86_64 2.6.30 .
Everything else compiled perfectly except vmblock, so taking these lines out allowed me to install the patch.
THANK YOU!!!
Tim
=======================================================================
FYI:
Line 59 ( approximately 😞
diff -urN source-OLD/vmmon-only/include/x86apic.h source-NEW/vmmon-only/include/x86apic.h
--- source-OLD/vmmon-only/include/x86apic.h 2008-10-28 22:47:17.000000000 -0700
+++ source-NEW/vmmon-only/include/x86apic.h 2009-03-31 11:18:30.000000000 -0700
@@ -94,7 +94,11 @@
#define APIC_LVT_DELVMODE(_lvt) (_lvt & 0x700)
#define APIC_LVT_RESET_VALUE 0x00010000
===============================================================================
2009-06-16 08:45:27 : /root/vmware
./vmware-6.5.2-modules-2.6.30-fix.sh
Found tar file for vmppuser module
Found tar file for vmblock module
Found tar file for vmmon module
Found tar file for vmnet module
Found tar file for vsock module
Found tar file for vmci module
Using patch file: /root/vmware/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 vmppuser.tar
Untarring vmblock.tar
Untarring vmmon.tar
Untarring vmnet.tar
Untarring vsock.tar
Untarring vmci.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 vmppuser module
Preparing new tar file for vmblock module
Preparing new tar file for vmmon module
Preparing new tar file for vmnet module
Preparing new tar file for vsock module
Preparing new tar file for vmci module
Trying to compile vmblock module to see if it works
Using 2.6.x kernel build system.
make -C /lib/modules/2.6.30/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.30'
CC /usr/lib/vmware/modules/source/vmblock-only/linux/block.o
CC /usr/lib/vmware/modules/source/vmblock-only/linux/control.o
CC /usr/lib/vmware/modules/source/vmblock-only/linux/dbllnklst.o
CC /usr/lib/vmware/modules/source/vmblock-only/linux/dentry.o
CC /usr/lib/vmware/modules/source/vmblock-only/linux/file.o
CC /usr/lib/vmware/modules/source/vmblock-only/linux/filesystem.o
CC /usr/lib/vmware/modules/source/vmblock-only/linux/inode.o
CC /usr/lib/vmware/modules/source/vmblock-only/linux/module.o
CC /usr/lib/vmware/modules/source/vmblock-only/linux/stubs.o
CC /usr/lib/vmware/modules/source/vmblock-only/linux/super.o
LD /usr/lib/vmware/modules/source/vmblock-only/vmblock.o
Building modules, stage 2.
MODPOST 1 modules
CC /usr/lib/vmware/modules/source/vmblock-only/vmblock.mod.o
LD /usr/lib/vmware/modules/source/vmblock-only/vmblock.ko
make[1]: Leaving directory `/usr/src/linux-2.6.30'
make -C $PWD SRCROOT=$PWD/. postbuild
make[1]: Entering directory `/usr/lib/vmware/modules/source/vmblock-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/usr/lib/vmware/modules/source/vmblock-only'
cp -f vmblock.ko ./../vmblock.o
Trying to compile vmmon module to see if it works
Using 2.6.x kernel build system.
make -C /lib/modules/2.6.30/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.30'
CC /usr/lib/vmware/modules/source/vmmon-only/linux/driver.o
CC /usr/lib/vmware/modules/source/vmmon-only/linux/driverLog.o
CC /usr/lib/vmware/modules/source/vmmon-only/linux/hostif.o
CC /usr/lib/vmware/modules/source/vmmon-only/common/comport.o
CC /usr/lib/vmware/modules/source/vmmon-only/common/cpuid.o
CC /usr/lib/vmware/modules/source/vmmon-only/common/hashFunc.o
CC /usr/lib/vmware/modules/source/vmmon-only/common/memtrack.o
CC /usr/lib/vmware/modules/source/vmmon-only/common/phystrack.o
CC /usr/lib/vmware/modules/source/vmmon-only/common/task.o
CC /usr/lib/vmware/modules/source/vmmon-only/common/vmx86.o
CC /usr/lib/vmware/modules/source/vmmon-only/vmcore/moduleloop.o
LD /usr/lib/vmware/modules/source/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST 1 modules
CC /usr/lib/vmware/modules/source/vmmon-only/vmmon.mod.o
LD /usr/lib/vmware/modules/source/vmmon-only/vmmon.ko
make[1]: Leaving directory `/usr/src/linux-2.6.30'
make -C $PWD SRCROOT=$PWD/. postbuild
make[1]: Entering directory `/usr/lib/vmware/modules/source/vmmon-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/usr/lib/vmware/modules/source/vmmon-only'
cp -f vmmon.ko ./../vmmon.o
Trying to compile vmnet module to see if it works
Using 2.6.x kernel build system.
make -C /lib/modules/2.6.30/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.30'
CC /usr/lib/vmware/modules/source/vmnet-only/driver.o
CC /usr/lib/vmware/modules/source/vmnet-only/hub.o
CC /usr/lib/vmware/modules/source/vmnet-only/userif.o
CC /usr/lib/vmware/modules/source/vmnet-only/netif.o
CC /usr/lib/vmware/modules/source/vmnet-only/bridge.o
CC /usr/lib/vmware/modules/source/vmnet-only/filter.o
CC /usr/lib/vmware/modules/source/vmnet-only/procfs.o
CC /usr/lib/vmware/modules/source/vmnet-only/smac_compat.o
CC /usr/lib/vmware/modules/source/vmnet-only/smac.o
CC /usr/lib/vmware/modules/source/vmnet-only/vnetEvent.o
CC /usr/lib/vmware/modules/source/vmnet-only/vnetUserListener.o
LD /usr/lib/vmware/modules/source/vmnet-only/vmnet.o
Building modules, stage 2.
MODPOST 1 modules
CC /usr/lib/vmware/modules/source/vmnet-only/vmnet.mod.o
LD /usr/lib/vmware/modules/source/vmnet-only/vmnet.ko
make[1]: Leaving directory `/usr/src/linux-2.6.30'
make -C $PWD SRCROOT=$PWD/. postbuild
make[1]: Entering directory `/usr/lib/vmware/modules/source/vmnet-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/usr/lib/vmware/modules/source/vmnet-only'
cp -f vmnet.ko ./../vmnet.o
Trying to compile vsock module to see if it works
Using 2.6.x kernel build system.
Building VMCI Sockets with VMCI module symbols.
cp -f /tmp/VMwareVMCIModule.symvers ./Module.symvers
make -C /lib/modules/2.6.30/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.30'
CC /usr/lib/vmware/modules/source/vsock-only/linux/af_vsock.o
CC /usr/lib/vmware/modules/source/vsock-only/linux/driverLog.o
CC /usr/lib/vmware/modules/source/vsock-only/linux/util.o
/usr/lib/vmware/modules/source/vsock-only/linux/util.c: In function ‘VSockVmciLogPkt’:
/usr/lib/vmware/modules/source/vsock-only/linux/util.c:157: warning: format not a string literal and no format arguments
CC /usr/lib/vmware/modules/source/vsock-only/linux/vsockAddr.o
LD /usr/lib/vmware/modules/source/vsock-only/vsock.o
Building modules, stage 2.
MODPOST 1 modules
CC /usr/lib/vmware/modules/source/vsock-only/vsock.mod.o
LD /usr/lib/vmware/modules/source/vsock-only/vsock.ko
make[1]: Leaving directory `/usr/src/linux-2.6.30'
make -C $PWD SRCROOT=$PWD/. postbuild
make[1]: Entering directory `/usr/lib/vmware/modules/source/vsock-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/usr/lib/vmware/modules/source/vsock-only'
cp -f vsock.ko ./../vsock.o
Trying to compile vmci module to see if it works
Using 2.6.x kernel build system.
make -C /lib/modules/2.6.30/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.30'
CC /usr/lib/vmware/modules/source/vmci-only/linux/driver.o
CC /usr/lib/vmware/modules/source/vmci-only/linux/driverLog.o
CC /usr/lib/vmware/modules/source/vmci-only/linux/vmciKernelIf.o
CC /usr/lib/vmware/modules/source/vmci-only/common/vmciContext.o
CC /usr/lib/vmware/modules/source/vmci-only/common/vmciDatagram.o
CC /usr/lib/vmware/modules/source/vmci-only/common/vmciDriver.o
CC /usr/lib/vmware/modules/source/vmci-only/common/vmciDs.o
CC /usr/lib/vmware/modules/source/vmci-only/common/vmciEvent.o
CC /usr/lib/vmware/modules/source/vmci-only/common/vmciGroup.o
CC /usr/lib/vmware/modules/source/vmci-only/common/vmciHashtable.o
CC /usr/lib/vmware/modules/source/vmci-only/common/vmciProcess.o
CC /usr/lib/vmware/modules/source/vmci-only/common/vmciQueuePair.o
CC /usr/lib/vmware/modules/source/vmci-only/common/vmciResource.o
LD /usr/lib/vmware/modules/source/vmci-only/vmci.o
Building modules, stage 2.
MODPOST 1 modules
CC /usr/lib/vmware/modules/source/vmci-only/vmci.mod.o
LD /usr/lib/vmware/modules/source/vmci-only/vmci.ko
make[1]: Leaving directory `/usr/src/linux-2.6.30'
make -C $PWD SRCROOT=$PWD/. postbuild
make[1]: Entering directory `/usr/lib/vmware/modules/source/vmci-only'
cp -f /usr/lib/vmware/modules/source/vmci-only/./Module.symvers /tmp/VMwareVMCIModule.symvers
make[1]: Leaving directory `/usr/lib/vmware/modules/source/vmci-only'
cp -f vmci.ko ./../vmci.o
Replacing original file vmppuser.tar with patched file
Replacing original file vmblock.tar with patched file
Replacing original file vmmon.tar with patched file
Replacing original file vmnet.tar with patched file
Replacing original file vsock.tar with patched file
Replacing original file vmci.tar with patched file
Done!
I have changed the files in here:
/usr/lib/vmware/modules/source
I have placed a backup of the original files in here:
/usr/lib/vmware/modules/source-backup
The original VMware modules directory is still in the way.
Please move this directory somewhere else, because it confuses VMware:
/usr/lib/vmware/modules/binary
This command should work now, to install the modules:
vmware-modconfig --console --install-all
2009-06-16 08:45:52 : /root/vmware
vmware-modconfig --console --install-all
Stopping VMware services:
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/2.6.30/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.30'
CC /tmp/vmware-root/modules/vmmon-only/linux/driver.o
CC /tmp/vmware-root/modules/vmmon-only/linux/driverLog.o
CC /tmp/vmware-root/modules/vmmon-only/linux/hostif.o
CC /tmp/vmware-root/modules/vmmon-only/common/comport.o
CC /tmp/vmware-root/modules/vmmon-only/common/cpuid.o
CC /tmp/vmware-root/modules/vmmon-only/common/hashFunc.o
CC /tmp/vmware-root/modules/vmmon-only/common/memtrack.o
CC /tmp/vmware-root/modules/vmmon-only/common/phystrack.o
CC /tmp/vmware-root/modules/vmmon-only/common/task.o
CC /tmp/vmware-root/modules/vmmon-only/common/vmx86.o
CC /tmp/vmware-root/modules/vmmon-only/vmcore/moduleloop.o
LD /tmp/vmware-root/modules/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-root/modules/vmmon-only/vmmon.mod.o
LD /tmp/vmware-root/modules/vmmon-only/vmmon.ko
make[1]: Leaving directory `/usr/src/linux-2.6.30'
make -C $PWD SRCROOT=$PWD/. postbuild
make[1]: Entering directory `/tmp/vmware-root/modules/vmmon-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
VMWARE_LD_LIBRARY_PATH is already set, but it will be overridden.
VMWARE_LD_PRELOAD is already set, but it will be overridden.
VMWARE_PANGO_RC_FILE is already set, but it will be overridden.
VMWARE_GDK_PIXBUF_MODULE_FILE is already set, but it will be overridden.
VMWARE_GTK_IM_MODULE_FILE is already set, but it will be overridden.
VMWARE_FONTCONFIG_PATH is already set, but it will be overridden.
VMWARE_GTK2_RC_FILES is already set, but it will be overridden.
VMWARE_GTK_PATH is already set, but it will be overridden.
VMWARE_LD_LIBRARY_PATH is already set, but it will be overridden.
VMWARE_LD_PRELOAD is already set, but it will be overridden.
VMWARE_PANGO_RC_FILE is already set, but it will be overridden.
VMWARE_GDK_PIXBUF_MODULE_FILE is already set, but it will be overridden.
VMWARE_GTK_IM_MODULE_FILE is already set, but it will be overridden.
VMWARE_FONTCONFIG_PATH is already set, but it will be overridden.
VMWARE_GTK2_RC_FILES is already set, but it will be overridden.
VMWARE_GTK_PATH is already set, but it will be overridden.
Built vmmon module
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmnet-only'
make -C /lib/modules/2.6.30/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.30'
CC /tmp/vmware-root/modules/vmnet-only/driver.o
CC /tmp/vmware-root/modules/vmnet-only/hub.o
CC /tmp/vmware-root/modules/vmnet-only/userif.o
CC /tmp/vmware-root/modules/vmnet-only/netif.o
CC /tmp/vmware-root/modules/vmnet-only/bridge.o
CC /tmp/vmware-root/modules/vmnet-only/filter.o
CC /tmp/vmware-root/modules/vmnet-only/procfs.o
CC /tmp/vmware-root/modules/vmnet-only/smac_compat.o
CC /tmp/vmware-root/modules/vmnet-only/smac.o
CC /tmp/vmware-root/modules/vmnet-only/vnetEvent.o
CC /tmp/vmware-root/modules/vmnet-only/vnetUserListener.o
LD /tmp/vmware-root/modules/vmnet-only/vmnet.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-root/modules/vmnet-only/vmnet.mod.o
LD /tmp/vmware-root/modules/vmnet-only/vmnet.ko
make[1]: Leaving directory `/usr/src/linux-2.6.30'
make -C $PWD SRCROOT=$PWD/. postbuild
make[1]: Entering directory `/tmp/vmware-root/modules/vmnet-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/vmware-root/modules/vmnet-only'
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory `/tmp/vmware-root/modules/vmnet-only'
VMWARE_LD_LIBRARY_PATH is already set, but it will be overridden.
VMWARE_LD_PRELOAD is already set, but it will be overridden.
VMWARE_PANGO_RC_FILE is already set, but it will be overridden.
VMWARE_GDK_PIXBUF_MODULE_FILE is already set, but it will be overridden.
VMWARE_GTK_IM_MODULE_FILE is already set, but it will be overridden.
VMWARE_FONTCONFIG_PATH is already set, but it will be overridden.
VMWARE_GTK2_RC_FILES is already set, but it will be overridden.
VMWARE_GTK_PATH is already set, but it will be overridden.
VMWARE_LD_LIBRARY_PATH is already set, but it will be overridden.
VMWARE_LD_PRELOAD is already set, but it will be overridden.
VMWARE_PANGO_RC_FILE is already set, but it will be overridden.
VMWARE_GDK_PIXBUF_MODULE_FILE is already set, but it will be overridden.
VMWARE_GTK_IM_MODULE_FILE is already set, but it will be overridden.
VMWARE_FONTCONFIG_PATH is already set, but it will be overridden.
VMWARE_GTK2_RC_FILES is already set, but it will be overridden.
VMWARE_GTK_PATH is already set, but it will be overridden.
Built vmnet module
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmblock-only'
make -C /lib/modules/2.6.30/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.30'
CC /tmp/vmware-root/modules/vmblock-only/linux/block.o
CC /tmp/vmware-root/modules/vmblock-only/linux/control.o
CC /tmp/vmware-root/modules/vmblock-only/linux/dbllnklst.o
CC /tmp/vmware-root/modules/vmblock-only/linux/dentry.o
CC /tmp/vmware-root/modules/vmblock-only/linux/file.o
CC /tmp/vmware-root/modules/vmblock-only/linux/filesystem.o
CC /tmp/vmware-root/modules/vmblock-only/linux/inode.o
CC /tmp/vmware-root/modules/vmblock-only/linux/module.o
CC /tmp/vmware-root/modules/vmblock-only/linux/stubs.o
CC /tmp/vmware-root/modules/vmblock-only/linux/super.o
LD /tmp/vmware-root/modules/vmblock-only/vmblock.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-root/modules/vmblock-only/vmblock.mod.o
LD /tmp/vmware-root/modules/vmblock-only/vmblock.ko
make[1]: Leaving directory `/usr/src/linux-2.6.30'
make -C $PWD SRCROOT=$PWD/. postbuild
make[1]: Entering directory `/tmp/vmware-root/modules/vmblock-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/vmware-root/modules/vmblock-only'
cp -f vmblock.ko ./../vmblock.o
make: Leaving directory `/tmp/vmware-root/modules/vmblock-only'
VMWARE_LD_LIBRARY_PATH is already set, but it will be overridden.
VMWARE_LD_PRELOAD is already set, but it will be overridden.
VMWARE_PANGO_RC_FILE is already set, but it will be overridden.
VMWARE_GDK_PIXBUF_MODULE_FILE is already set, but it will be overridden.
VMWARE_GTK_IM_MODULE_FILE is already set, but it will be overridden.
VMWARE_FONTCONFIG_PATH is already set, but it will be overridden.
VMWARE_GTK2_RC_FILES is already set, but it will be overridden.
VMWARE_GTK_PATH is already set, but it will be overridden.
VMWARE_LD_LIBRARY_PATH is already set, but it will be overridden.
VMWARE_LD_PRELOAD is already set, but it will be overridden.
VMWARE_PANGO_RC_FILE is already set, but it will be overridden.
VMWARE_GDK_PIXBUF_MODULE_FILE is already set, but it will be overridden.
VMWARE_GTK_IM_MODULE_FILE is already set, but it will be overridden.
VMWARE_FONTCONFIG_PATH is already set, but it will be overridden.
VMWARE_GTK2_RC_FILES is already set, but it will be overridden.
VMWARE_GTK_PATH is already set, but it will be overridden.
Built vmblock module
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmci-only'
make -C /lib/modules/2.6.30/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.30'
CC /tmp/vmware-root/modules/vmci-only/linux/driver.o
CC /tmp/vmware-root/modules/vmci-only/linux/driverLog.o
CC /tmp/vmware-root/modules/vmci-only/linux/vmciKernelIf.o
CC /tmp/vmware-root/modules/vmci-only/common/vmciContext.o
CC /tmp/vmware-root/modules/vmci-only/common/vmciDatagram.o
CC /tmp/vmware-root/modules/vmci-only/common/vmciDriver.o
CC /tmp/vmware-root/modules/vmci-only/common/vmciDs.o
CC /tmp/vmware-root/modules/vmci-only/common/vmciEvent.o
CC /tmp/vmware-root/modules/vmci-only/common/vmciGroup.o
CC /tmp/vmware-root/modules/vmci-only/common/vmciHashtable.o
CC /tmp/vmware-root/modules/vmci-only/common/vmciProcess.o
CC /tmp/vmware-root/modules/vmci-only/common/vmciQueuePair.o
CC /tmp/vmware-root/modules/vmci-only/common/vmciResource.o
LD /tmp/vmware-root/modules/vmci-only/vmci.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-root/modules/vmci-only/vmci.mod.o
LD /tmp/vmware-root/modules/vmci-only/vmci.ko
make[1]: Leaving directory `/usr/src/linux-2.6.30'
make -C $PWD SRCROOT=$PWD/. postbuild
make[1]: Entering directory `/tmp/vmware-root/modules/vmci-only'
cp -f /tmp/vmware-root/modules/vmci-only/./Module.symvers /tmp/VMwareVMCIModule.symvers
make[1]: Leaving directory `/tmp/vmware-root/modules/vmci-only'
cp -f vmci.ko ./../vmci.o
make: Leaving directory `/tmp/vmware-root/modules/vmci-only'
VMWARE_LD_LIBRARY_PATH is already set, but it will be overridden.
VMWARE_LD_PRELOAD is already set, but it will be overridden.
VMWARE_PANGO_RC_FILE is already set, but it will be overridden.
VMWARE_GDK_PIXBUF_MODULE_FILE is already set, but it will be overridden.
VMWARE_GTK_IM_MODULE_FILE is already set, but it will be overridden.
VMWARE_FONTCONFIG_PATH is already set, but it will be overridden.
VMWARE_GTK2_RC_FILES is already set, but it will be overridden.
VMWARE_GTK_PATH is already set, but it will be overridden.
VMWARE_LD_LIBRARY_PATH is already set, but it will be overridden.
VMWARE_LD_PRELOAD is already set, but it will be overridden.
VMWARE_PANGO_RC_FILE is already set, but it will be overridden.
VMWARE_GDK_PIXBUF_MODULE_FILE is already set, but it will be overridden.
VMWARE_GTK_IM_MODULE_FILE is already set, but it will be overridden.
VMWARE_FONTCONFIG_PATH is already set, but it will be overridden.
VMWARE_GTK2_RC_FILES is already set, but it will be overridden.
VMWARE_GTK_PATH is already set, but it will be overridden.
Built vmci module
Using 2.6.x kernel build system.
Building VMCI Sockets with VMCI module symbols.
make: Entering directory `/tmp/vmware-root/modules/vsock-only'
cp -f /tmp/VMwareVMCIModule.symvers ./Module.symvers
make -C /lib/modules/2.6.30/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.30'
CC /tmp/vmware-root/modules/vsock-only/linux/af_vsock.o
CC /tmp/vmware-root/modules/vsock-only/linux/driverLog.o
CC /tmp/vmware-root/modules/vsock-only/linux/util.o
/tmp/vmware-root/modules/vsock-only/linux/util.c: In function ‘VSockVmciLogPkt’:
/tmp/vmware-root/modules/vsock-only/linux/util.c:157: warning: format not a string literal and no format arguments
CC /tmp/vmware-root/modules/vsock-only/linux/vsockAddr.o
LD /tmp/vmware-root/modules/vsock-only/vsock.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-root/modules/vsock-only/vsock.mod.o
LD /tmp/vmware-root/modules/vsock-only/vsock.ko
make[1]: Leaving directory `/usr/src/linux-2.6.30'
make -C $PWD SRCROOT=$PWD/. postbuild
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_LD_LIBRARY_PATH is already set, but it will be overridden.
VMWARE_LD_PRELOAD is already set, but it will be overridden.
VMWARE_PANGO_RC_FILE is already set, but it will be overridden.
VMWARE_GDK_PIXBUF_MODULE_FILE is already set, but it will be overridden.
VMWARE_GTK_IM_MODULE_FILE is already set, but it will be overridden.
VMWARE_FONTCONFIG_PATH is already set, but it will be overridden.
VMWARE_GTK2_RC_FILES is already set, but it will be overridden.
VMWARE_GTK_PATH is already set, but it will be overridden.
VMWARE_LD_LIBRARY_PATH is already set, but it will be overridden.
VMWARE_LD_PRELOAD is already set, but it will be overridden.
VMWARE_PANGO_RC_FILE is already set, but it will be overridden.
VMWARE_GDK_PIXBUF_MODULE_FILE is already set, but it will be overridden.
VMWARE_GTK_IM_MODULE_FILE is already set, but it will be overridden.
VMWARE_FONTCONFIG_PATH is already set, but it will be overridden.
VMWARE_GTK2_RC_FILES is already set, but it will be overridden.
VMWARE_GTK_PATH is already set, but it will be overridden.
Built vsock module
Starting VMware services:
Virtual machine monitor done
Virtual machine communication interface done
Blocking file system done
Virtual ethernet done
Shared Memory Available done
2009-06-16 08:51:05 : /root/vmware
Linux tahiti 2.6.30 #1 SMP Tue Jun 16 07:24:22 PDT 2009 x86_64 GNU/Linux
I can confirm that the patch works fine for vmware-player as well.
I unpacked the tarfiles from the vmware-player module sources, applied the patch with a patchlevel of p1 (as the topdir names are different from the names in vmware-workstation)
patch -p1 < /tmp/vmware-6.5.2-modules-2.6.30-fix.patch
cd vmblock-only
make
etc.
Thanks for making this patch available !
I had this problem with vmmon module.
---
make[1]: Entering directory `/usr/src/linux-2.6.30'
CC /usr/lib/vmware/modules/source/vmmon-only/linux/driver.o
In file included from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /usr/lib/vmware/modules/source/vmmon-only/./include/compat_module.h:27,
from /usr/lib/vmware/modules/source/vmmon-only/linux/driver.c:26:
include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory
include/linux/mmzone.h:256:5: warning: "MAX_NR_ZONES" is not defined
In file included from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /usr/lib/vmware/modules/source/vmmon-only/./include/compat_module.h:27,
from /usr/lib/vmware/modules/source/vmmon-only/linux/driver.c:26:
include/linux/mmzone.h:290: error: 'MAX_NR_ZONES' undeclared here (not in a function)
In file included from /usr/lib/vmware/modules/source/vmmon-only/./include/compat_page.h:23,
from /usr/lib/vmware/modules/source/vmmon-only/linux/driver.c:33:
include/linux/mm.h:446:63: warning: "NR_PAGEFLAGS" is not defined
include/linux/mm.h:494:62: warning: "NR_PAGEFLAGS" is not defined
make[1]: *** module/usr/lib/vmware/modules/source/vmmon-only Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.30'
Sorry, problem compiling the vmmon module after it was patched
---
Trouble was that I ran 'make clean' in kernel tree after I built it few days ago, and forgot about it.
It seems that 'make clean' removes bounds.h from include/linux, which is needed during the build
of the vmmon module.I ran 'make prepare' in kernel tree, and it regenerated needed headers.
Then smooth sail from that point on-'sh vmware-6.5.2-modules-2.6.30-fix.sh', and then 'vmware-modconfig --console --install-all' All is fine
Big thanks to Krellan and farzy (whose modified patch I used.)
You guys are awesome
Message was edited by: bofh.wannabe