Package Details: vmware-patch 15.5.1-2

Git Clone URL: https://aur.archlinux.org/vmware-patch.git (read-only, click to copy)
Package Base: vmware-patch
Description: A post-install configuration solution for VMware Workstation (Pro) and Player (Plus and Pro)
Upstream URL: https://wiki.archlinux.org/index.php/VMware#Configuration
Keywords: patch vmci vmmon vmnet vmware
Licenses: GPL
Submitter: oliv
Maintainer: TheGoliath (orson)
Last Packager: TheGoliath
Votes: 208
Popularity: 0.127186
First Submitted: 2011-01-31 12:49
Last Updated: 2020-01-08 20:31

Required by (0)

Sources (44)

Pinned Comments

TheGoliath commented on 2020-01-03 21:35

If someone would like to participate in the package-maintenance, feel free to comment down below or contact me directly via email

oliv commented on 2011-08-16 10:42

Updated in order to support Det requests:

FIXED: /sbin/lsmod link is created only if it doesn't exists on the host that creates the package (makepkg).
FIXED: The script vmware-patch check if the kernel is 3.X before patching vmware libraries.
FIXED: The arch linux daemon script (wrapper) is now called vmwared in order to avoid any conflict with the file created by vmware.
ADDED: Detection of /etc/rc.d/vmware or /etc/rc.d/vmware.d/init.d/vmware in the arch linux daemon script
ADDED: package install script

Thanks again for your contribution.

oliv commented on 2011-08-14 15:33

Thanks, I will upload your changes as soon as I manage to add the kernel 3.0 checks.

Concerning the rc.d wrapper, I think I installed vmware using the following command line:

sudo ./VMware-Player-3.1.4-385536.x86_64.bundle --console --custom

There you can answer the question : where do you install your init.d scripts ?

Renaming it and checking for both location doesn't cost much. I'll do this.

Thanks for your help and your testing.

Det commented on 2011-08-13 08:54

A nice package. Here's some improvements (including an .install file, a check for already existing /sbin/lsmod, etc.): http://www63.zippyshare.com/v/38251095/file.html

* It's still not working, though. The 'main vmware service' in Arch should by default be installed into '/etc/rc.d/'. You've obviously placed it in the directory the installer suggests, which is '/etc/rc.d/vmware.d/init.d/'.

This makes the installation fail because your own wrapper in '/etc/rc.d/' conflicts with the already existing 'vmware'. So maybe you could just rename your wrapper and look for the 'main vmware service' in both '/etc/rc.d' and '/etc/rc.d/vmware.d/init.d/'?

* Also, the kernel 3.0 sed fix doesn't affect any other kernel versions, right? Otherwise you would require some check for 3.0 users.

oliv commented on 2011-08-12 10:38

Updated in order to support linux kernel 3.0.

Do not forget to run vmware-unpatch before vmware-patch if you already patched vmware using this tool.

ADDED: /usr/bin/vmware-patch and /usr/bin/vmware-unpatch now patch (or restore) vmware libraries in order to handle the new kernel version layout (3.X instead of 2.X.X)
see https://bbs.archlinux.org/viewtopic.php?id=123695

ADDED: Patches for linux kernel 3.0 found on http://weltall.heliohost.org/wordpress/2011/05/14/running-vmware-workstation-player-on-linux-2-6-39-updated/

Testing and feedback is welcome...

oliv commented on 2011-07-01 08:43

This package is a set of scripts and patches to make vmware-player running smoothly.

It will install the following:
- /etc/rc.d/vmware. If you call sudo /etc/rc.d/vmware start, it will try to start /etc/rc.d/vmware.d/init.d/vmware. It will also automatically try to stop vmware services when shutting down the computer.
- /sbin/lsmod. This is a simple softlink as /sbin/lsmod is required by vmware player but does not exist.k
- /usr/bin/vmware-patch and /usr/bin/vmware-unpatch which can be used to apply the necessary patches or revert to vmware initial sources
- /usr/lib/vmware/patches which contains all patches that can be applyed on vmware.

Once installed, the command sudo vmware-patch and sudo vmware-unpatch can be used to apply necessary patches to vmware player modules, depending on the current kernel. After that, starting vmplayer as root should compile the patched modules...

oliv commented on 2011-07-01 08:27

Tests with VMware Player 3.1.4.385536 and Kernel 2.6.39-ARCH

- Several patches are required (provided in this package)
- It compile with some warnings, and seems to works correctly.

oliv commented on 2011-03-31 14:48

Tests with VMware Player 3.1.4 build-385536 and Kernel 2.6.37-ARCH:

- No patches are necessary
- You can still install the packet vmware-patch in order to handle lsmod issues and to add /etc/rc.d/vmware
- Don't forget to remove the .ko and .o files from /lib/modules/2.6.37-ARCH/misc/ if you want to compile the modules again using the player 3.1.4 codebase

oliv commented on 2011-03-31 14:47

Tests with VMware Player 3.1.4 build-385536 and Kernel 2.6.37-ARCH:

- No patches are necessary
- You can still install the packet vmware-patch in order to handle lsmod issues and to add /etc/rc.d/vmware
- Don't forget to remove the .ko and .o files from /lib/modules/2.6.37-ARCH/misc/ if you want to compile the module using the source installed by player 3.1.4

oliv commented on 2011-02-17 10:42

Do you mean, I should remove it ?

ponsfoot commented on 2011-02-08 14:12

The following patch in vmmon-2.6.37.diff is in reverse.

--- vmmon-only/linux/driver.c 2011-01-31 12:41:29.236666671 +0100
+++ vmmon-only/linux/driver.c.orig 2010-11-11 21:37:22.000000000 +0100
@@ -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() (current->lock_depth >= 0)
+# define kernel_locked_by_current() kernel_locked()
#else
# define kernel_locked_by_current() 0
#endif