Thanks very much for making this, works perfectly for me on Arch Linux with 6.5.2 & kernel 2.6.30 with no hassel.
Really hope it works or is easy to update and keep working for future kernels
Like slavek1979 in the previous thread (http://communities.vmware.com/message/1314440#1314440), the checksums of my tar files from a fresh install don't match. I even removed and re-installed VMware-Workstation-6.5.2-156735.i386.rpm, checking that /usr/lib/vmware/module/source was really gone (it was).
I walked through your script by hand, replicating what you are doing (doing the key bits by hand). While the starting checksums don't match, the patch file applies properly and the modules build.
Here are the starting checksums. Note that the first matches slavek1979's.
In the end, same result as before. When shutting down a guest, the GUI hangs and the associated vmware-vmx process continues after the GUI finally crashes, with the message (when vmware is run from a terminal):
terminate called after throwing an instance of 'vmdb::Error'
what(): Internal error
I had to kill the vmware-vmx process.
BTW, running Fedora 11 with kernel 22.214.171.124-191.fc11.i686.PAE.
Could the checksums not match because of the architecture?
I had no issues with an x64 .bundle install of vmware, I guess the source might well have different checksums in the x86/i386 version, just a guess.
That is interesting. I didn't even consider that the source for 32-bit and 64-bit might differ. There should be no source difference between architectures.
It's sloppy coding practice to require different source files (it is preferred to use #ifdef and other statements, to make the same source code compatible across different architectures).
I'll have to download both versions and check it out. In the meantime, consider my patch 64-bit only.
BTW, running VMware on a 32-bit machine is kind of painful. VMware really loves having more than 4GB of memory available on the host!
I'm using Ubuntu Jauny x64 with the 2.6.31-rc3 kernel and VMware Player.
I can confirm that your patch works perfectly with VMWare Player 2.5.2.
OK, here is an updated script (.sh file).
Please download this script. It REPLACES the script I originally attached to the top message. (Unfortunately, VMware Forums doesn't let me edit entries already made.)
The patch file is UNCHANGED. Interestingly, the 32-bit and 64-bit VMware installations have slightly different content for their modules files, but they patch in exactly the same way.
So, here's the updated script, attached.
This should work for both 32-bit and 64-bit.
Also running Ubuntu Jaunty x64 with the 2.6.31-rc3 kernel.... and Workstaion 6.5.2..
Worked perfectly... : Thanks a bunch, Krellan.. Good work!
the new patch works for 2.6.31-3-generic x32 Ubuntu 9.10 Karmic Koala .. and Workstaion 6.5.2..
Lots of warnings during compile but the end result is good.
Interestingly, I just compared the 32-bit and 64-bit tarballs, that come with the various installations.
The contents are the SAME.
The file timestamps are slightly off, though. VMware must package their 32-bit and 64-bit builds at slightly different times of day. That was enough to throw off my checksums of those tarballs.
So, there should be no need to worry about 32-bit vs. 64-bit differences, so that's good.
This one actually works. Maybe Arch kernel is a little trickier, but this one still nails it =)!
I'm running under Ubuntu 9.10 and these patches helped at building the modules. But for some strange reason my mouse and keyboard do not work. I tried with guest as windows vista/windows 7. If I choose from the menu's the grab input option the mouse will move for a few seconds. If i switch to unity it is working.
I'm also experiencing the same keyboard/mouse problem. It started happening after a dist-upgrade last week. I'm guessing it has something to do with a X update maybe??? I am seeing this behavior on both a desktop and laptop, both running nvidia cards. Any help is appreciated.
i experience the very same mouse-cursor problem as spamspam. furthermore vmware tools hang at loading. system kubuntu karmic 89.109, vm ws. 6.5.2, guest winxp sp3.
everything worked fine under 9.04.
any help is much appreciated.