VMware Workstation 12 “Could not open /dev/vmmon: No such file or directory.” error on Arch Linux

After installed VMware Workstation 12 on  Arch Linux (Kernel: 4.7.4-1-ARCH) i received an error message like

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

and virtual machine did not boot up. To solve this problem, rebuild “virtual monitor kernel module” by using this command:

sudo vmware-modconfig --console --install-all

Sample output:

[hakan@c0rt3x Desktop]$ sudo vmware-modconfig --console --install-all
[sudo] password for hakan:
Stopping VMware services:
   VMware Authentication Daemon                                        done
   VM communication interface socket family                            done
   Virtual machine communication interface                             done
   Virtual machine monitor                                             done
   Blocking file system                                                done
make: Entering directory '/tmp/modconfig-9LURHo/vmmon-only'
Using kernel build system.
/sbin/make -C /lib/modules/4.7.4-1-ARCH/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/lib/modules/4.7.4-1-ARCH/build'
  CC [M]  /tmp/modconfig-9LURHo/vmmon-only/linux/driver.o
  CC [M]  /tmp/modconfig-9LURHo/vmmon-only/linux/hostif.o
  CC [M]  /tmp/modconfig-9LURHo/vmmon-only/linux/driverLog.o
  CC [M]  /tmp/modconfig-9LURHo/vmmon-only/common/apic.o
  CC [M]  /tmp/modconfig-9LURHo/vmmon-only/common/memtrack.o
  CC [M]  /tmp/modconfig-9LURHo/vmmon-only/common/hashFunc.o
  CC [M]  /tmp/modconfig-9LURHo/vmmon-only/common/vmx86.o
  CC [M]  /tmp/modconfig-9LURHo/vmmon-only/common/cpuid.o
  CC [M]  /tmp/modconfig-9LURHo/vmmon-only/common/task.o
/tmp/modconfig-9LURHo/vmmon-only/linux/driver.c:1283:1: warning: always_inline function might not be inlinable [-Wattributes]
 LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min
 ^~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /tmp/modconfig-9LURHo/vmmon-only/common/comport.o
  CC [M]  /tmp/modconfig-9LURHo/vmmon-only/common/phystrack.o
/tmp/modconfig-9LURHo/vmmon-only/common/task.o: warning: objtool: .text: unexpected end of section
  CC [M]  /tmp/modconfig-9LURHo/vmmon-only/vmcore/moduleloop.o
/tmp/modconfig-9LURHo/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Free() falls through to next function PhysTrack_Add()
/tmp/modconfig-9LURHo/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Add() falls through to next function PhysTrack_Remove()
/tmp/modconfig-9LURHo/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Remove() falls through to next function PhysTrack_Test()
  LD [M]  /tmp/modconfig-9LURHo/vmmon-only/vmmon.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/modconfig-9LURHo/vmmon-only/vmmon.mod.o
  LD [M]  /tmp/modconfig-9LURHo/vmmon-only/vmmon.ko
make[1]: Leaving directory '/usr/lib/modules/4.7.4-1-ARCH/build'
/sbin/make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= postbuild
make[1]: Entering directory '/tmp/modconfig-9LURHo/vmmon-only'
make[1]: 'postbuild' is up to date.
make[1]: Leaving directory '/tmp/modconfig-9LURHo/vmmon-only'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory '/tmp/modconfig-9LURHo/vmmon-only'
make: Entering directory '/tmp/modconfig-9LURHo/vmnet-only'
Using kernel build system.
/sbin/make -C /lib/modules/4.7.4-1-ARCH/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/lib/modules/4.7.4-1-ARCH/build'
  CC [M]  /tmp/modconfig-9LURHo/vmnet-only/driver.o
  CC [M]  /tmp/modconfig-9LURHo/vmnet-only/hub.o
  CC [M]  /tmp/modconfig-9LURHo/vmnet-only/userif.o
  CC [M]  /tmp/modconfig-9LURHo/vmnet-only/netif.o
In file included from include/linux/pci.h:35:0,
                 from /tmp/modconfig-9LURHo/vmnet-only/compat_netdevice.h:27,
                 from /tmp/modconfig-9LURHo/vmnet-only/netif.c:43:
include/linux/pci_ids.h:2253:0: warning: "PCI_VENDOR_ID_VMWARE" redefined
 #define PCI_VENDOR_ID_VMWARE  0x15ad

In file included from /tmp/modconfig-9LURHo/vmnet-only/net.h:38:0,
                 from /tmp/modconfig-9LURHo/vmnet-only/vnetInt.h:26,
                 from /tmp/modconfig-9LURHo/vmnet-only/netif.c:42:
/tmp/modconfig-9LURHo/vmnet-only/vm_device_version.h:56:0: note: this is the location of the previous definition
 #define PCI_VENDOR_ID_VMWARE                    0x15AD

  CC [M]  /tmp/modconfig-9LURHo/vmnet-only/bridge.o
  CC [M]  /tmp/modconfig-9LURHo/vmnet-only/procfs.o
  CC [M]  /tmp/modconfig-9LURHo/vmnet-only/smac_compat.o
  CC [M]  /tmp/modconfig-9LURHo/vmnet-only/smac.o
  CC [M]  /tmp/modconfig-9LURHo/vmnet-only/vnetEvent.o
  CC [M]  /tmp/modconfig-9LURHo/vmnet-only/vnetUserListener.o
In file included from /tmp/modconfig-9LURHo/vmnet-only/net.h:38:0,
                 from /tmp/modconfig-9LURHo/vmnet-only/vnetInt.h:26,
                 from /tmp/modconfig-9LURHo/vmnet-only/bridge.c:52:
/tmp/modconfig-9LURHo/vmnet-only/vm_device_version.h:56:0: warning: "PCI_VENDOR_ID_VMWARE" redefined
 #define PCI_VENDOR_ID_VMWARE                    0x15AD

In file included from include/linux/pci.h:35:0,
                 from /tmp/modconfig-9LURHo/vmnet-only/compat_netdevice.h:27,
                 from /tmp/modconfig-9LURHo/vmnet-only/bridge.c:51:
include/linux/pci_ids.h:2253:0: note: this is the location of the previous definition
 #define PCI_VENDOR_ID_VMWARE  0x15ad

  LD [M]  /tmp/modconfig-9LURHo/vmnet-only/vmnet.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/modconfig-9LURHo/vmnet-only/vmnet.mod.o
  LD [M]  /tmp/modconfig-9LURHo/vmnet-only/vmnet.ko
make[1]: Leaving directory '/usr/lib/modules/4.7.4-1-ARCH/build'
/sbin/make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= postbuild
make[1]: Entering directory '/tmp/modconfig-9LURHo/vmnet-only'
make[1]: 'postbuild' is up to date.
make[1]: Leaving directory '/tmp/modconfig-9LURHo/vmnet-only'
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory '/tmp/modconfig-9LURHo/vmnet-only'
Starting VMware services:
   Virtual machine monitor                                             done
   Virtual machine communication interface                             done
   VM communication interface socket family                            done
   Blocking file system                                                done
   Virtual ethernet                                                    done
   VMware Authentication Daemon                                        done
   Shared Memory Available                                             done
[hakan@c0rt3x Desktop]$
[hakan@c0rt3x Desktop]$
[hakan@c0rt3x Desktop]$
[hakan@c0rt3x Desktop]$ uname -a
Linux c0rt3x 4.7.4-1-ARCH #1 SMP PREEMPT Thu Sep 15 15:24:29 CEST 2016 x86_64 GNU/Linux
[hakan@c0rt3x Desktop]$

References:
https://askubuntu.com/questions/342719/vmware-workstation-10-at-startup-vmmon-error

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s