10

I hope you can help me with an issue I've encountered recently.

Setup:

VM Software: VMware Workstation 17.5
Guest OS: Ubuntu 22.04.2
Host OS: Windows 11 22H2
Hardware: Intel CPU, NVIDIA GPU

Background: Everything was working fine until a few days ago.

The Problem: Recently, my Ubuntu VM started freezing intermittently. Here's what happens:

  • I can move the cursor, but clicking anywhere doesn't have any effect.
  • The keyboard becomes unresponsive and its lights turn off.
  • Animations inside the VM, such as window movements and the clock updating, remain functional.
  • I can still use CTRL + ALT to switch back to the host, which continues to work normally.
  • In rare cases, if I wait for a while, the VM becomes responsive again. However, in most instances, I have to restart it. After a restart, it works fine for a bit but eventually runs into the same problem.

What I've Tried:

  • I've searched various forums and tried suggestions such as enabling the enhanced keyboard feature, but it didn't help.
  • I attempted to create a new VM from scratch, yet the issue persists.
  • I've ensured that the VM has ample memory and threads allocated.

I'm not very knowledgeable about Ubuntu or VMs in general. Can someone guide me on how to solve this problem? What additional information do you need from me to assist further?

Thank you for your time and help!

Thomas Ward
  • 78,878
X4GL
  • 101

5 Answers5

4

Add this to the bottom of your VM's vmx file:

keyboard.allowBothIRQs = "FALSE"
keyboard.vusb.enable = "TRUE"

this fixed it for me.

1

This solution worked fine for me:

  • Uncheck Accelerate 3D graphics in the VM settings.
  • Open the VM's vmx file and add the following lines:
mks.enableVulkanRenderer = "FALSE" 
mks.enableGLRenderer = "TRUE"

Reference: reddit fix

Med Amine
  • 11
  • 1
0

I hope this is helpful... I have experienced the same thing with my Ubuntu 22.04 VM running in VMWare player.

Can't seem to figure out what is wrong since it never happened before. Before that I did update then upgrade and it started happening.

Now what I do is I open a CLI and run top in the background. So far it's not freezing.

0

Finally, I found the solution to this freezing problem this problem is only in VMware's latest update and my host machine is

VM Software : VMware Workstation 17.5(before) now 17.6
Guest OS    : 4 to 5 OS and Firewall
Host OS     : Ubuntu 24.04.1 LTS x86_64
Hardware    : Intel CPU, NVIDIA GPU, Intel UHD Graphics 620

I faced this freezing and after rebooting I got a VM my host immediately lost its network connectivity and also the VMs do not have a network.

Trying to execute a sudo command from the shell freezes the shell.

Trying to reboot the machine hangs, and I get rcu_preempt messages after a while. then I found this a kernel error 6.8 and above version then I used the default kernel patch to fix this.

It is tagged for kernel 6.9 but it works also with 6.8 (the default kernel of Ubuntu 24.01) there are Prerequisites

============================

Before proceeding, ensure that you have Vmware Workstation 17.6.0 or a similar version and build-essentials package:

sudo apt update
sudo apt install build-essential linux-headers-$(uname -r) git

If you are using Fedora Linux, upgrade your system:

dnf update && dnf upgrade

Compile And Patch Vmware Workstation Modules

Clone the repository from GitHub:

git clone https://github.com/bytium/vm-host-modules.git
cd vm-host-modules

Make sure you are in the right branch:

git checkout 17.6

Finally, compile and install the patched host modules:

make
sudo make install

This command performs the following tasks:

This command will:

Compile the patched `vmmon` and `vmnet` modules.
Create vmmon.tar and vmnet.tar files.
Copy the compiled `.ko` (kernel object) files to /`lib/modules/$(uname -r)/misc/.`
Copy the generated `vmmon.tar` and `vmnet.tar` to `/usr/lib/vmware/modules/source/.`
Run `vmware-modconfig --console --install-all` to rebuild and configure VMware with the new patched modules.

Finally and optionally, you can reboot your system:

reboot

and enjoy...... Freezing free life.

AndreaT
  • 113
0

Uncheck the Accelerate 3D graphics shown in this image.

image

karel
  • 122,292
  • 133
  • 301
  • 332