Hi,
Recently I created a patch for compile Vmware in Ubuntu 11.04 using Kernel 2.6.38-8. Enjoy!
Cheers!
Marcos Álvares
Thanks Marcos. It still won't start up. But it is moving forward.
Jim
$ chmod +x patch_apply.sh
Not necessary as it is already executable.
Could you create this patch for VMware-Player-3.1.3-324285.x86_64 as well? The source is different enough for the patch file to fail.
If you can, thank you very much!
EDIT: nm, I installed 3.1.4 and it didn't require a patch to get around the BKL, etc issues.
Hi all
Got it to work. When I installed the latest VMware player, all is fine. I had 3.1. something and I installed 3.1.4 build-385536, which is the latest and all worked. Thanks for the patch.
Jim
still not working man,
patching file vmci-only/include/compat_semaphore.h
Hunk #1 succeeded at 62 (offset 17 lines).
patching file vmci-only/include/pgtbl.h
patching file vmci-only/linux/driver.c
patching file vmmon-only/linux/driver.c
Hunk #1 succeeded at 140 with fuzz 1.
Hunk #2 succeeded at 176 (offset 2 lines).
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 vmnet-only/driver.c
Hunk #1 succeeded at 114 (offset 1 line).
patching file vmnet-only/filter.c
Hunk #1 succeeded at 77 (offset 1 line).
patching file vsock-only/linux/af_vsock.c
Hunk #1 succeeded at 400 (offset 9 lines).
Hunk #2 FAILED at 3229.
Hunk #3 FAILED at 3252.
Hunk #4 FAILED at 3264.
Hunk #5 FAILED at 3324.
Hunk #6 FAILED at 3340.
Hunk #7 FAILED at 3374.
Hunk #8 FAILED at 3472.
Hunk #9 FAILED at 4112.
Hunk #10 FAILED at 4149.
Hunk #11 FAILED at 4202.
Hunk #12 FAILED at 4436.
Hunk #13 FAILED at 4476.
Hunk #14 FAILED at 4542.
13 out of 14 hunks FAILED -- saving rejects to file vsock-only/linux/af_vsock.c.rej
[+] DONE !
sudo vmware-modconfig --console --install-all
Stopping 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.38-8-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.38-8-generic'
CC [M] /tmp/vmware-root/modules/vmmon-only/linux/driver.o
/tmp/vmware-root/modules/vmmon-only/linux/driver.c: In function ‘init_module’:
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:425:15: error: ‘struct file_operations’ has no member named ‘ioctl’
/tmp/vmware-root/modules/vmmon-only/linux/driver.c: In function ‘LinuxDriver_Ioctl’:
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1736:7: error: implicit declaration of function ‘kernel_locked’
make[2]: *** [/tmp/vmware-root/modules/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-root/modules/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.38-8-generic'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
Unable to install vmmon
am i miss something??
Hi Wildan
I am not sure, but it doesn't look like you are using the PAE kernal headers. Those are the headers that I used. Might give that a try.
Jim
Hi Wildan,
note that this patch was tested only with Wmplayer versions: 3.0.0 and 3.1.4 and Kernel 2.6.38-8.
try the follow steps:
1) install kernel headers:
sudo apt-get install linux-headers-`uname -r`
2) install development apps:
sudo apt-get install build-essential
3) Remove your current VMplayer
sudo vmware-installer -u vmware-player
sudo rm -rf /usr/lib/vmware
4) Create links to enable vmware detect your headers
sudo ln -s /usr/src/linux-headers-`uname -r`/include/generated/autoconf.h /usr/src/linux-headers-`uname -r`/include/linux/autoconf.h
sudo ln -s /usr/src/linux-headers-`uname -r`/include/generated/utsrelease.h /usr/src/linux-headers-`uname -r`/include/linux/utsrelease.h
5) Download the version 3.0.0 of WMplayer
6) Execute the .bundle file
./VMware-Player-3.0.0-203739.x86_64.bundle
7) Download and Apply the patch
tar xfzv VMplayer_3.0.0-203739.x86_64_2.6.38-8.tgz
sudo vmware-modconfig --console --install-all
[ ]'s
Marcos Álvares
tar xfzv VMplayer_3.0.0-203739.x86_64_2.6.38-8.tgz
This line should be: tar xfzv VMplayer_3.0.0-203739.x86_64_2.6.38-8.tar.gz
chmod +x patch_apply.sh
I already mentioned this once however I guess you missed it, the execute bit is already set for the patch_apply.sh file in the tarball and extracting it under Ubuntu 11.04 even without using -p argument with the tar command the file remains executable so it makes no sense using chmod to set an already executable file executable!
OK WoodyZ,
You are right! 'chmod +x' command do not makes difference in the overall proccess. : ]
Thanks!
Hello
Do you have a similar patch for Vmware Server 2.0 too?
I have almost the same error "Unable to build the vmmon module" on Ubuntu 11.04 64b.
#uname -a
Linux ego 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Thank you
Hi Marcos,
Did all the commands to patch. But as wildan wrote, the patch process throws some errors.
After all my VMWare Player is still broken.
Wait. One difference. I use VMware-Player-3.1.4-385536.x86_64.bundle
But you wrote the patch is testet with 3.1.4.
My problem is, that after I start a machine, the player window disappears. But I can still see the VMPlayer process and kill it by hand...
Quaxel
What happen if I'm using VMware Player 3.1.4 over Linux 32-bit?.
How can I make it work?
Thanks.
i had followed your instruction mate, but still i dont get my vmware player work, the worst, i even dont see any movement on my screen after seferal times click on vmware's icon :smileygrin:.... my kernel is 2.6.38-8-generic ..
again.. did i miss something mate ??
thanks..
good news for me, i hope for everyone too.. i found this blog article about a second ago..
http://www.davidmcoe.com/blog/2011/05/03/vmware-player-and-ubuntu-11-04-natty-narwall
but in case you too lazy to open that blog, here i attach the solution :smileysilly:
you have to tell VMWare Player to use its own glib: Insert the line
export LD_PRELOAD=/usr/lib/vmware/lib/libglib-2.0.so.0/libglib-2.0.so.0
into the file /usr/bin/vmplayer – right after the copyright notice. The Beginning of the file
its work for me, and its still under vmware player 3.0.0 with patch from marcos, i'll try to upgrade the version soon, then we'll see what happend..
thanks
Thank you. Worked like a charm for me!!!!
Running kernel 2.6.38-9 here!
I'm still running Maverick (kernel 2.6.35-28) and everything goes great with workstation and player, but thanks for this!
As you instructed I did create a symbolic link but still i get the error.
./patch_apply.sh
tar: vmblock-only: Cannot read: Is a directory
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
tar: vmci-only: Cannot read: Is a directory
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
tar: vmmon-only: Cannot read: Is a directory
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
tar: vmnet-only: Cannot read: Is a directory
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
tar: vsock-only: Cannot read: Is a directory
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
patching file vmci-only/include/compat_semaphore.h
Hunk #1 succeeded at 62 (offset 17 lines).
patching file vmci-only/include/pgtbl.h
patching file vmci-only/linux/driver.c
Hunk #1 FAILED at 373.
1 out of 1 hunk FAILED -- saving rejects to file vmci-only/linux/driver.c.rej
patching file vmmon-only/linux/driver.c
Hunk #1 FAILED at 140.
Hunk #2 succeeded at 174 (offset 6 lines).
1 out of 2 hunks FAILED -- saving rejects to file vmmon-only/linux/driver.c.rej
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 vmnet-only/driver.c
Hunk #1 FAILED at 113.
1 out of 1 hunk FAILED -- saving rejects to file vmnet-only/driver.c.rej
patching file vmnet-only/filter.c
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file vmnet-only/filter.c.rej
patching file vsock-only/linux/af_vsock.c
Hunk #1 FAILED at 391.
Hunk #2 FAILED at 3221.
Hunk #3 FAILED at 3244.
Hunk #4 FAILED at 3256.
Hunk #5 FAILED at 3316.
Hunk #6 FAILED at 3332.
Hunk #7 FAILED at 3366.
Hunk #8 FAILED at 3464.
Hunk #9 FAILED at 4104.
Hunk #10 FAILED at 4141.
Hunk #11 FAILED at 4194.
Hunk #12 FAILED at 4428.
Hunk #13 FAILED at 4468.
Hunk #14 FAILED at 4534.
14 out of 14 hunks FAILED -- saving rejects to file vsock-only/linux/af_vsock.c.rej
I am on
uname -r
2.6.38-8-generic
Excelent!! Work!! Tanks