m (→When kernel gets updated: 2019_07_24 codegazer updated example local directory for vmware-host-modules-workstation-12.5.9) |
m (2019_07_24 codegazer added section in trouble shooting about "VMware won't start: some error with vmmon and/or vmnet") |
||
Line 873: | Line 873: | ||
</pre> | </pre> | ||
and then start vmware workstation | and then start vmware workstation | ||
+ | |||
+ | |||
+ | == VMware won't start: some error with vmmon and/or vmnet == | ||
+ | |||
+ | Follow the steps for "When kernel gets updated" (above). | ||
Revision as of 08:57, 24 July 2019
Contents
- 1 Introduction
- 2 What is VMware?
- 3 Preparation
- 4 Install
- 4.1 Execute the install image
- 4.2 Workaround #1 for VMware 12.5.9 to work with kernel 4.9 or newer
- 4.3 Workaround #2 for VMware 12.5.9 - VMware host modules - to work with kernel 4.9 or newer
- 4.3.1 download patched vmmon and vmnet code
- 4.3.2 un-zip the patched vmmon and vmnet code
- 4.3.3 compile the patched vmmon and vmnet code
- 4.3.4 run a "make install" for the patched vmmon and vmnet code
- 4.3.5 make tar-balls of patched vmmon and vnet modules
- 4.3.6 backup original vmmon and vmnet modules
- 4.3.7 replace original vmmon and vmnet modules by patches ones
- 4.3.8 rebuild modules from command line
- 4.3.9 restart vmware service
- 5 Run
- 6 When kernel gets updated
- 7 Trouble shooting
- 8 Appendix-1: links
Introduction
This page documents how to install VMware Workstation version 12.5.9 in Mageia 7 (with kernel 5.1.14).
The details below explain how to apply work-arounds to enable the default VMware 12.5.9 bundle work in Mageia 7
What is VMware?
VMware is virtualization software that enables the creation of one or more "virtual machines".
For example, it is possible to install a different operating system such as Ubuntu, Windows, etc as a "guest" virtual machine.
One of the benefits of this is to be able to run different operating systems at the same time on the same physical hardware.
For example, you may prefer using Mageia Linux but need to run Windows to keep your satnav device up-to-date. In this case, Mageia is installed on the physical hardware and Windows can be installed as a guest virtual machine allowing the satnav windows application software to run.
VMware is commercial virtualization software which is not available in the Mageia URPMI sources. In order to download the install image it is necessary to register and login on http://vmware.com .
A license key (purchased from VMware) is needed to run VMware beyond the free (30 day) trial period.
Preparation
sudo
This page documents the installation of VMware using sudo where needed.
Check that you have sudo installed and configured as described here: Configuring_sudo
Install C++ development package
The C++ development package needs to be installed to enable compilation of some kernel modules used by VMware workstation.
# Install C++ development package # (copy & paste, run as non-root): /bin/sudo urpmi task-c++-devel # (end copy & paste)
Install libcanberra package
Is libcanberra already installed?
We need to have "libcanberra.so.0" installed. On 64-bit, this is in /usr/lib64/libcanberra.so.0 and is part of the package:
$ rpm -q --whatprovides /usr/lib64/libcanberra.so.0 lib64canberra0-0.30-12.mga7
This is the 64bit version:
package="lib64canberra-gtk0"; rpm -q ${package} > /dev/null && echo ${package} is installed || echo ${package} NOT installed
Example:
[user@localhost ~]$ package="lib64canberra-gtk0"; rpm -q ${package} > /dev/null && echo ${package} is installed || echo ${package} NOT installed lib64canberra-gtk0 is installed
If not already installed, install with:
# Install lib64canberra0 package # (copy & paste, run as non-root): /bin/sudo urpmi lib64canberra0 # (end copy & paste)
Install lib64ncursesw5 package
A library needed by the VMware installer when running in console (non-GUI) mode is "lib64ncursesw5":
# Install "lib64ncursesw5" # (copy & paste, run as non-root) /bin/sudo urpmi lib64ncursesw5 # (end copy & paste)
Install required kernel packages
Kernel modules have to be compiled for VMware workstation. The latest kernel-devel package needs to be installed. Check which kernel you have with the following command:
$ uname -r 5.1.14-desktop-1.mga7
The above example shows a "desktop" kernel. Another kernel type would be: "server". Open a root shell and set a shell variable for the kernel type:
# Define shell variable "kernel_type" # (copy & paste, run as root): kernel_type=$(uname -r | awk -F- '{print$2}') # (end copy & paste)
Now, check that kernel-desktop-latest installed (NB: if it is "server" then check for kernel-server-latest):
$ rpm -qa | grep "^kernel-${kernel_type}-latest" kernel-desktop-latest-5.1.14-1.mga7
We do have kernel-desktop-latest installed. That is good. If you don't see that installed, you can install it:
# Install kernel "latest" meta rpm # (copy & paste, run as root) /sbin/urpmi kernel-${kernel_type}-latest # (end copy & paste)
Next, check the matching devel kernel rpm is installed:
$ rpm -qa | grep "^kernel-${kernel_type}-devel-latest" kernel-desktop-devel-latest-5.1.14-1.mga7
We see kernel-desktop-devel-latest and that is good. If kernel-desktop-devel-latest was not installed, install it with:
# Install kernel "devel" latest meta rpm # (copy & paste, run as root) /sbin/urpmi kernel-${kernel_type}-devel-latest # (end copy & paste)
Download the VMware workstation 12.5.9 install image
A 30 day trial copy of the VMware workstation install image is available from http://vmware.com after free registration.
The VMware workstation 12 image can be found by searching for "VMware-Workstation-Full-12.5.9-7535481.x86_64.bundle" on the http://vmware.com page.
Example: https://my.vmware.com/group/vmware/details?downloadGroup=WKST-1259-LX&productId=524&rPId=20841
Verify download
In the VMware download page, click on "Read More" to display the checksums for the install image file. Copy the MD5 checksum to a local file like this:
# Copy MD5 checksum to local file same name but with .md5 name extension # (copy&paste run as non-root) f=VMware-Workstation-Full-12.5.9-7535481.x86_64.bundle echo "e5624d5ce1e82f16551d82d7c2e54bb8 ${f}" > ${f}.md5 # Verify MD5 checksum md5sum -c ${f}.md5 # (end copy & paste)
Example:
[user@localhost vmware]$ # Copy MD5 checksum to local file same name but with .md5 name extension [user@localhost vmware]$ # (copy&paste run as non-root) [user@localhost vmware]$ [user@localhost vmware]$ f=VMware-Workstation-Full-12.5.9-7535481.x86_64.bundle [user@localhost vmware]$ [user@localhost vmware]$ echo "e5624d5ce1e82f16551d82d7c2e54bb8 ${f}" > ${f}.md5 [user@localhost vmware]$ [user@localhost vmware]$ # Verify MD5 checksum [user@localhost vmware]$ md5sum -c ${f}.md5 VMware-Workstation-Full-12.5.9-7535481.x86_64.bundle: OK
In this example (above) the "OK" indicates the MD5 checksum matches correctly indicating that the download completed with no errors.
Install
Execute the install image
If you have a license key for VMware workstation 12 then have this ready to copy and paste.
Run the downloaded install file. Example:
If we do not have a VMware license number we can install like this for 30-day free trial:
/bin/sudo /bin/sh ./VMware-Workstation-Full-12.5.9-7535481.x86_64.bundle --console --eulas-agreed
If you have a VMware license, use this:
/bin/sudo /bin/sh ./VMware-Workstation-Full-12.5.9-7535481.x86_64.bundle --console --eulas-agreed \ --set-setting=vmware-workstation serialNumber 12345-YOUR2-KEY00-GOES0-HERE0
Without the "--eulas-agreed" option then the install will display two EULAs:
- VMware Workstation End User License Agreement
- VMware OVF Tool component for Linux End User
If you respond that you agree then you should see something like the following:
[ text of EULA deleted for brevity ] If You have any questions concerning this EULA, please send an email to info@vmware.com. Do you agree? [yes/no]: yes Would you like to check for product updates on startup? [yes]: Would you like to help make VMware software better by sending anonymous system data and usage statistics to VMware? [yes]: Please enter the user that will initially connect to Workstation Server. Without setting this correctly, you will not be able to share VMs with other users. Additional users and administrators can be configured later in Workstation by selecting "Shared VMs" and clicking "Permissions". [user]: Please choose a directory for your shared virtual machines. [/var/lib/vmware/Shared VMs]: Please enter the port to use for https access to Workstation Server. (HTTPS port:) [443]: Enter license key. (optional) You can enter this information later.: The product is ready to be installed. Press Enter to begin installation or Ctrl-C to cancel. Installing VMware Workstation 12.5.9 Configuring... [######################################################################] 100% Installation was successful.
Workaround #1 for VMware 12.5.9 to work with kernel 4.9 or newer
In order to run VMware on 64-bit Mageia 7, it is important to apply the following workaround.
ref: https://communities.vmware.com/thread/564602 (Hint: search for "palko Jun 8, 2017 11:34 PM". )
# workaround for VMware workstation 12.5.9 on Mageia 7 with kernel 5.1.14 # (copy & paste, run as root) (cd /usr/lib/vmware/lib/libz.so.1 && mv libz.so.1 libz.so.1.old && ln -s /usr/lib64/libz.so.1 .) # (end copy & paste)
Workaround #2 for VMware 12.5.9 - VMware host modules - to work with kernel 4.9 or newer
Both VMware workstation 12.56.9's kernel modules vmmon and vmnet need to be patched to work properly in Mageia 7. Note also, that these modules are available for different versions of VMware workstation (up to version 15 at time of writing this) but we are going to focus here on 12.5.9.
Reference: https://github.com/mkubecek/vmware-host-modules/blob/master/INSTALL
Start by looking at the latest commits for 12.5.9 here:
https://github.com/mkubecek/vmware-host-modules/commits/workstation-12.5.9
As of July 2019, the latest commit which has been tested with mageia 7 and works is from March 2019 titled: "vmmon: fix return type of vm_operations_struct::fault handler" by mkubecek: https://github.com/mkubecek/vmware-host-modules/tree/a0058c695891805ad1c14332c7c61b3e13d4744d
download patched vmmon and vmnet code
Download the zip for this:
cd ~/Downloads d=vmware-host-modules-2019-03 mkdir ${d} && cd ${d} wget https://github.com/mkubecek/vmware-host-modules/archive/a0058c695891805ad1c14332c7c61b3e13d4744d.zip
Example:
[user@localhost ~]$ cd ~/Downloads [user@localhost Downloads]$ d=vmware-host-modules-2019-03 [user@localhost Downloads]$ mkdir ${d} && cd ${d} [user@localhost vmware-host-modules-2019-03]$ wget https://github.com/mkubecek/vmware-host-modules/archive/a0058c695891805ad1c14332c7c61b3e13d4744d.zip --2019-07-14 14:34:42-- https://github.com/mkubecek/vmware-host-modules/archive/a0058c695891805ad1c14332c7c61b3e13d4744d.zip Resolving github.com (github.com)... 140.82.118.3 Connecting to github.com (github.com)|140.82.118.3|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://codeload.github.com/mkubecek/vmware-host-modules/zip/a0058c695891805ad1c14332c7c61b3e13d4744d [following] --2019-07-14 14:34:43-- https://codeload.github.com/mkubecek/vmware-host-modules/zip/a0058c695891805ad1c14332c7c61b3e13d4744d Resolving codeload.github.com (codeload.github.com)... 140.82.114.10 Connecting to codeload.github.com (codeload.github.com)|140.82.114.10|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/zip] Saving to: ‘a0058c695891805ad1c14332c7c61b3e13d4744d.zip’ a0058c695891805ad1c14332c7c61b3e13d4744d.zip [ <=> ] 560.15K 219KB/s in 2.6s 2019-07-14 14:34:46 (219 KB/s) - ‘a0058c695891805ad1c14332c7c61b3e13d4744d.zip’ saved [573589]
un-zip the patched vmmon and vmnet code
unzip a0058c695891805ad1c14332c7c61b3e13d4744d.zip
Example:
[user@localhost vmware-host-modules-2019-03]$ unzip a0058c695891805ad1c14332c7c61b3e13d4744d.zip Archive: a0058c695891805ad1c14332c7c61b3e13d4744d.zip a0058c695891805ad1c14332c7c61b3e13d4744d creating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/ inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/.gitignore inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/INSTALL inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/LICENSE inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/Makefile inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/README creating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/ inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/COPYING inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/Makefile inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/Makefile.kernel inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/Makefile.normal inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/README creating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/autoconf/ inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/autoconf/geninclude.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/autoconf/smpcall.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/autoconf/tsc_khz.c creating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/ inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/apic.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/apic.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/comport.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/comport.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/cpuid.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/cpuid.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/hashFunc.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/hostKernel.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/hostif.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/hostifGlobalLock.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/hostifMem.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/memtrack.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/memtrack.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/phystrack.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/phystrack.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/task.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/task.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/vmx86.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/vmx86.h creating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/ inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/address_defs.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/basic_initblock.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/circList.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/community_source.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/compat_autoconf.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/compat_cred.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/compat_highmem.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/compat_interrupt.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/compat_ioport.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/compat_kernel.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/compat_module.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/compat_page.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/compat_pci.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/compat_pgtable.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/compat_poll.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/compat_sched.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/compat_semaphore.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/compat_spinlock.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/compat_timekeeping32.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/compat_timer.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/compat_version.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/contextinfo.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/cpu_defs.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/cpuid_info.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/crossgdt.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/driver-config.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/hashFunc.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/includeCheck.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/initblock.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/iocontrols.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/memDefaults.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/modulecall.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/modulecallstructs.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/mon_assert.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/monitorAction_exported.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/numa_defs.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/overheadmem_types.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/pageLock_defs.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/pagelist.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/pcip_defs.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/perfctr_generic.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/pgtbl.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/pshare_ext.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/ptsc.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/rateconv.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/uccostTable.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/usercalldefs.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vcpuid.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vcpuset.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vcpuset_types.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/versioned_atomic.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vm_asm.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vm_asm_x86.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vm_asm_x86_64.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vm_assert.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vm_atomic.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vm_basic_asm.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vm_basic_asm_x86.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vm_basic_asm_x86_64.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vm_basic_asm_x86_common.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vm_basic_defs.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vm_basic_math.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vm_basic_types.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vm_time.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vmm_constants.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vmmem_shared.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vmware.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vmware_pack_begin.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vmware_pack_end.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/vmware_pack_init.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/x86_basic_defs.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/x86apic.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/x86cpuid.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/x86cpuid_asm.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/x86desc.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/x86msr.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/x86perfctr.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/x86segdescrs.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/x86sel.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/x86svm.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/x86types.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/x86vendor.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/x86vt-vmcs-fields.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/x86vt.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/include/x86vtinstr.h creating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/linux/ inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/linux/driver.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/linux/driver.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/linux/driverLog.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/linux/driverLog.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/linux/hostif.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/linux/hostif_priv.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/linux/vmhost.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/linux/vmmonInt.h creating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/vmcore/ inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/vmcore/driver_vmcore.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/vmcore/moduleloop.c creating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/ inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/COPYING inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/Makefile inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/Makefile.kernel inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/Makefile.normal inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/bridge.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/community_source.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/compat_autoconf.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/compat_module.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/compat_netdevice.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/compat_skbuff.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/compat_sock.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/compat_version.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/driver-config.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/driver.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/geninclude.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/hub.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/includeCheck.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/monitorAction_exported.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/net.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/netdev_has_dev_net.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/netdev_has_net.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/netif.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/nfhook_uses_skb.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/procfs.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/skblin.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/smac.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/smac.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/smac_compat.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/smac_compat.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/userif.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vm_assert.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vm_atomic.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vm_basic_asm.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vm_basic_asm_x86.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vm_basic_asm_x86_64.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vm_basic_asm_x86_common.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vm_basic_defs.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vm_basic_types.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vm_device_version.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vm_oui.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vmnetInt.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vnet.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vnetEvent.c inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vnetEvent.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vnetFilter.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vnetInt.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vnetKernel.h inflating: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vnetUserListener.c [user@localhost vmware-host-modules-2019-03]$ ls a0058c695891805ad1c14332c7c61b3e13d4744d.zip vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/
compile the patched vmmon and vmnet code
Change directory into the downloaded code directory and run a "make".
cd vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/ make
Example:
[user@localhost vmware-host-modules-2019-03]$ cd vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/ [user@localhost vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d]$ make make -C vmmon-only make[1]: Entering directory '/home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only' Using kernel build system. make -C /lib/modules/5.1.14-desktop-1.mga7/build/include/.. M=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[2]: Entering directory '/usr/src/kernel-5.1.14-desktop-1.mga7' CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/linux/driver.o CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/linux/hostif.o CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/linux/driverLog.o CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/memtrack.o CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/apic.o CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/vmx86.o CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/cpuid.o CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/task.o CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/hashFunc.o CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/comport.o CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/common/phystrack.o CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/vmcore/moduleloop.o LD [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/vmmon.o Building modules, stage 2. MODPOST 1 modules CC /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/vmmon.mod.o LD [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only/vmmon.ko make[2]: Leaving directory '/usr/src/kernel-5.1.14-desktop-1.mga7' make -C $PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= postbuild make[2]: Entering directory '/home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only' make[2]: 'postbuild' is up to date. make[2]: Leaving directory '/home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only' cp -f vmmon.ko ./../vmmon.o make[1]: Leaving directory '/home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmmon-only' make -C vmnet-only make[1]: Entering directory '/home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only' Using kernel build system. make -C /lib/modules/5.1.14-desktop-1.mga7/build/include/.. M=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[2]: Entering directory '/usr/src/kernel-5.1.14-desktop-1.mga7' CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/driver.o CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/hub.o CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/userif.o CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/netif.o CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/bridge.o CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/procfs.o CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/smac_compat.o CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/smac.o CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vnetEvent.o CC [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vnetUserListener.o LD [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vmnet.o Building modules, stage 2. MODPOST 1 modules CC /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vmnet.mod.o LD [M] /home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only/vmnet.ko make[2]: Leaving directory '/usr/src/kernel-5.1.14-desktop-1.mga7' make -C $PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= postbuild make[2]: Entering directory '/home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only' make[2]: 'postbuild' is up to date. make[2]: Leaving directory '/home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only' cp -f vmnet.ko ./../vmnet.o make[1]: Leaving directory '/home/user/Downloads/vmware-host-modules-2019-03/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d/vmnet-only'
run a "make install" for the patched vmmon and vmnet code
/bin/sudo make install
Example:
[user@localhost vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d]$ /bin/sudo make install [sudo] password for user: install -D -t /lib/modules/5.1.14-desktop-1.mga7/misc vmmon-only/vmmon.ko vmnet-only/vmnet.ko strip --strip-debug /lib/modules/5.1.14-desktop-1.mga7/misc/vmmon.ko /lib/modules/5.1.14-desktop-1.mga7/misc/vmnet.ko if test -z ""; then /sbin/depmod -a 5.1.14-desktop-1.mga7; fi
make tar-balls of patched vmmon and vnet modules
tar -cf vmmon.tar vmmon-only tar -cf vmnet.tar vmnet-only
Example:
[user@localhost vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d]$ tar -cf vmmon.tar vmmon-only [user@localhost vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d]$ tar -cf vmnet.tar vmnet-only
backup original vmmon and vmnet modules
/bin/sudo mv /usr/lib/vmware/modules/source/vmmon.tar /usr/lib/vmware/modules/source/vmmon.tar.bak_$(date +%Y_%m_%d_%H%M) /bin/sudo mv /usr/lib/vmware/modules/source/vmnet.tar /usr/lib/vmware/modules/source/vmnet.tar.bak_$(date +%Y_%m_%d_%H%M)
replace original vmmon and vmnet modules by patches ones
/bin/sudo cp vmmon.tar /usr/lib/vmware/modules/source/vmmon.tar /bin/sudo cp vmnet.tar /usr/lib/vmware/modules/source/vmnet.tar
rebuild modules from command line
/bin/sudo vmware-modconfig --console --install-all
Example:
[user@localhost vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d]$ /bin/sudo vmware-modconfig --console --install-all Stopping vmware (via systemctl): [ OK ] make: Entering directory '/tmp/modconfig-RRTGfg/vmmon-only' Using kernel build system. /bin/make -C /lib/modules/5.1.14-desktop-1.mga7/build/include/.. M=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[1]: Entering directory '/usr/src/kernel-5.1.14-desktop-1.mga7' CC [M] /tmp/modconfig-RRTGfg/vmmon-only/linux/driverLog.o CC [M] /tmp/modconfig-RRTGfg/vmmon-only/linux/driver.o CC [M] /tmp/modconfig-RRTGfg/vmmon-only/linux/hostif.o CC [M] /tmp/modconfig-RRTGfg/vmmon-only/common/memtrack.o CC [M] /tmp/modconfig-RRTGfg/vmmon-only/common/apic.o CC [M] /tmp/modconfig-RRTGfg/vmmon-only/common/hashFunc.o CC [M] /tmp/modconfig-RRTGfg/vmmon-only/common/vmx86.o CC [M] /tmp/modconfig-RRTGfg/vmmon-only/common/cpuid.o CC [M] /tmp/modconfig-RRTGfg/vmmon-only/common/task.o CC [M] /tmp/modconfig-RRTGfg/vmmon-only/common/comport.o CC [M] /tmp/modconfig-RRTGfg/vmmon-only/common/phystrack.o CC [M] /tmp/modconfig-RRTGfg/vmmon-only/vmcore/moduleloop.o LD [M] /tmp/modconfig-RRTGfg/vmmon-only/vmmon.o Building modules, stage 2. MODPOST 1 modules CC /tmp/modconfig-RRTGfg/vmmon-only/vmmon.mod.o LD [M] /tmp/modconfig-RRTGfg/vmmon-only/vmmon.ko make[1]: Leaving directory '/usr/src/kernel-5.1.14-desktop-1.mga7' /bin/make -C $PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= postbuild make[1]: Entering directory '/tmp/modconfig-RRTGfg/vmmon-only' make[1]: 'postbuild' is up to date. make[1]: Leaving directory '/tmp/modconfig-RRTGfg/vmmon-only' cp -f vmmon.ko ./../vmmon.o make: Leaving directory '/tmp/modconfig-RRTGfg/vmmon-only' make: Entering directory '/tmp/modconfig-RRTGfg/vmnet-only' Using kernel build system. /bin/make -C /lib/modules/5.1.14-desktop-1.mga7/build/include/.. M=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[1]: Entering directory '/usr/src/kernel-5.1.14-desktop-1.mga7' CC [M] /tmp/modconfig-RRTGfg/vmnet-only/driver.o CC [M] /tmp/modconfig-RRTGfg/vmnet-only/hub.o CC [M] /tmp/modconfig-RRTGfg/vmnet-only/userif.o CC [M] /tmp/modconfig-RRTGfg/vmnet-only/netif.o CC [M] /tmp/modconfig-RRTGfg/vmnet-only/bridge.o CC [M] /tmp/modconfig-RRTGfg/vmnet-only/procfs.o CC [M] /tmp/modconfig-RRTGfg/vmnet-only/smac_compat.o CC [M] /tmp/modconfig-RRTGfg/vmnet-only/smac.o CC [M] /tmp/modconfig-RRTGfg/vmnet-only/vnetEvent.o CC [M] /tmp/modconfig-RRTGfg/vmnet-only/vnetUserListener.o LD [M] /tmp/modconfig-RRTGfg/vmnet-only/vmnet.o Building modules, stage 2. MODPOST 1 modules CC /tmp/modconfig-RRTGfg/vmnet-only/vmnet.mod.o LD [M] /tmp/modconfig-RRTGfg/vmnet-only/vmnet.ko make[1]: Leaving directory '/usr/src/kernel-5.1.14-desktop-1.mga7' /bin/make -C $PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= postbuild make[1]: Entering directory '/tmp/modconfig-RRTGfg/vmnet-only' make[1]: 'postbuild' is up to date. make[1]: Leaving directory '/tmp/modconfig-RRTGfg/vmnet-only' cp -f vmnet.ko ./../vmnet.o make: Leaving directory '/tmp/modconfig-RRTGfg/vmnet-only' Starting vmware (via systemctl): [ OK ]
restart vmware service
/bin/sudo systemctl restart vmware.service && systemctl status vmware.service
Example:
[user@localhost vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d]$ /bin/sudo systemctl restart vmware.service && systemctl status vmware.service ● vmware.service - SYSV: This service starts and stops VMware services Loaded: loaded (/etc/rc.d/init.d/vmware; generated) Active: active (running) since Sun 2019-07-14 14:56:13 BST; 12ms ago Docs: man:systemd-sysv-generator(8) Process: 29283 ExecStart=/etc/rc.d/init.d/vmware start (code=exited, status=0/SUCCESS) Memory: 21.2M CGroup: /system.slice/vmware.service ├─29401 /usr/lib/vmware/bin/vmware-vmblock-fuse -o subtype=vmware-vmblock,default_permissions,allow_other /var/run/vmblock-fuse ├─29433 /usr/bin/vmnet-bridge -s 6 -d /var/run/vmnet-bridge-0.pid -n 0 ├─29444 /usr/bin/vmnet-netifup -s 6 -d /var/run/vmnet-netifup-vmnet1.pid /dev/vmnet1 vmnet1 ├─29451 /usr/bin/vmnet-dhcpd -s 6 -cf /etc/vmware/vmnet1/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet1/dhcpd/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet1.pid vmnet1 ├─29455 /usr/bin/vmnet-natd -s 6 -m /etc/vmware/vmnet8/nat.mac -c /etc/vmware/vmnet8/nat/nat.conf ├─29458 /usr/bin/vmnet-netifup -s 6 -d /var/run/vmnet-netifup-vmnet8.pid /dev/vmnet8 vmnet8 ├─29467 /usr/bin/vmnet-dhcpd -s 6 -cf /etc/vmware/vmnet8/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet8/dhcpd/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet8.pid vmnet8 ├─29472 bash /etc/rc.d/init.d/vmware start ├─29473 logger -t VMware[init] -p daemon err ├─29475 /usr/sbin/vmware-authdlauncher ├─29478 sh -c /usr/bin/lsb_release -sd 2>/dev/null ├─29479 /bin/sh /usr/bin/lsb_release -sd └─29514 basename /etc/lsb-release.d/cxx-3.1-amd64 Jul 14 14:56:13 z600-mageia7.home vmnet-dhcpd[29462]: For info, please visit http://www.isc.org/dhcp-contrib.html Jul 14 14:56:13 z600-mageia7.home vmnet-dhcpd[29462]: Jul 14 14:56:13 z600-mageia7.home vmnet-dhcpd[29462]: Configured subnet: 172.16.244.0 Jul 14 14:56:13 z600-mageia7.home vmnet-dhcpd[29462]: Setting vmnet-dhcp IP address: 172.16.244.254 Jul 14 14:56:13 z600-mageia7.home vmnet-dhcpd[29462]: Recving on VNet/vmnet8/172.16.244.0 Jul 14 14:56:13 z600-mageia7.home vmnet-dhcpd[29462]: Sending on VNet/vmnet8/172.16.244.0 Jul 14 14:56:13 z600-mageia7.home vmware[29283]: Virtual ethernet[ OK ] Jul 14 14:56:13 z600-mageia7.home vmware[29283]: VMware Authentication Daemon[ OK ] Jul 14 14:56:13 z600-mageia7.home vmware[29283]: Shared Memory Available[ OK ] Jul 14 14:56:13 z600-mageia7.home systemd[1]: Started SYSV: This service starts and stops VMware services.
Run
NB: Do not attempt to run VMware workstation without applying the workarounds (as shown above) or it will fail silently.
VMware workstation can be started from a shell with the command:
vmware
Alternatively, start via the desktop: Applications -> Systems Tools -> VMware Workstation
First time run
Note that the first time VMware workstation is run: if a license key was not entered when the install image bundle was executed then a prompt will appear:
Finally, you should see the VMware workstation 12 "Home" window appear:
This will enable the create a new virtual machine icon to be clicked to open:
Subsequent runs
Subsequent runs will display the VMware workstation 12 window.
Create a desktop launcher
For mate DE: Right click on the background image and select create launcher
Data for launcher:
name: | VMware |
command: | /usr/bin/vmware |
comment: | VMware Workstation 12.5.9 |
icon: | /usr/share/icons/hicolor/48x48/apps/vmware-workstation.png |
When kernel gets updated
When the Mageia Linux kernel gets updated it is necessary to rebuild the vmmon and vmnet kernel modules.
What to do:
- Let the kernel update complete (eg when "/usr/sbin/urpmi --auto-update" is run).
- cd to your Downloads/vmware-host-modules-workstation-12.5.9/ directory. Depending on which commit you have, this is likely to be: vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d. Example:
cd ~/Downloads/vmware/vmware-host-modules-workstation-12.5.9/vmware-host-modules-a0058c695891805ad1c14332c7c61b3e13d4744d
- Compile and install vmmon and vmnet kernel modules for the new kernel by repeating the steps from:
- compile the patched vmmon and vmnet code Installing_VMware_workstation_12.5.9_in_Mageia_6#compile_the_patched_vmmon_and_vmnet_code
- up to and including: restart vmware service Installing_VMware_workstation_12.5.9_in_Mageia_6#restart_vmware_service
Trouble shooting
This section is for issues and ways to work around them.
Mageia system boot gets held up
Something odd noticed with recent kernel updates is that after rebuilding the kernel modules (for new version) the system may get stuck in booting up. This may be evident with a message like "waiting for job to complete" that never seems to complete.
One work around is to disable vmware.service with systemctl. But how to do this if boot gets stuck?
The answer is to power down and restart using the Mageia rescue process and once you have chrooted into root run:
systemctl disable vmware.service
then ctrl-d, ctrl-d to reboot the system
This means that the vmware service will not be automatically started at boot time but you can start it later boot with:
systemctl start vmware.service
and then start vmware workstation
VMware won't start: some error with vmmon and/or vmnet
Follow the steps for "When kernel gets updated" (above).
Appendix-1: links
VMware |
VMware 12.5.9 download |
Arch Linux VMware page |
mkubecek's page about patches for vmmod and vmnet modules |