Category Archives: Virtualisation

VMware Player error on Linux

Recently I decided I needed to spend more time on Linux. I am using a Dell Latitude 7480 with 16GB RAM and a 500GB SSD. I installed Linux then I tried to install the latest version of VMware player 16.0.2.

VMware Player Installing

The installation would say it was “successful”, but there would be a bunch of errors.

VMware installation errors

When I started VMware Player, it behaved as expected—prompting for licence agreements etc.

VMware Player Licence Agreements

I created a virtual machine and tried to start it. I then received the following error. “Could not open /dev/-vmmon: No such file or directory. Please make sure that the kernel module ‘vmmon’ is loaded.”

This error would make me curse for hours! I followed various guides telling me to install different packages, gcc, essentials, etc. Then, I saw posts telling me I was using the wrong Linux. Initially, I had installed Ubuntu 21.04. Instead I tried Ubuntu 20.04 LTS, with similar results. It appeared something was wrong with VMware and the Kernal.

After much testing without success, I managed to get lucky. I was in the laptop UEFI/BIOS settings and thought to change “Secure Boot -> Secure Boot Enable” and set it to “Disabled” I was grasping at straws. However, after rebooting, I could now start virtual machines without error! VMware Player is currently working for me. I hope other people who experience this error find this blog post before burning too much time.

Disabling time sync on a Mac guest VM

So I wanted to run some old software which wouldn’t work in 2019 and with newer Mac OS versions. On my iMac I have VMware Fusion installed so I installed Mac OS Sierra and installed VMware Tools so I could drag and drop files between the hots and VM. In VMWare Fusion I went to advanced and disabled time sync. Should be pretty simple.

On reboot the guest virtual machine was still adjusting time.

So I opened up terminal, “sudo su -” to give myself full admin rights and searched for the VMware tools “find / -name “VMware*” and found the cli program in “/Library/Application Support/VMware Tools/vmware-tools-cli”

I ran the program “./vmware-tools-cli timesync status” found it was disabled.

I adjusted the time and date and then rebooted the VM. The time and date resynchronises to the current date and time again. 

I did a lot of reading and searching. I reset the time and date to the past and ran “/Library/Application Support/Vmware Tools/ –restart” and watched as the time and date reset to current. Ok, so now I knew the program causing it. It was calling “launchctl load \” and pointing it to the config file ‘/Library/LaunchDaemons/’ Reading the plist file I could see it was starting vmware-tools-daemon.

I did more searching and found the following VMware document

Click to access vmware-tools-user-guide.pdf

This is where I found out a very important detail about the above “Synchronise Time” option above. This option is for periodic time synchronisation. Every minute it will check the guest virtual machine and make sure the time is correct.

However time synchronisation will happen after certain operations are done;

  • When you start the VMware Tools daemon, such as during a reboot or power on operation
  • When you resume a virtual machine from a suspend operation
  • After you revert to a snapshot
  • After you shrink a disk

To fully disabled time synchronisation you need to edit the VMX file. Shut down the virtual machine and then find the VM file for it. Then control click / right click on the file and select “Show Package Contents” you should then see a list of files which make up the package. Control click / right click on the .vmx file and select “Open with” and select TextEdit. How add the below text to disable all synchronising.

tools.syncTime = “FALSE”
time.synchronize.continue = “FALSE”
time.synchronize.restore = “FALSE”
time.synchronize.resume.disk = “FALSE”
time.synchronize.shrink = “FALSE” = “FALSE”

After this adjust the time and date then restart the guest virtual machine. Your guest VM should now maintain its own time and date.