VMware Workstation

 View Only
Expand all | Collapse all

Ubuntu 22.04 freezes randomly on VMWare Professional 17

DodgeDeBoulet

DodgeDeBouletDec 08, 2022 09:35 PM

VMware Community Member

VMware Community MemberJan 12, 2024 03:22 PM

  • 1.  Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Dec 07, 2022 11:18 PM

    Update 2023/03/20

    The latest  revision of VMWare has not solve the issue: 17.0.1 build-21139696

    Environment:

    OS: Windows 11 with Virtual Machine Platform installed. All patches installed.

    Software: VMWare Professional 17

    VM: Ubuntu 22.04 with all patches.

    Windows Host Power savings config: Never put computer to sleep.

    Symptoms:

    No TTY response. No response to CTRL-ALT-DELETE

    Have to hard reboot the VM to get things working again.

    Window does not resize and no interaction keyboard or otherwise works.

    I have to hard boot the VM to restore functionality.

    Frequency of problem:

    When I have logged out for a long period of time, when I return to the VM again it is dead.

    Hardware:

    Intel i9 10900K

    Graphics: Nvidia 3060

    64 Gig of RAM

     



  • 2.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Dec 08, 2022 09:35 PM

    Dupe



  • 3.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Dec 09, 2022 09:33 PM

    Perhaps, but this problem did not yield satisfactory google searches for me.

    Your dupe comment does not link to an appropriate issue thread.



  • 4.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Dec 09, 2022 10:05 PM

     wrote:

    Perhaps, but this problem did not yield satisfactory google searches for me.

    Your dupe comment does not link to an appropriate issue thread.


    Which is why it was edited, since posts apparently can't be deleted.



  • 5.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jan 21, 2024 04:30 AM

    Try this : 

    adding the following two lines to the end of vmx file.

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



  • 6.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jan 21, 2024 05:12 AM

    Thank you for this suggestion.  Adding these two settings to the virtual machine's vmx file seems to have solved the problem for me:


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

     



  • 7.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Dec 08, 2022 09:48 PM

    You're not alone with this issue. There's another thread on this forum with users (myself included) experiencing this problem.

    I created a support incident with VMWare a week ago. They got back to me with a list of things already tried by users in the other thread, so I asked them to please contact VMWare Engineering for details on their awareness of the issue and timeframe for a fix.

    I sent them a reminder earlier today. This is the response:


    Sorry for the late response.  I have checked provided link. This is a known issue with different CPU cores after some of Windows updates in VMware workstation, we hope it will be resolve in next update.

    Who knows when the next update will be ...



  • 8.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Dec 09, 2022 09:30 PM

    Thanks for the reply. I hope they fix this soon as well.



  • 9.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Dec 21, 2022 11:36 AM

    Looping back on this issue.

    VMWare's tech support partner requested that I reproduce the issue and upload a support log bundle. Interestingly, the installation process (which I had to suspend/resume a dozen times to get it to complete the last time I tried to install Ubuntu 22.04) went completely without incident. I've since applied guest updates and restarted the VM a couple of times to activate them and have not experienced the issue.

    I've tested the VM with and without other VMs running, after a fresh reboot, and also after the host has been running for days. I'm unable to reproduce the issue, and I'm not sure what has changed. No updates to Workstation Pro 17 have been released; there have been two Microsoft Windows updates applied, though: KB5021088 and KB5019959.

    Is anyone else still experiencing the problem?



  • 10.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Dec 23, 2022 04:47 AM

    Hi, 

    All was fine when I was running Ubuntu 20.04.
    When I upgraded to 22.04 the freezing issue began.

    I've gone to other posts and tried their solutions but to no avail.

    I'm wondering if I add ubuntu 22.10 to VMware that may eliminate this issue.

    Unfortunately, Ubuntu 22.10 has only a 6-month support plan.



  • 11.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Apr 19, 2023 03:06 PM

    folks, 

    I experienced the same thing, starting around late march 2023. 

    Resolved by completely removing Windows WSL (Windows Services for Linux), then rebooting.

    The whole issue began when our company pushed out a new WSL (Windows Services for Linux) update.  Apparently WSL and VMware Workstation don't play well together.    I hope this helps somebody   

    Peter



  • 12.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Apr 20, 2023 12:36 AM

    Thanks for the reply. Unfortunately when I tried removing WSL, the problem was not resolved.



  • 13.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted May 01, 2023 08:59 AM

    I removed WSL from my host windows 10 PC. But it did not resolve the issue.

     



  • 14.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted May 01, 2023 08:49 AM

    Similar thing happened here, got WSL recently deployed in March 2023 and will remove and see if it works.



  • 15.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jun 21, 2023 03:45 PM

    I am experiencing the problem.  Can you provide more details on what you did to get rid of the issue.  What is "guest update"?

     



  • 16.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jun 21, 2023 06:53 PM

    Status: after the purge of all things hyper-v and even related software my Ubuntu 22.04 VM was more stable.

    It is, however still freezing, albeit it with less frequency. As stated earlier, my Windows VM on the same machine has no issues.

    Also, by way of reminder, this device is always on. Therefore the issue is not a function of sleep or power savings.

    Bottom line: there is no fix or workaround. The best you can do is to remove hyper-v completely and grin and bear your way through the occasional virtual processor lock ups.

    --

    FYI: guest update means updating the guest OS running on your VM.



  • 17.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jan 10, 2023 04:29 PM

    We have just experienced the same issue with Ubuntu 22.04 on VMWare Workstation Pro 17.

    The answer is to switch from Legacy BIOS to UEFI as we found.



  • 18.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jan 24, 2023 07:47 PM

    I have same problems. I found a workaround, at least for my system (Windows 11 as host, Ubuntu 22.4 LTS as guest)

    When Ubuntu is froozen please press Alt + Tab to switch between the open windows. If you do this to all open windows it defrozes Ubuntu and you can work with it as long as no screen saver starts again.



  • 19.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jan 26, 2023 03:17 AM

    This fixed my problem. Thank you KudoiKami.

     



  • 20.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Feb 28, 2023 07:29 PM

    Thank you! 



  • 21.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Mar 01, 2023 04:36 PM

    Tried changing to UEFI Bios and it would not boot.



  • 22.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Dec 21, 2023 06:11 PM

    Thanks it's woks for me!



  • 23.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jan 16, 2024 10:59 PM

    FWIW, switching the Firmware Type setting from BIOS to UEFI did not solve the problem for me.



  • 24.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Apr 04, 2024 12:28 PM

    Didn't help in my case (Windows 10, Xubuntu 22.04, VMWare 17.5.1)



  • 25.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Mar 05, 2023 04:35 PM

    Disabling power throttling could help resolve the problem. You can disable power throttling for VMware Workstation by running a PowerShell command.

     

    powercfg /powerthrottling disable /path "C:\Program Files (x86)\VMware\VMware Workstation\vmware.exe"

     

    Here's what each part of the command does:

    • powercfg: This is the command-line tool that manages power settings in Windows.
    • /powerthrottling: This option allows you to enable or disable power throttling, which is a feature in Windows 10 that reduces the CPU usage of inactive or background processes to save energy.
    • disable: This parameter disables power throttling.
    • /path: This option specifies the path to the executable file for which power throttling should be disabled.
    • "C:\Program Files (x86)\VMware\VMware Workstation\vmware.exe": This is the path to the VMware Workstation executable file.

     



  • 26.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Mar 09, 2023 07:05 PM

    Still having this issue on a new imaged i5-1235u laptop. I've tried disabling the power saving via powershell, pinning the VM to performance cores, and turning suspend off in the VM, but nothing seems to be fixing this issue. I really hope VMWare fixes this issue soon, because right now, I can't do any work with their product. For me, everything starts fine, but then I click away to read something in my Windows 10 OS and after about 10-15 min, the VM freezes. I can pause and restart the VM and everything is OK, but sometimes it just hard crashes and I have to do a full restart. I heard that there weren't any issues with Virtualbox, so I'm going to switch over to using that until they fix the issues. Hopefully they have eyes on this and will fix it soon.



  • 27.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Mar 23, 2023 10:42 PM

    Ubuntu eventually seemed to be able to run alright with the latest patches to vmare 17.

    However, Debian is still not working and freezes much more aggressively than Ubuntu did. Here's what I've done as a stop-gap on Windows 11.

    I have had excellent success with Microsoft's WSL2 platform however which comes with built-in support for the major distributions:

    The following is a list of valid distributions that can be installed. I was happy to see that VMWare could finally play nicely with the Microsoft Virtual Machine Platform. This may not get you all the way to what you need, but is free with Windows and it works. If you need the GUI, you could install an XWindows desktop option and use VcXsrv to accomplish that.  At least until VMWare finally gets its act together with respect to Linux distributions.


    Install using 'wsl --install -d <Distro>'.

    NAME FRIENDLY NAME
    Ubuntu Ubuntu
    Debian Debian GNU/Linux
    kali-linux Kali Linux Rolling
    Ubuntu-18.04 Ubuntu 18.04 LTS
    Ubuntu-20.04 Ubuntu 20.04 LTS
    Ubuntu-22.04 Ubuntu 22.04 LTS
    OracleLinux_8_5 Oracle Linux 8.5
    OracleLinux_7_9 Oracle Linux 7.9
    SUSE-Linux-Enterprise-Server-15-SP4 SUSE Linux Enterprise Server 15 SP4
    openSUSE-Leap-15.4 openSUSE Leap 15.4
    openSUSE-Tumbleweed openSUSE Tumbleweed

     



  • 28.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Mar 29, 2023 10:08 PM

    Scratch that comment about Ubuntu behaving better. The Ubuntu VM now freezes all the time again.

    It's really an awful problem



  • 29.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Mar 29, 2023 10:12 PM
      |   view attached

    The syslogs I see on reboot are full of the "processor stuck" messages. See attached PNG.

     



  • 30.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Apr 08, 2023 06:37 PM

    I'm having the same problem with Windows 10 and Ubuntu 20.04. The VM starts off super quick then gets slower and slower until it completely freezes.

    The only way I've found to bring it back to life is to suspend it and then un-suspend it... But I have to do that every 10 minutes or so which is a nightmare. If it sits there long enough without me suspending it then it will pop up the message "Failed to suspend virtual machine".

    I tried setting the VM's BIOS to UEFI but it fails to boot so that isn't a working solution either



  • 31.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted May 01, 2023 03:31 PM

    Not that it's a great solution or anything but I did a fresh install of Windows 11 and VMWare 17 and now it works perfectly. I have WSL installed as well so we can eliminate that from being the cause, at least on Windows 11... Hopefully a solution is found that doesn't require a complete OS reinstall though



  • 32.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted May 04, 2023 01:17 AM

    We had some success fully disabling hyperv virtualisation through BCDEDIT, but think the actual cause in the Virtualisation Based Security feature which relies on HyperV. This worked until recently when policies started enforcing VBS.



  • 33.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted May 04, 2023 01:30 AM

    Here is an interim update. I was reviewing the error logs after the recent latest up date to 17.02.

    My last frozen session did not have the processor freeze messages. Instead, I noticed that as I forced a reboot there was an SMBUS error stuck on the screen.  I further recalled in the 17.02 patch notes something about legacy Linux support fixes.

    After verifying that that the system boot logs did indeed contain an SMBus initialization error. I looked for a way to avoid trying to stand up that device.

    On the hypothesis that there is a regression caused by recent changes to Windows I have applied an old fix from 2013 for this from: https://whitehatty.com/2012/09/30/vmware-fusion-5-fix-ubuntu-linux-12-04-host-smbus-controller-not-enabled/

    So far so good. I will update after a few more days of not having a system freeze.

    How to fix it:

    • sudo nano /etc/modprobe.d/blacklist.conf
    • add the line:
      blacklist i2c-piix4


  • 34.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jun 26, 2023 01:21 PM

    This issue has been affecting me for far too long as well.  I have tried this as a latest attempt at a fix.  It worked once for a good while, but it has eventually reverted back to It's old ways of locking up after about 20-30 minutes. 

    I have found this is not an exclusive Ubuntu issue.  I also have the same issues with Fedora (34 and up), but the time the VM runs is far shorter on Fedora.

    Linux VMs get slower and slower then locks and video goes out.  No other option exists but to "reset" the VM.

    I'm seriously considering dumping VMWW and moving to virtualbox instead to see if I can get better results.

    The level of frustration with this is insane and I can't believe that VMW has not affected a fix for this yet.



  • 35.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jun 26, 2023 08:21 PM

    I used to use Virtual Box, but moved to VMWare 3 years ago.
    VirtualBox was having the same issues as VMWare is currently having.
    Plus VirtualBox requires much more manual setting up than VMWare as follows:
    1. You have to manually apply the new version of addon's every time Virtual gets a version update.

    2. If you want to share files with the host, you'll need to manually change user permissions to allow write privileges for your Linux user. (off the top of my head I can't remember which user account you'll need to change permissions)

    I don't know if VirtualBox has improved since then, but be warned, you may be jumping out of the frying pan into the fire.



  • 36.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jul 17, 2023 02:12 PM

    I am hosting 17.0.2 build-21581411 on  Windows 10 enterprise Build 19044. It's not addressed as of that release.  I have three guest operating systems that all freeze, they are all Linux based: Centos 7, RHEL 8, and OpenSuse Tumbleweed. Plus  Windows server running: W2K12, W2K16, and W2K19  with no issues.  Only the Linux servers are freezing.  I read another post where someone mentioned an with USB and another with Suspend/Auto-protect. I have refrained from Suspending any of the servers.   I  seemed to be running fine once I removed all of the USB devices except for the Kingston xs2000 2tb drive.  I moved all of my windows servers to the Kingston and left the Linux servers on the internal HD. It works fine but every  now and then it comes back.  It's back now. This time I am going to make a copy of the servers, remove the snapshots, restart them and see what happens.  This is a royal pain to deal with. I hope it gets addressed soon. 



  • 37.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Aug 11, 2023 02:05 PM

    All,

    Something else I'm discovering on my end in this.

    I have run a Linux VM successfully for hours on end.  When I engage a VPN connection within the VM, things go off the cliff for me within 20-30 minutes.  Sometimes less than that.

    Does anyone have any thoughts on the Linux VM locking up while using a VPN but running reasonably well when not?



  • 38.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Aug 11, 2023 10:36 PM

    I run a VPN on the host Windows 10 PC.

    I don't run a VPN within Ubuntu.




  • 39.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jun 06, 2023 02:18 PM

    For anyone digging into this, I've noticed that it doesn't seem to impact kernel v2.  I experience this with RHEL-8 (v3) and RHEL-9 (v4) but do not experience it with RHEL-6 (v2).   



  • 40.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jun 07, 2023 02:13 AM

     

    I tried using a previous version of Ubuntu kernel as suggested by   jeromeoneil

    The kernel version that I was using that caused system freezing was 5.19.0-43-generic.

    So I installed a previous version 5.19.0-41-generic.
    I used grub to boot using the older kernel version.

    The result.
    Well not only did it not solve the freezing problem but now there is no audio.

    For Ubuntu, using an older version of Ubuntu does not work!



  • 41.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jun 07, 2023 08:06 PM

    Previous attempts to fix this issue have all failed for me. Including the driver fix previously discussed.

    Debian continues to go to **bleep** very fast on VM Ware 17... reproducible in a few minutes.

    Ubuntu will stay up for days at times, other times freeze much more quickly.

    Having just paid for 17, I'm starting to feel rather salty about the lack of a statement from VMWare or a fix.



  • 42.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jun 08, 2023 04:14 PM

    Well, on another symptom: I had not seen any of this on either 16 or 17 until yesterday. I was doing some browser investigation using Firefox running on a throw-away Debian 11.5 VM. I was running on Debian 11.5 host with 16. As I was looking at results with Brave versus Firefox, the system would slow to a freeze. I put the system monitor and the Mate system monitor on the desktop and watched. As I connected FF to streaming services, like youtube, it consumed more and more memory until it froze. In several cases, I had to reset the VM to recover. It did not affect the host or other VM's. Duckduckgo'ing the problem found others with FF hogging memory. Probably not the same as you folks but the fix is simple. I guess another fix would be throwing a bunch of RAM at it, I only gave it 4GB

    Have you tried watching system monitors, including good old simple top?

    Lou



  • 43.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jun 13, 2023 12:14 AM

    I tried: boosting the ram to 20 gig. Adding more CPU cores on top of the other solutions.

    I went nuclear. My previous removals of WSL and associated components may have been insufficient.

    So, I went nuclear.

    Remove all things Windows Hypervisor, every single Windows feature including sandbox, and every component related to it. What a pity since this problem only ever affected Linux and not my Windows VMs.

    Completely reinstall VMware Workstation 17 with the repair function.

    Select the keyboard driver, because for God's sake I can't handle how that previous keyboard setup was so bad.

    For the first time in longer than I can recall, the VM has survived the weekend without freezing.

    Conclusion:

    It is readily apparent that VMWare has turned into garbage for Linux. At least for my hardware. This is the only explanation for why my Windows VMs worked well but everything Linux kept dying.

    VMWare: get your act together for Linux. It's an important OS and I am buying VM Workstation so that I have reliable VMs with it.

    Right now, you just suck.

     



  • 44.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jun 13, 2023 01:18 AM

    This is a user-to-user forum. VMware technicians and developers sometimes visit here, but it's on their own time.

    If you just paid for Workstation Pro 17 (within the last 30 days), open a support request with VMware through the Customer Connect portal. You have free complementary support  for 30 days after purchase. 

     



  • 45.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jun 13, 2023 02:00 AM

    Sorry. I don't think this should require a support request. This Linux. The lastest release. It should work as well on VMWare as Windows.

    End of story. No excuses.

    I have a work around by not using VMWare's absolutely broken support for Windows Hypervisor.

    I am not interested in 10 layers of support requests that will give me answers the community has already documented.

     



  • 46.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jun 13, 2023 03:07 PM

     wrote:

    Sorry. I don't think this should require a support request. This Linux. The lastest release. It should work as well on VMWare as Windows.

    End of story. No excuses.

    I have a work around by not using VMWare's absolutely broken support for Windows Hypervisor.

    I am not interested in 10 layers of support requests that will give me answers the community has already documented.

     


    I understand, but if there aren't any good answers from other users in the forum on how to get around this, then having the ability to contact VMware directly might not be a bad idea.

    And I would not place the blame on "broken support for Windows Hypervisor" solely on VMware. VMware's support is only as good as the API set that that Microsoft provides. Ask yourself: would Microsoft would rather that you use Hyper-V or VMware?. Do you think they have a vested interest in making it easy for third party hypervisors to run with Hyper-V, or to expose the full capabilities of their native hypervisor to third-party applications? 



  • 47.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Nov 07, 2023 05:22 AM

    I found a workaround.

    Context:

    (I also have this problem, running Worstation 17 Pro on ArchLinux, so this is not happening only when host is Windows)

    When installing an Ubuntu system from creating a VM (not duplicating one), Workstation auto-detects it and automatically sets up the Guest OS to "Linux" and Version to "Ubuntu 64-bits".

    Action:

    I changed that detected Version, and manually set it "Other Linux 6.x kernel 64-bit", then continue the installation.

    Result:

    Nothing no longer freeze.

    PS: how to send that information to VMWare devs?

     

     



  • 48.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jan 12, 2024 03:22 PM

    not resolved. 



  • 49.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Broadcom Employee
    Posted Nov 14, 2023 02:04 PM

     Ticket has been raised internally. Relevant team will look into the same.



  • 50.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Broadcom Employee
    Posted Nov 16, 2023 05:50 PM

    There are unfortunately a number of separate issues being reported here I think.

    Some of these things have already been noted here, but he's my recommendations for things people should try:

    (1) Disable Hyper-V on the Host
    (2) Disable the E cores on your system

    I'm not an expert on the CPU side of this, but my understanding is that both of those things will put you on some different code paths that are triggering performance issues or intermittent stalls for some users.

    (3) Disable Guest Sleep/Hibernate/PowerSave

    Recent versions of Ubuntu are being more aggressive at putting the Guest into Power Save modes and engage Sleep or Hibernate when the screensaver engages.  This is sometimes provoking keyboard hangs that then don't restore when the Guest wakes up again, or fails to trigger a wake-up via the keyboard.

    (4) Power off the VM, and add the config option:  keyboard.allowBothIRQs = FALSE

    This might make the Sleep/Hibernate hangs worse, but seems to avoid a different keyboard hang that people are hitting during normal keyboard usage.

    (5) Make sure the VM has a USB controller.

    This gives us an alternate mouse path which is generally better behaved, and helps reduce the traffic on the PS/2 port decreasing the chances of hitting keyboard hangs there.

    (6) As a last resort, you can try switching to the virtual USB keyboard for the VM.

    After making sure the VM has a USB controller, power off the VM and add this config option: keyboard.vusb.enable = TRUE

    That will switch us from sending keyboard events using the PS/2 keyboard to the USB keyboard.  On some Linux distros this may make your key-repeat get stuck more often, but again avoids any PS/2 keyboard hangs you might be hitting.  This is however unlikely to fix any general host performance issues (if the host is stalling or generally slow on it's own), and is a less common configuration.



  • 51.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Broadcom Employee
    Posted Nov 16, 2023 05:57 PM

    Ah sorry, or also:

    (7) Toggle 3D graphics in the VM.

    That changes portions of our console path, and might make this better/worse depending on the system and graphics card.



  • 52.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jan 16, 2024 09:26 PM

     - 2 months now... Any progress on a real fix for this rather than a hacked work-around? 



  • 53.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Broadcom Employee
    Posted Jan 16, 2024 09:50 PM

    The issue most people are reporting here where the keyboard just hangs on Linux Guests, and was a 17.0=>17.5 regression should be fixed by the config option I posted:

    keyboard.allowBothIRQs = FALSE

    We're just changing the default for that option as our planned fix, and that should go out in a future Workstation release.  I don't have any information on the release timelines though.

    There's another keyboard issue we're tracking that causes a noticeable delay on keystrokes when typing, and so far has only been observed affecting Linux Guests on Windows hosts and only when 3D graphics is enabled in the VM.  We haven't been able to reproduce that internally, but have enough customers impacted that we're pretty confident it's a separate issue, and we think it was a regression between 16.0=>17.0 .  The only work-around we have for this issue at the moment is to turn off 3D graphics in the VM.

    Otherwise the rest of the users seem to be reporting general temporary Guest stalls which look like a keyboard issue to the user, but we think are caused by things outside the keyboard stack.  I don't have much insight into those besides trying the general performance recommendations I posted.



  • 54.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Nov 20, 2023 06:56 AM

      and ,

    I found a solution but might apply for a just a few.

    First, some context:

    • Host runs Archlinux
    • Default configuration of the host is to use IPv6, even on DNS resolution
    • IPv6 DNS resolution doesnt always work, when it doesnt work, it makes the whole system hangs
    • Default VM configuration is to use the host as DNS server (the host will forward, in its IPv6 mode...)

    This hang during IPv6 mode DNS resolution was responsible of the freezes. Again, it was my case, I am not saying it is general.

    I disabled IPv6 on the host system, and also on the guests, then eveything is OK now



  • 55.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Nov 22, 2023 08:00 AM

    , ,

    The IPv6 disable was temporarily working as workaround.

    Problem reapeared.

    I was previusly running Linux 6.6 on the host, which is the current "linux" package.

    I switched to "linux-lts", wchich is a 6.1 one, it seems very stable now.



  • 56.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Nov 28, 2023 01:17 PM

    Found a tip, but forgot where (kudos for the one that wrote it). 

    Just add these two lines to the bottom of the VM's vmx file:

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

    this fixed all freezing problems for me.



  • 57.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Dec 06, 2023 07:43 AM

    I found out that my Ubuntu Guest VM Freezes just when I pressed the DEL(delete) key. But not always, sometimes I can use DEL without any issue.

    I'm using VMware Workstation on Windows 10, not 11



  • 58.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jan 16, 2024 01:00 PM

    I have created a Customer Connect request to see if they help us solve this problem.

     

    Does anyone have any other news on this topic? I cannot work with the level of issues this is causing me and is severely diminishing my work productivity..



  • 59.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jan 16, 2024 01:33 PM

    On top of the other suggestions in the thread, the one thing that fixed my last issue was to disable snapshot "autoprotect". After much analysis, I found that the process of taking a snapshot was causing my VM to freeze to the point that it made the host freeze as as well. 

    Don't know if it applies to your situation but it is something that helped mine and I haven't seen others mention it within this context. 



  • 60.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jan 16, 2024 09:08 PM

    I have found the following actions have alleviated the problem.
    My host is windows 10 pro.

    1. rolled back to version 17.0.0 build-20800274.
      There is no process to roll-back. The only way is to uninstall VMWare from windows 10.  I used control panel. (Note, when uninstalling make sure you tick the two boxes to save the configuration information)

    2. Then download the older version of VMWare and install it. That's it. Roll-back accomplished without effecting the VM machine running Ubuntu.
    3. In settings select the "option" tab. Click on "VMWare Tools", select "Update Manually (do nothing)"
      This will stop VMWare automatically updating in the future.
    4. Disable folder sharing. (Only use it as required, then disable it the rest of the time).

    I have found that this has helped me.



  • 61.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jan 16, 2024 11:47 PM

    I've abandoned this tool, got to the point where i just could not take it anymore.



  • 62.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jan 23, 2024 08:33 AM

    (for Linux hosts) mkubecek's last patch has brought a tenattive of solution: https://github.com/mkubecek/vmware-host-modules/commit/2c6d66f3f1947384038b765c897b102ecdb18298

    I just booted on it and I am waiting for the actual results.



  • 63.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jan 23, 2024 09:06 AM

    , please point the dev team to this commit:

    Mainline commit 0fcb70851fbf ("Makefile.extrawarn: turn on
    missing-prototypes globally") in 6.8-rc1 enables -Wmissing-prototypes
    globally, revealing a lot of unclean code and also some actual problems.
    This is also the case in vmmon and vmnet modules.
    
    Most of them are addressed by making functions used only within one file
    static. The missing prototype of random_get_entropy_fallback() is handled
    by including <linux/timex.h> rather than <asm/timex.h>.
    
    Finally, there are four functions in vmnet module which are actually used
    in multiple files but instead of proper declarations, their prototype is
    duplicated in vmnet-only/driver.c, risking that the two copies won't match
    (which actually happened in one case). The cleanest solution would be
    creating separate header files for them (bridge.h, netif.h, userif.h and
    vnetUserListener.h) and including them in the respective source file and
    driver.c. As the developers already handle similar cases by simply putting
    the declarations into vnetInt.h, let us do the same to keep things simple.


  • 64.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Jan 25, 2024 02:19 PM

    Disable the Hyper-V solved the problem for me. The Hyper-V seem like not compatible with vmware as mentioned in https://learn.microsoft.com/en-us/troubleshoot/windows-client/application-management/virtualization-apps-not-work-with-hyper-v . Run the following command in powershell to disable the Hyper-V

    Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Hypervisor

     



  • 65.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Feb 05, 2024 04:45 PM

    So, I've tried everything suggested here so far and NOTHING work permanently. This just happens when unexpected things happen like an unexpected shutdown.  Now however I've confirmed that doing a repair on the VMWare Workstation 17 Pro  software fixes this. It does seem to only impact Linux or derivatives.  I am running Win10 Enterprise as host.



  • 66.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Feb 24, 2024 03:35 AM

    I am also experiencing random freezing. I am running Ubuntu 22.04.3 (guest) on Windows 10 Pro (host) using VMWare Workstation Pro 15.5.7. Yes, it's an older version but it worked very well up until recently. I am starting to believe this freezing has something to do with the Linux kernel. There are lots of syslog messages referring to soft lockups (e.g. CPU stuck). My system will lock up over night so it's pretty easily reproducible. This is very frustrating.

    Any updates on this??

     



  • 67.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Feb 26, 2024 07:44 PM

    I had a call with VMWare support team and they told me:

    1- add this line to my .vmx file:

    cpuid.1.ecx="----:---0:----:----:----:----:----:----"

    They said this was tied to the processor I have on my laptop: intel i7 9750H

    2- Disable 3D accelerated graphics.

    3- Apply the keyboard changes suggested by the community here.

    4- remove windows HiperV feature

    After these changes they asked me to:

    1. reduce the number of CPU and CPU cores to 1/2 (1 cpu/2 cores),
    2. start the VM,
    3. use it a bit,
    4. since it didn't crashed they told me to use it and see if it behaved normally.

    I have since bumped up the CPU and Cores back to 2/4 and the machine does not freeze like it used to.

     

    I really hope this helps any one out there.

     

    Happy VMing



  • 68.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Broadcom Employee
    Posted Mar 05, 2024 05:12 AM

     Please upgrade to the latest Workstation version 17.5.1 as this issue has been fixed in this release.



  • 69.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Apr 04, 2024 12:30 PM

    Unfortunately not in my case. (Windows 10, Xubuntu 22.04, VMWare 17.5.1)



  • 70.  RE: Ubuntu 22.04 freezes randomly on VMWare Professional 17

    Posted Apr 17, 2024 02:43 PM

    I have a Windows 11 (10.0.22621 Build 22621) laptop with i7-10850H CPU with 32 GB RAM and Nvidia RTX 3000 Graphics. I am running VMWare 17.5.1 build 23298084. When I run a VM with Ubuntu 20.04 with 1 processor (3 cores) and 16GB RAM, I get random freezing of the host machine. I have tried all options in this thread but doesnt work.