Highlighted
Contributor
Contributor

VM causes host to start freezing at seemingly random intervals.

Jump to solution

I have recently started using VMware and have really enjoyed it thus far.

However, it seems that my Linux Mint 19 virtual machine will occasionally flash in the taskbar as if it was trying to notify me of something and then almost immediately begin causing my entire Windows 10 computer to begin skipping. I need to forcibly kill the VM and VMWare with the Task Manager, which is very difficult when your computer is chugging.

Lowering the number of resources the VM could use helped a bit when needed to kill the process, but it shouldn't be causing these random freezes in the first place.

Sometimes this happens after only 30 minutes of use, sometimes this doesn't happen or many many hours, and I have yet to find a predictable cause.

Could someone tell me where I can find logs that may explain the issue or if this a known issue, and how to resolve it?

0 Kudos
2 Solutions

Accepted Solutions
Highlighted
Contributor
Contributor

Solved.

After this happend on vSphere as well, we did some deep analysis and found out that VMware seems to have a bug regarding USB implementation in the current versions.

After switching USB devices to a network USB switch, everything is working just fine.

For your reference: I am using this model https://www.wut.de/e-53663-ww-dade-000.php

Best regards

Patrick

View solution in original post

0 Kudos
Highlighted
Contributor
Contributor

For me, I found that the issue was due to the number of snapshots I had accumulated.

VMWare apparently checks against all previous snapshots, and the freezing can happen if the delta becomes too large or something like that.

VMWare apparently recommends no more than 4 snapshots.

After reducing my number of snapshots, I am no longer encountering any issues.

View solution in original post

0 Kudos
17 Replies
Highlighted
VMware Employee
VMware Employee

Version of Workstation?

Host CPU and memory?

VM CPU and memory?

0 Kudos
Highlighted
Contributor
Contributor

VMWare Workstation Pro: 16.0.0 build-16894299

Host CPU: Intel Core i7-7700k @ 4.20GHz - 4 cores - 8 logical processers

Host Memory: 48 GB

VM CPU:

     # of processors = 1

     # of cores = 6

VM Memory: 32 GB

I'm not sure if I configured the CPU right. The instructions on how to set it relative to your own CPU weren't very clear.

0 Kudos
Highlighted
VMware Employee
VMware Employee

Does your VM need 6 vCPUs and 32GB of memory?

The usual logic is to configure only the compute resources that will allow your guest OS and applications to run to the level of performance you desire - so if your VM will do what you want with 2 vCPUs and 8GB of memory then just allocate those (or even less).

Not saying this will resolve your issue here, but you asked for clarity on the "right" configuration.

0 Kudos
Highlighted
Contributor
Contributor

I would like my VM to perform as quickly as possible and have the ability to use the majority of my host OS's resources without degrading the performance of both. I do a lot of general usage activity paired with heavy software compilation on the VM for my work.

0 Kudos
Highlighted
Contributor
Contributor

It just happened again and, it's odd, I do not see a spike in CPU or memory usage in Task Manager during the slowdown. I do, however, see a huge spike in disk usage.

This is especially to see it reach so high odd considering I have many RAIDed SSD's.

Now that I think about it, I do not remember having this issue before I migrated my computer to a different RAID array.

Before, my computer had 4 drives in a RAID 10 array. Now it has 6 drives in a RAID 0 array. I am unsure if this could have anything to do with it.

0 Kudos
Highlighted
Contributor
Contributor

I think I figured it out! I am pretty sure that it is AutoProtect that is causing the slowdown!

I have a massive VM, so it's not quick to backup.

Is there a way to confirm this or some way for me to make it so that autoprotect uses less resources but takes a bit longer?

0 Kudos
Highlighted
VMware Employee
VMware Employee

AutoProtect means lots of snapshots: Configuring AutoProtect Options for a Virtual Machine

I‘ve never seen any VMware product have options to limit the resources consumed during the snapshot creation process.

One other comment worth making, there are many posts appear in these forums where snapshot chains get broken which can render VMs unusable, where restoring from a backup can be the only way of recovering the VM.

If you do use a lot of snapshots, take regular backups. Don’t use snapshots AS backups.

0 Kudos
Highlighted
Contributor
Contributor

An update on this.

I disabled AutoProtect but it does not seem to have fixed my issue, unfortunately.

I am still getting the occasional freezing of the host system that takes forever to force quit from, and interrupts my work.

0 Kudos
Highlighted
Contributor
Contributor

If too much RAM is requested by the operating system (Guest or Host whatever) then swapping starts to occur which will freeze your system.

Under Edit - Preferences - Memory, did you enabled "Fit all virtual machine memory into reserved Host RAM" ?

When there is a freeze how much RAM is used/free by the Guest at that moment?

How much RAM is used/free by the Host at that moment?

0 Kudos
Highlighted
Contributor
Contributor
Under Edit - Preferences - Memory, did you enabled "Fit all virtual machine memory into reserved Host RAM"

I did not have this enabled. Thank you, I will try this out and report if I still get the issue.

0 Kudos
Highlighted
Contributor
Contributor

Unfortunately, the issue is still happening. I am unsure what s causing it.

0 Kudos
Highlighted
VMware Employee
VMware Employee

1) What is your host OS version? If it's not Win10 2004, could u upgrade it to the latest and retest again?

2) How about if you disable the tool "Defragment and Optimize driver" on host if it's on?
3) Does the issue happen after running for a long time? Or within the few minutes after VM startup?

Best Regards,

Yan

0 Kudos
Highlighted
Contributor
Contributor

1. It is Windows 10 2004

2. I can try, but it looks like the last time it was run was 5 days ago. I have had it happen much more often than once a week.

3. Both, and in-between. It's very inconsistent. Sometimes it will happen a few minutes after launch, other times it will not happen for 9 or more hours, sometimes after an hour.

It happens both when I am actively using the VM as well as when I just have it running idle in the background. vmware-vmx.exe is the executable that is causing the issue.

0 Kudos
Highlighted
VMware Employee
VMware Employee

>3. Both, and in-between. It's very inconsistent. Sometimes it will happen a few minutes after launch, other times it will not happen for 9 or more hours, sometimes after an hour.

It happens both when I am actively using the VM as well as when I just have it running idle in the background. vmware-vmx.exe is the executable that is causing the issue.

I have same experience with you. I hit this issue one or twice before, but after host restart, it can not reproduce consistently. Sometimes it happens in few minutes after VM startup, sometimes it did not happen after running 2 days. When the issue happen, I can see the CPU and memory usage is not high on host. The only noticeable thing is the disk, it shows speed 50MB/s with the vmx process. Maybe windows is doing something update.

So the last try is to disable Hyper-V, and see if it still happen?

Thanks,

Yan

0 Kudos
Highlighted
Contributor
Contributor

Hi there,

I seem to be facing the exact same problem. As far as I can tell, it started after upgrading to VMware® Workstation 16 Pro 16.0.0 build-16894299.

It worked fine for months in the exact same configuration. After upgrading to 16894299 my host will sometimes run smoothly for a couple of days, sometimes for 8-10 hours and sometimes it freezes after just a few minutes.

When VMWare Workstation is not running, no issues occur.

I have htop running on my host console, whenever this freeze happens, cpu, mem and so on are nowhere near any limits. With all guests up and running, it looks kind of like this:

(attachment)

host configuration:

  • Linux Mint 19.3 Tricia
  • CPU: 8-Core Intel Xeon E-2288G (-MT MCP-) speed/min/max: 800/800/5000 MHz Kernel: 5.4.0-52-generic x86_64 Up: 1d 20h 50m
    Mem: 22699.5/63943.7 MiB ECC (35.5%) Storage: 5.92 TiB (95.4% used) Procs: 500 Shell: bash 4.4.20 inxi: 3.0.32

guest configuration:

(attachment)

AutoProtect is off.

I have the "feeling" it might have something to do with mapped USB devices, especially a headset for use with Dragon Naturally speaking (IMPACT D 10 USB ML - EU EPOS I SENNHEISER). But that's not based on facts, just my imagination.

Any help very much appreciated.

Best regards

Patrick

0 Kudos
Highlighted
Contributor
Contributor

Solved.

After this happend on vSphere as well, we did some deep analysis and found out that VMware seems to have a bug regarding USB implementation in the current versions.

After switching USB devices to a network USB switch, everything is working just fine.

For your reference: I am using this model https://www.wut.de/e-53663-ww-dade-000.php

Best regards

Patrick

View solution in original post

0 Kudos
Highlighted
Contributor
Contributor

For me, I found that the issue was due to the number of snapshots I had accumulated.

VMWare apparently checks against all previous snapshots, and the freezing can happen if the delta becomes too large or something like that.

VMWare apparently recommends no more than 4 snapshots.

After reducing my number of snapshots, I am no longer encountering any issues.

View solution in original post

0 Kudos