Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Virtualization / VMWare / Disable Auto Suspend of VM on VMWare Workstation/Player

August 26, 2021 VirtualizationVMWare

Disable Auto Suspend of VM on VMWare Workstation/Player

I have noticed an annoying feature in the VMWare Workstation hypervisor. If you don’t use a virtual machine for some time, it is automatically suspended by the built-in Auto-Suspend feature. To continue using the VM, you have to click the Resume this virtual machine button.

Disable the Virtual Machine AutoSuspend on VMware Workstation

Automatically suspend feature is enabled by default in VMWare Workstation Player/Fusion. It allows to save host resources by automatically freezing the VM state without shutting it down. To turn on the suspended VM, you need some seconds, but I find the feature annoying.

Firstly, it is not convenient if you test something on the VM and wait for the results of your process or script. Secondly, regular VM suspending and saving the memory state to disk will consume your SSD resource. Thirdly, I don’t want to wait for some seconds each time when VMWare Workstation resumes the VM.

VMWare Workstation can suspend the VM automatically or when it detects that a guest OS is in sleep/hibernate mode. For example, Windows 10 puts the device into sleep mode after 30 minutes of inactivity (Control Panel\Hardware and Sound\Power Options\Edit Plan Settings -> Put the computer to sleep).

windows 10 - put the computer to sleep

Unfortunately, you cannot completely disable Auto Suspend in VMWare Workstation settings. However, you can prevent a hypervisor from suspending the specific VM in VMX config file settings.

  1. Shut down the VM;
  2. Look at the path to its VMX configuration file in the VM properties;
    get configuration file VMX path of VMWare VM
  3. Open the VMX file in any text editor and add the line suspend.disabled = "TRUE" to the end of the file. Then save it;set suspend.disabled = "TRUE" in vmx VM file
    Tip. You can add the line to the VMX text file using the PowerShell command:
    Add-Content C:\VHD\win10x64\win10x64.vmx 'suspend.disabled = "TRUE"'
    Make sure that the line was successfully added to the VM VMX file:
    get-content C:\VHD\win10x64\win10x64.vmx | Select-String "suspend"powershell disable autosuspend for vware workstation VM
  4. Start the VM and make sure that your VMWare Workstation hypervisor no longer suspends the VM.

0 comment
5
Facebook Twitter Google + Pinterest
previous post
Windows Server Core: Installing Active Directory Domain Controller
next post
High Non-Paged Pool Memory Usage (Leak) in Windows

Related Reading

Reset Root Password in VMware ESXi

October 12, 2023

How to Fix ‘An Operating System Wasn’t Found’...

July 14, 2023

Unmounting an NFS Datastore from VMware ESXi

April 21, 2023

How to Increase Virtual Machine Disk Size in...

April 6, 2023

How to Install Free VMware Hypervisor (ESXi)

January 24, 2023

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023
  • How to Use Ansible to Manage Windows Machines

    September 25, 2023
  • Installing Language Pack in Windows 10/11 with PowerShell

    September 15, 2023
  • Configure Email Forwarding for Mailbox on Exchange Server/Microsoft 365

    September 14, 2023
  • How to View and Change BIOS (UEFI) Settings with PowerShell

    September 13, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Adding Drivers into VMWare ESXi Installation Image
  • Shrinking VMDK Virtual Disk Size on VMWare ESXi
  • How to Access VMFS Datastore from Linux, Windows, or ESXi
  • Hyper-V Virtual Machine Stuck in Stopping/Starting State
  • Match Windows Disks to VMWare VMDK Files
  • Recovering a Deleted VMFS Datastore on VMware ESXi/vSphere
  • Poor Network Performance on Hyper-V VMs in Windows Server 2019
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top