VMware – Simple Fix for 12.5.6 Runtime with Fedora 26

After further research, I have found a simple solution for the VMware 12.5.6 runtime, with Fedora 26, thanks to comments by ronengi and others on the Archlinux site ( https://aur.archlinux.org/packages/vmware-patch/ ).   This made sense, as the vmware-installer graphical interface still ran OK, despite the runtime vmware not doing so..

# cp -r /usr/lib/vmware-installer/2.1.0/lib/lib/libexpat.so.0 /usr/lib/vmware/lib
# cd /usr/lib/vmware/lib/libz.so.1
# mv -i libz.so.1 libz.so.1.old
# ln -s /usr/lib64/libz.so.1 .

Then just run the executable in the normal way  – # vmware

The kernel modules vmmon and vmnet still need to be manually compiled with gcc 7 and copied, as follows:

In the /usr/lib/vmware/modules/source directory, unTAR vmmon.tar and vmnet.tar, and then enter the resulting vmmon-only and vmnet-only directories and just type # make in each. Then create a /lib/modules/<kernel version>/misc directory, and copy vmmon.ko and vmnet.ko there, then # depmod -a.

I have still not found a solution for vmmon with Kernel 4.12-rc, but have reported the problem on the VMware forum..

Robert Gadsdon.   May 29, 2017


Comments

VMware – Simple Fix for 12.5.6 Runtime with Fedora 26 — 38 Comments

  1. Thanks for the simple guide,

    Work on openSUSE tumbleweed, gcc 7.1.1, kernel 4.11.3-1-default, vmware player 12.5.6 with simple modification:
    # ln -s /lib64/libz.so.1 .
    # /etc/init.d/vmware restart # run this script after depmod -a

  2. Fedora 26
    VMware Worstation 12.5.7

    Getting these errors –

    cd vmmon-only/
    [root@hp vmmon-only]# make
    Using standalone build system.
    In file included from ./autoconf/geninclude.c:20:0:
    ./include/compat_autoconf.h:38:13: fatal error: generated/autoconf.h: No such file or directory
    # include
    ^~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    In file included from .././autoconf/geninclude.c:20:0:
    .././include/compat_autoconf.h:38:13: fatal error: generated/autoconf.h: No such file or directory
    # include
    ^~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    Dependencies for driver.c
    In file included from .././linux/driver.c:20:0:
    .././include/driver-config.h:43:5: error: #error “No Module support in this kernel. Please configure with CONFIG_MODULES”
    # error “No Module support in this kernel. Please configure with CONFIG_MODULES”
    ^~~~~
    make[1]: *** [.././Makefile.normal:128: driver.d] Error 1
    make: *** [Makefile.normal:135: deps] Error 2

    • On a fresh installed Fedora 26 i had the same errors,
      # dnf groupinstall “Development tools”
      should work

    • I was going to mention that the kernel/module source/headers etc. seemed to be missing, but maybe you already spotted that..
      RG.

      • Could you please explain what do you mean with “kernel/module source/headers etc.”?

        I get that exact same error when using make in vmmon-only and vmnet-only, there is no “vmmon.ko” nor “vmnet.ko” after the compiling fails. I got it working with your guide before the last updates but now I can’t

        I have kernel-headers and kernel-dev installed, but I’m not a Linux Architect

        Thank you

  3. On 2017.07.11, I can report that this fix works for VMWare 12.5.7 on Fedora 26 kernel 4.11.8-300.fc26.x86_64 on a PC, so I don’t have any Nvidia Bumblebee issue to deal with as well.

    Thank you so much for all of your hard work. This really helps us users out who aren’t neck deep in system administration.

  4. Yeah…completely forgot to install headers, etc., and once I figured out I need to tar the files back up and reboot, Workstation worked just fine. Your website is permanently bookmarked! Thanks for sharing knowledge!

  5. RG, so I update my kernel. I assuming I need to (re)Make inside vmmon-only and vmnet-only again and copy *.ko files to /misc directory and run depmod -a again, right? I do this and VMware will start, but when starting up VM, get error /dev/vmmon. If I uninstall, VMware and reinstall and run all your documented steps, everything works fine. What step am I a missing? I appreciate the time on this n00b question.

  6. hello, i try in

    Fedora 26 kernel 4.11.10-300.fc26.x86_64
    EFI activate
    Vmware Workstation 12 Player 12.5.7 build-5813279

    VMware player load but when the virtual machine is loading show error Could not open /dev/vmmon: No such file or directory.

    # modprobe vmmon

    modprobe: FATAL: Module vmmon not found in directory /lib/modules/4.11.10-300.fc26.x86_64

    # modprobe vmnet

    modprobe: FATAL: Module vmnet not found in directory /lib/modules/4.11.10-300.fc26.x86_64

    I try to register to efi

    $ sudo /usr/src/kernels/`uname -r`/scripts/sign-file sha256 ./VMware.priv ./VMware.der $(modinfo -n vmmon)
    modinfo: ERROR: Module vmmon not found.

  7. The fix worked for me on Fedora 26 (4.11.10-300.fc26.x86_64) with VMWare 12.5.7. VMWare starts and loads the VM just fine. But open-vm-tools and open-vm-tools-desktop, which are installed, don’t seem to be working:

    [root@SANS-System-01 ~]# systemctl status vmtoolsd
    ● vmtoolsd.service – Service for virtual machines hosted on VMware
    Loaded: loaded (/usr/lib/systemd/system/vmtoolsd.service; enabled; vendor preset: enabled)
    Active: inactive (dead)
    Condition: start condition failed at Mon 2017-07-24 10:11:38 EDT; 3s ago
    └─ ConditionVirtualization=vmware was not met
    Docs: http://github.com/vmware/open-vm-tools

    Why is this failing? The guest VM also will not mount the cdrom to let me install VMWare tools.

  8. RG,

    Ever seen this? Trying to install VMware Workstation 12.5.7 on Fedora 26… (also a side note: notice the reference to 12.5.3 in the log files.)

    VMware 12.5.7 for Linux on Fedora 26 (fully patched) (kernel 4.11.11-300.fc26.x86_64)

    root@hp Downloads]# chmod +x VMware-Workstation-Full-12.5.7-5813279.x86_64.bundle

    [root@hp Downloads]# ./VMware-Workstation-Full-12.5.7-5813279.x86_64.bundle

    Extracting VMware Installer…done.

    No protocol specified

    No protocol specified

    User interface initialization failed. Exiting. Check the log for details.

    [root@hp Downloads]# cd /tmp/vmware-root/

    [root@hp vmware-root]# ls

    vmware-vmis-4811.log

    [root@hp vmware-root]# more vmware-vmis-4811.log

    2017-07-25T14:03:14.231-05:00| vthread-4| I125: Log for VMware Workstation pid=4811 version=12.5.3 build=build-5087745 option=Release

    2017-07-25T14:03:14.231-05:00| vthread-4| I125: The process is 64-bit.

    2017-07-25T14:03:14.231-05:00| vthread-4| I125: Host codepage=UTF-8 encoding=UTF-8

    2017-07-25T14:03:14.231-05:00| vthread-4| I125: Host is Linux 4.11.11-300.fc26.x86_64 Fedora release 26 (Twenty Six)

    2017-07-25T14:03:14.231-05:00| vthread-4| I125: DictionaryLoad: Cannot open file “/etc/vmware/config”: No such file or directory.

    2017-07-25T14:03:14.231-05:00| vthread-4| I125: PREF Optional preferences file not found at /etc/vmware/config. Using default values.

    2017-07-25T14:03:14.231-05:00| vthread-4| I125: DictionaryLoad: Cannot open file “/usr/lib/vmware/settings”: No such file or directory.

    2017-07-25T14:03:14.231-05:00| vthread-4| I125: PREF Optional preferences file not found at /usr/lib/vmware/settings. Using default values.

    2017-07-25T14:03:14.231-05:00| vthread-4| I125: DictionaryLoad: Cannot open file “/usr/lib/vmware/config”: No such file or directory.

    2017-07-25T14:03:14.231-05:00| vthread-4| I125: PREF Optional preferences file not found at /usr/lib/vmware/config. Using default values.

    2017-07-25T14:03:14.231-05:00| vthread-4| I125: DictionaryLoad: Cannot open file “/root/.vmware/config”: No such file or directory.

    2017-07-25T14:03:14.231-05:00| vthread-4| I125: PREF Optional preferences file not found at /root/.vmware/config. Using default values.

    2017-07-25T14:03:14.231-05:00| vthread-4| I125: PREF Unable to check permissions for preferences file.

    2017-07-25T14:03:14.231-05:00| vthread-4| I125: DictionaryLoad: Cannot open file “/root/.vmware/preferences”: No such file or directory.

    2017-07-25T14:03:14.231-05:00| vthread-4| I125: PREF Failed to load user preferences.

  9. Able to get VMware Workstation 12.5.7 installed on kernel 4.11.8 after running sudo dnf install ncurses-compat-libs. However, once I updated to 4.11.11, compiled, vmmon and vmmnet, copied them to 4.11.11/misc, I’m back to VMware looking for gcc compliler. Did I mention I am starting to hate VMware? 🙂

    • If you have vmmon and vmnet compiled, and installed, there is nothing else that needs gcc.. Just # depmod -a and then load modules (modprobe..etc) and then # service vmware start.
      RG.

  10. Great !!! Thanks a lot. Works for me with F26 4.11.11-300.fc26.x86_64 and MVplayer 12.5.7-5813279.x86_64.
    Just a little point: after # depmod -a it is mandatory to do # /etc/init.d/vmware restart … I forgotten this last command and I had the following error message when loading the .vmx file !:

    “Could not open /dev/vmmon: No such file or directory.
    Please make sure that the kernel module `vmmon’ is loaded”

    All is working fine after doing # /etc/init.d/vmware restart !!!
    Thanks again !!!!

  11. IT WORKS!!! =)

    For the record, it works with Fedora 26 (kernel 4.11.11-300) with 7.1.1 (upgraded yesterday, via ‘dnf system-upgrade download –refresh –releasever=26’, from my previous Fedora 25).

    As usual, when starting the application (after completing the first part of the ‘patch’), it complains about the lack of – guess what? – GCC 7.1.0…. :/ =D

    Great job, as usual…

  12. Your guide works fine but has anyone noticed that on Fedora 26 there is no longer a tray icon in KDE?

  13. I think this is why things were not working for me…

    https://lkml.org/lkml/2017/2/13/621

    modprobe vmmon would never work for me. After installing elfutils-libelf-devel, modprobe vmmon does not return an error.

    Also, just for clarification, when installed VMware Workstation through the console:

    “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”. [root]: ”

    Is it best to choose root and make changes later? Or enter the user account?

  14. Hi RG

    Great job on finding out how to get VMware working on Fedora 26!
    I’ve put all the commands in a script file; I hope this helps others to install VMware on Fedora26:

    #/bin/sh

    dnf install elfutils-libelf-devel

    cp -r /usr/lib/vmware-installer/2.1.0/lib/lib/libexpat.so.0 /usr/lib/vmware/lib
    cd /usr/lib/vmware/lib/libz.so.1
    mv -i libz.so.1 libz.so.1.old
    ln -s /usr/lib64/libz.so.1 .

    mkdir -p /lib/modules/`uname -r`/misc

    tar -xvf /usr/lib/vmware/modules/source/vmmon.tar –directory /usr/lib/vmware/modules/source
    cd /usr/lib/vmware/modules/source/vmmon-only
    make
    cp /usr/lib/vmware/modules/source/vmnet-only/vmnet.ko /lib/modules/`uname -r`/misc

    tar -xvf /usr/lib/vmware/modules/source/vmnet.tar –directory /usr/lib/vmware/modules/source
    cd /usr/lib/vmware/modules/source/vmnet-only
    make
    cp /usr/lib/vmware/modules/source/vmmon-only/vmmon.ko /lib/modules/`uname -r`/misc

    depmod -a
    modprobe vmmon
    modprobe vmnet
    /etc/init.d/vmware restart

  15. Working :

    #/bin/sh

    dnf install elfutils-libelf-devel

    cp -r /usr/lib/vmware-installer/2.1.0/lib/lib/libexpat.so.0 /usr/lib/vmware/lib
    cd /usr/lib/vmware/lib/libz.so.1
    mv -i libz.so.1 libz.so.1.old
    ln -s /usr/lib64/libz.so.1 .

    mkdir -p /lib/modules/`uname -r`/misc

    tar -xvf /usr/lib/vmware/modules/source/vmmon.tar –directory /usr/lib/vmware/modules/source
    cd /usr/lib/vmware/modules/source/vmmon-only
    make
    cp /usr/lib/vmware/modules/source/vmmon-only/vmmon.ko /lib/modules/`uname -r`/misc
    cp /usr/lib/vmware/modules/source/vmnet-only/vmnet.ko /lib/modules/`uname -r`/misc

    tar -xvf /usr/lib/vmware/modules/source/vmnet.tar –directory /usr/lib/vmware/modules/source
    cd /usr/lib/vmware/modules/source/vmnet-only
    make
    cp /usr/lib/vmware/modules/source/vmnet-only/vmnet.ko /lib/modules/`uname -r`/misc

    depmod -a
    modprobe vmmon
    modprobe vmnet
    /etc/init.d/vmware restart

Leave a Reply

Your email address will not be published. Required fields are marked *