UPDATE: These patches are obsoleted by Workstatioin 7.1.4, for which only a BKL-less kernel needs any patch (to vmnet).
Attached is the patch for VMware Workstation 7.1.3 on Linux Kernel 2.6.37. Tested against Ubuntu Natty 11.04 2.6.37-2-generic.
The patch also includes the necessary change for 2.6.36, and should work with both kernels, since the 2.6.37 change is protected by a version check. The plain 2.6.36 patch, which does not support 2.6.37 is available here.
List of changes:
define VMW_HAVE_UNLOCKED_IOCTL in vmmon's driver.c as required for 2.6.36
the semaphore patch for 2.6.37, applied only to those modules that actually need it: vmci, vmnet, and vsock.
[UPDATE: The attached patch is updated to work through 2.6.37-11]
Updated to reflect Workstation 7.1.4.
Thanks for making this patch!
I remember having to make a similar patch during the summer of 2009 for doing exactly the same thing, except it was for VMware Workstation 6.5.2 (and 6.5.3) and kernel 2.6.29 (and 2.6.30 and 2.6.31).
When VMware 6.5.3 came out, and it worked "out of the box" on the newest kernels, I thought VMware was finally paying attention to the upstream kernel again, and that our job was done. Now that I have a reason to use VMware Player/Workstation again on Linux, I'm pleased to find this patch already exists. So, I don't have to roll my own once again
Josh
Nice script! I ran it, and it seemed to work OK, however a lot of errors showed up on the screen about "getcwd: unable to get current working directory" and so forth.
I think the bug is this: vmware-modconfig really hates to be ran from a directory that no longer exists.
In your script, "$tmpdir" is removed, but the script stays in that directory for the final run of vmware-modconfig. Insert this line right before vmware-modconfig, should take care of it:
cd "$curdir"
Josh
Thanks for noticing that glitch, I've updated the script.
Thanks a lot for the script!
But, there is always a but, I used the script for the VMware Player and it worked perfectly... after changing the product/version detecting stuff.
Can you make it more product agnostic?
Thanks again!
Raul
Here it is:
rvmps@lance:~$ vmware-installer -l
Product Name Product Version
====================== ====================
vmware-player 3.1.3.324285
Thanks!
Raul
Pretty sure I'm using the stock 7.1.3 sources to apply the above patch /w patch modules, but I was getting errors /w the patch for iommu.c (and comparing source lines to patch lines source lines aren't even close)..
Solution was to remove the iommu section of the patch file, modules compiled fine after this /w opensuse and kernel 2.6.37-rc3-git1-4-desktop
Patch is does not work with 2.6.36:
bash patch-modules_v61.sh
patching file vmci-only/include/compat_semaphore.h
patching file vmnet-only/compat_semaphore.h
patching file vsock-only/shared/compat_semaphore.h
patching file vmmon-only/linux/iommu.c
Hunk #1 FAILED at 153.
Hunk #2 FAILED at 400.
2 out of 2 hunks FAILED -- saving rejects to file vmmon-only/linux/iommu.c.rej
patching file vmmon-only/linux/driver.c
CC /tmp/vmware-root/modules/vmmon-only/common/cpuid.o
make[4]: *** Waiting for unfinished jobs....
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMU_SetupMMU’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:103: warning: cast from pointer to integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:113: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘long long unsigned int’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:117: warning: cast to pointer from integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:120: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘uint64’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMUUnregisterDeviceInt’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:217: warning: ignoring return value of ‘device_attach’, declared with attribute warn_unused_result
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c: In function ‘HostIFReadUptimeWork’:
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c:2004: warning: ‘newUpBase’ may be used uninitialized in this function
make[1]: Leaving directory `/usr/src/linux-headers-2.6.36-trunk-686'
make: *** http://vmmon.ko Error 2
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
Unable to install vmmon
Shame I have to follow a spammer.
Anyway, thanks for your work on this patch. I've recently installed the 2.6.37 kernel on my openSUSE 11.3 box and I'm having problems, I have the following kernel installed:
2.6.37-rc3-git1-5-desktop
The patch applies OK and without errrors and when I do the following I get an error with vmmon:
vmware-modconfig --console --install-allStopping VMware services:
VMware USB Arbitrator 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/2.6.37-rc3-git1-5-desktop/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-2.6.37-rc3-git1-5-obj/x86_64/desktop'
make -C ../../../linux-2.6.37-rc3-git1-5 O=/usr/src/linux-2.6.37-rc3-git1-5-obj/x86_64/desktop/. modules
CC /tmp/vmware-root/modules/vmmon-only/linux/driver.o
/tmp/vmware-root/modules/vmmon-only/linux/driver.c: In function ‘LinuxDriver_Ioctl’:
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1737:7: error: implicit declaration of function ‘kernel_locked’
make[1]: Leaving directory `/usr/src/linux-2.6.37-rc3-git1-5-obj/x86_64/desktop'
make: *** http://vmmon.ko Error 2
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
Unable to install vmmon
Is there anything else you need and is it fixable?
My patch should have fixed that. Here is the driver.c patch:
diff -ru original/vmmon-only/linux/driver.c patched/vmmon-only/linux/driver.c --- original/vmmon-only/linux/driver.c 2010-11-11 13:37:22.000000000 -0700 +++ patched/vmmon-only/linux/driver.c 2010-11-24 12:05:48.924489002 -0700 @@ -145,7 +145,7 @@ #endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) && \ (defined(CONFIG_SMP) || defined(CONFIG_PREEMPT)) -# define kernel_locked_by_current() kernel_locked() +# define kernel_locked_by_current() (current->lock_depth >= 0) #else # define kernel_locked_by_current() 0 #endif @@ -170,6 +170,7 @@ static int LinuxDriver_Ioctl(struct inode *inode, struct file *filp, u_int iocmd, unsigned long ioarg); #if defined(HAVE_UNLOCKED_IOCTL) || defined(HAVE_COMPAT_IOCTL) +#define VMW_HAVE_UNLOCKED_IOCTL static long LinuxDriver_UnlockedIoctl(struct file *filp, u_int iocmd, unsigned long ioarg); #endif
Hi
Thanks for your prompt reply. OK, first thing - the error I encountered was PEBKAC. I had the file 'patch-modules_v61.sh' in the directory with the correct ...37-6.generic.patch file but for some strange reason it referenced the old ...37-2.generic.patch which was in the same directory. Downloading it again and applying the correct patch worked fine with the exception that it now gives the same iommu error mentioned by zwierbel
patching file vmci-only/include/compat_semaphore.h
patching file vmnet-only/compat_semaphore.h
patching file vsock-only/shared/compat_semaphore.h
patching file vmmon-only/linux/iommu.c
Hunk #1 FAILED at 153.
Hunk #2 FAILED at 400.
2 out of 2 hunks FAILED -- saving rejects to file vmmon-only/linux/iommu.c.rej
patching file vmmon-only/linux/driver.c
Commenting out that section of the patch file worked for me and Workstation is now running fine. Once again, many thanks for your patch for this problem.
Anyway of redo patch and shell program to work with Natyy (Ubuntu 11.04) running kernel 2.6.37-6-generic?
I certainly will appreciate it. This is the latest kernel from the Natty daily build. I have uninstalled it and "think" I've removed all patch backup files. When running the patch as is WS says it needs to recomplie for the kernel headers but that failaes.
I am now installing "build-esseential with gcc+ 4.5 Will re-insatll WS7.1.3 and wait for y;our genourous reply!
Marty Felker
As for using VMware Player, here's a thought.
You might want to consider downloading/installing VMware Workstation, even if you do not possess a license key. The reason for this is that Workstation is a superset of Player, and installs Player alongside Workstation when you install it.
VMware Workstation has a much better configuration interface, such as the "virtual network editor", that makes it easier to set up some things that are more difficult/impossible to do in the limited Player interface.
You only need a license key to power up a VM in Workstation. You can do everything else in Workstation, such as install it, change configuration settings, etc. without needing a key. When you're ready to power up your VM, simply quit Workstation then run Player instead.
The kernel modules are the same for both Player and Workstation, IIRC.
This will save people the trouble of having to maintain two separate patch scripts for Workstation and Player installs
Hi everybody who has helped with coding this patch(s). I aplogize ffor beating this horse once again - but I am running Ubuntu 11.04 kernel 2.6.37-8 ( the latest I can fiond) on a workstation and a server - both in multiboot configurations. I particularly want to get VM WS 7.1.3 working on teh server platform in order to convert a guest from VMware to Hyper-V virtual machines. The Workstation also has a Windows 7 OS and I can upgrade my openSUSE and Fedora "Rawhide" to this level of kernel.
Even though I chanaged the patch reference from 2.6.37.2 to 2.6.367.6 in the script I still get the errors that were mentioned viz:
patching file vmci-only/include/compat_semaphore.h
patching file vmnet-only/compat_semaphore.hCC /tmp/vmware-root/modules/vmmon-only/common/cpuid.o
make[4]: *** Error 1CC /tmp/vmware-root/modules/vmmon-only/common/cpuid.o
make[4]: *** Error 1CC /tmp/vmware-root/modules/vmmon-only/common/cpuid.o
make[4]: *** Waiting for unfinished jobs....
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMU_SetupMMU’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:103: warning: cast from pointer to integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:113: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘long long unsigned int’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:117: warning: cast to pointer from integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:120: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘uint64’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMUUnregisterDeviceInt’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:217: warning: ignoring return value of ‘device_attach’, declared with attribute warn_unused_result
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c: In function ‘HostIFReadUptimeWork’:
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c:2004: warning: ‘newUpBase’ may be used uninitialized in this function
make[3]: *** module/tmp/vmware-root/modules/vmmon-only Error 2
make[2]: *** sub-make Error 2
make[1]: *** all Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.36-trunk-686'
make: *** http://vmmon.ko Error 2
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
Unable to install vmmon
make[4]: *** Waiting for unfinished jobs....
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMU_SetupMMU’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:103: warning: cast from pointer to integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:113: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘long long unsigned int’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:117: warning: cast to pointer from integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:120: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘uint64’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMUUnregisterDeviceInt’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:217: warning: ignoring return value of ‘device_attach’, declared with attribute warn_unused_result
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c: In function ‘HostIFReadUptimeWork’:
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c:2004: warning: ‘newUpBase’ may be used uninitialized in this function
make[3]: *** module/tmp/vmware-root/modules/vmmon-only Error 2
make[2]: *** sub-make Error 2
make[1]: *** all Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.36-trunk-686'
make: *** http://vmmon.ko Error 2
I Marty Felker
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
Unable to install vmmon
make[4]: *** Waiting for unfinished jobs....
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMU_SetupMMU’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:103: warning: cast from pointer to integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:113: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘long long unsigned int’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:117: warning: cast to pointer from integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:120: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘uint64’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMUUnregisterDeviceInt’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:217: warning: ignoring return value of ‘device_attach’, declared with attribute warn_unused_result
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c: In function ‘HostIFReadUptimeWork’:
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c:2004: warning: ‘newUpBase’ may be used uninitialized in this function
make[3]: *** module/tmp/vmware-root/modules/vmmon-only Error 2
make[2]: *** sub-make Error 2
make[1]: *** all Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.36-trunk-686'
make: *** http://vmmon.ko Error 2
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
Unable to install vmmon
patching file vsock-only/shared/compat_semaphore.h
patching file vmmon-only/linux/iommu.c
Hunk #1 FAILED at 153.CC /tmp/vmware-root/modules/vmmon-only/common/cpuid.o
make[4]: *** Waiting for unfinished jobs....
I Marty Felker
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMU_SetupMMU’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:103: warning: cast from pointer to integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:113: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘long long unsigned int’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:117: warning: cast to pointer from integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:120: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘uint64’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMUUnregisterDeviceInt’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:217: warning: ignoring return value of ‘device_attach’, declared with attribute warn_unused_result
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c: In function ‘HostIFReadUptimeWork’:
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c:2004: warning: ‘newUpBase’ may be used uninitialized in this function
make[3]: *** module/tmp/vmware-root/modules/vmmon-only Error 2
make[2]: *** sub-make Error 2
make[1]: *** all Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.36-trunk-686'
make: *** http://vmmon.ko Error 2
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
Unable to install vmmon
Hunk #2 FAILED at 400.
2 out of 2 hunks FAILED -- saving rejects to file vmmon-only/linux/iommu.c.rej
patching file vmmon-only/linux/driver.c
afater this first attempt which several have reported.
CC /tmp/vmware-root/modules/vmmon-only/common/cpuid.oCC /tmp/vmware-root/modules/vmmon-only/common/cpuid.o
make[4]: *** Waiting for unfinished jobs....
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMU_SetupMMU’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:103: warning: cast from pointer to integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:113: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘long long unsigned int’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:117: warning: cast to pointer from integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:120: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘uint64’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMUUnregisterDeviceInt’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:217: warning: ignoring return value of ‘device_attach’, declared with attribute warn_unused_result
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c: In function ‘HostIFReadUptimeWork’:
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c:2004: warning: ‘newUpBase’ may be used uninitialized in this function
make[3]: *** module/tmp/vmware-root/modules/vmmon-only Error 2
make[2]: *** sub-make Error 2
make[1]: *** all Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.36-trunk-686'
make: *** http://vmmon.ko Error 2
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
Unable to install vmmon
make[4]: *** Waiting for unfinished jobs....
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMU_SetupMMU’:CC /tmp/vmware-root/modules/vmmon-only/common/cpuid.o
make[4]: *** Waiting for unfinished jobs....CC /tmp/vmware-root/modules/vmmon-only/common/cpuid.o
make[4]: *** Waiting for unfinished jobs....CC /tmp/vmware-root/modules/vmmon-only/common/cpuid.o
make[4]: *** Waiting for unfinished jobs....
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMU_SetupMMU’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:103: warning: cast from pointer to integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:113: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘long long unsigned int’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:117: warning: cast to pointer from integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:120: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘uint64’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMUUnregisterDeviceInt’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:217: warning: ignoring return value of ‘device_attach’, declared with attribute warn_unused_result
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c: In function ‘HostIFReadUptimeWork’:
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c:2004: warning: ‘newUpBase’ may be used uninitialized in this function
make[3]: *** module/tmp/vmware-root/modules/vmmon-only Error 2
make[2]: *** sub-make Error 2
make[1]: *** all Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.36-trunk-686'
make: *** http://vmmon.ko Error 2
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
Unable to install vmmon
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMU_SetupMMU’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:103: warning: cast from pointer to integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:113: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘long long unsigned int’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:117: warning: cast to pointer from integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:120: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘uint64’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMUUnregisterDeviceInt’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:217: warning: ignoring return value of ‘device_attach’, declared with attribute warn_unused_result
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c: In function ‘HostIFReadUptimeWork’:
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c:2004: warning: ‘newUpBase’ may be used uninitialized in this function
make[3]: *** module/tmp/vmware-root/modules/vmmon-only Error 2
make[2]: *** sub-make Error 2
make[1]: *** all Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.36-trunk-686'
make: *** http://vmmon.ko Error 2
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
Unable to install vmmon
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMU_SetupMMU’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:103: warning: cast from pointer to integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:113: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘long long unsigned int’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:117: warning: cast to pointer from integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:120: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘uint64’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMUUnregisterDeviceInt’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:217: warning: ignoring return value of ‘device_attach’, declared with attribute warn_unused_result
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c: In function ‘HostIFReadUptimeWork’:
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c:2004: warning: ‘newUpBase’ may be used uninitialized in this function
make[3]: *** module/tmp/vmware-root/modules/vmmon-only Error 2
make[2]: *** sub-make Error 2
make[1]: *** all Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.36-trunk-686'
make: *** http://vmmon.ko Error 2
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
Unable to install vmmon
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:103: warning: cast from pointer to integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:113: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘long long unsigned int’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:117: warning: cast to pointer from integer of different size
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:120: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘uint64’
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMUUnregisterDeviceInt’:
/tmp/vmware-root/modules/vmmon-only/linux/iommu.c:217: warning: ignoring return value of ‘device_attach’, declared with attribute warn_unused_result
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c: In function ‘HostIFReadUptimeWork’:
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c:2004: warning: ‘newUpBase’ may be used uninitialized in this function
make[3]: *** module/tmp/vmware-root/modules/vmmon-only Error 2
make[2]: *** sub-make Error 2
make[1]: *** all Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.36-trunk-686'
make: *** http://vmmon.ko Error 2
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
Unable to install vmmon
It has been mentioned above that commenting out some lines in the patch enabled the WS to run. I am not a programmer (alas one 1 sememster of C++ and I had to withdraw for health reason).
Theer was a patch specifically for the vmmon problem posted but I can't find it - it worked with kernels 2.6.36
Again - I sorry to bother you guys but I just can't follow these threads to a satisfactory end.
I appreciate all your help and effort in getting right something that I just can't why VMware can't (or won't) code themselvers.
Marty Felker
Can someone provide a working patch for 2.6.37-rc5 again VM 7.1.3?
The patch in this thread does work with rc5, I'm currently using that on my openSUSE machine without problems:
uname -a
Linux tornado 2.6.37-rc5-19-desktop #1 SMP PREEMPT 2010-12-13 12:17:49 +0100 x86_64 x86_64 x86_64 GNU/Linux
No t sure if this will be posted as the VMTN servers are still closed for maintenance (thought this was last weekend). Neverthe less I will try again on Ubuntu Natty, FEdora 15 Rawhide and openSUSE 11.4 Milestone 5 when its released tomorrow. I will need to fitgure out how to completely remove the patch as well as all the files (not just installer) relating to Workstation. I'm no completely sure of the former but I think all I need to to removed (Ubuntu only) is the .patched directory (forget whee that located exactly but its pretty easy to figure out) All I need to look at would be the .sh script??
Marty