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.121125
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

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 ... Next › Last »

Fallback commented on 2017-10-04 17:25

can't build Virtual machine communication interface on on kernel 4.13 (failed)(tested with workstation 14)

(Failed to open device "/dev/vmci")

this doesn't help either:
https://wiki.archlinux.org/index.php/VMware#Kernel_modules_fail_to_build_on_Linux_4.13

any idea ?

Update: I reinstalled everything, linux kernel, vmware-workstation 14.bundle ,vmware-patch , systemctl enable vmware etc.. now it seems to work (with kernel 4.13) // no manual patching

rains commented on 2017-10-04 08:58

i'm sorry.
My laptop fell to the ground and got broken a few days ago, and my new system is ready just now.
I start working on this right away.
i will add @boetger's patches first. and then upgrade to vmware 14.0.
it wouldn't take a long time. please be patient.

boettger commented on 2017-10-03 11:38

I had to add another patch file for my 4.13.3 kernel to compile:
/lib/vmware/modules/patches/vmnet-12.5.7-4.13.3.patch:
--- vmnet-only/userif.c 2016-08-13 13:10:14.000000000 +0200
+++ vmnet-only/userif.c 2017-09-30 13:09:46.953073564 +0200
@@ -33,6 +33,7 @@
#include <linux/proc_fs.h>
#include <linux/sockios.h>
#include <linux/sched.h>
+#include <linux/sched/signal.h>
#include <linux/slab.h>
#include <linux/version.h>
#include <linux/wait.h>

boettger commented on 2017-10-03 11:36

/lib/vmware/modules/patches/vmmon-12.5.7-4.13.3.patch:

diff --git vmmon-only/linux/hostif.c vmmon-only/linux/hostif.c
--- vmmon-only/linux/hostif.c 2017-06-20 04:54:38.000000000 +0200
+++ vmmon-only/linux/hostif.c 2017-10-03 13:07:17.712521686 +0200
@@ -99,6 +99,37 @@
#include "vmmonInt.h"
#include "versioned_atomic.h"

+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0)
+# define global_zone_page_state global_page_state
+#endif
+
+static unsigned long get_nr_slab_unreclaimable(void)
+{
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 13, 0)
+ return global_node_page_state(NR_SLAB_UNRECLAIMABLE);
+#else
+ return global_page_state(NR_SLAB_UNRECLAIMABLE);
+#endif
+}
+
+static unsigned long get_nr_unevictable(void)
+{
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
+ return global_node_page_state(NR_UNEVICTABLE);
+#else
+ return global_page_state(NR_UNEVICTABLE);
+#endif
+}
+
+static unsigned long get_nr_anon_mapped(void)
+{
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
+ return global_node_page_state(NR_ANON_MAPPED);
+ #else
+ return global_page_state(NR_ANON_PAGES);
+ #endif
+}
+
/*
* Determine if we can use high resolution timers.
*/
@@ -1594,16 +1625,11 @@
unsigned int reservedPages = MEMDEFAULTS_MIN_HOST_PAGES;
unsigned int hugePages = (vm == NULL) ? 0 :
BYTES_2_PAGES(vm->memInfo.hugePageBytes);
- unsigned int lockedPages = global_page_state(NR_PAGETABLE) +
- global_page_state(NR_SLAB_UNRECLAIMABLE) +
- global_page_state(NR_UNEVICTABLE) +
+ unsigned int lockedPages = global_zone_page_state(NR_PAGETABLE) +
+ get_nr_slab_unreclaimable() +
+ get_nr_unevictable() +
hugePages + reservedPages;
- unsigned int anonPages =
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
- global_page_state(NR_ANON_MAPPED);
-#else
- global_page_state(NR_ANON_PAGES);
-#endif
+ unsigned int anonPages = get_nr_anon_mapped();
unsigned int swapPages = BYTES_2_PAGES(linuxState.swapSize);

if (anonPages > swapPages) {

bararchy commented on 2017-10-01 13:09

Can you please add a fix to the memory issue ?

Vmware forum: https://communities.vmware.com/thread/571370
patch: https://github.com/mkubecek/vmware-host-modules/commit/fadedd9c8a4d
arch forum: https://bbs.archlinux.org/viewtopic.php?id=230412

warmarchie commented on 2017-10-01 13:08

Will this get VMware up and running with 4.13? If not what is the best course of action other than waiting? Trying to downgrade kernel+modules?

nottin commented on 2017-09-28 04:08

patching file vmmon-only/linux/hostif.c
Hunk #1 FAILED at 1162.
1 out of 1 hunk FAILED -- saving rejects to file vmmon-only/linux/hostif.c.rej
==> error: Failed to apply 'vmmon-12.5.2-4.9.patch'

uname -r
4.12.13-1-ARCH

darky commented on 2017-09-26 21:47

==> Verifying source file signatures with gpg...
ncurses-6.0-20170902.tgz ... FAILED (unknown public key 702353E0F7E48EDB)
==> ERROR: One or more PGP signatures could not be verified!

khau commented on 2017-09-25 05:01

Will this also require ams1's and orson's patches?
I'm away from my computer but will test the new patch as soon as I can. Thanks for the update!

rains commented on 2017-09-16 13:54

patch for kernel 4.13 has been added.
refer to https://communities.vmware.com/thread/568089

% sudo vmware-patch -f
==> Patching VMware Workstation Pro v12.5.7 for kernel 4.13.1-1-ARCH..
-> [vmnet]
==> Installing modules..
-> Done.
sudo vmware-patch -f 21.19s user 3.07s system 172% cpu 14.034 total