Suspend and Resume VM much slower on HYPER-V than vmware

  1. jimbo45's Avatar
    Posts : 6,352
    Windows / Linux : Centos, Ubuntu, OpenSuse
       12 Sep 2016 #1

    Suspend and Resume VM much slower on HYPER-V than vmware

    Hi there

    particularly @Kari - you seem to be the resident expert on HYPER-V !!!!

    I have two reasonably identical VM's (Linux CENTOS 7 basically runnng SAMBA, PLEX media server, logitech media server and sharing some files).

    The shared files are on 2 logical RAID 0 arrays -- Hardware RAID controller used ( actual hardware 2 X 4 TB and 2 X 3 TB 7200 rpm HDD's) connect as RAW HDD's so the native XFS Linux file system is used on the VM's -- no problem there with that BTW.

    Running Windows 2010 PRO x-64GB version build 1607 with vmware - suspend VM -- takes about 4 secs. With HYPER-V suspend takes sometimes over a minute.

    Both VM's have the OS itself on an SSD and they aren't running concurrently - to get HYPER-V you need to disable vmware and vice versa.

    At suspend time the servers don't have any clients accessing them - i.e there's no remote TV's watching streamed video from PLEX.

    Any ideas !!! -- can't understand why the suspend and resume function takes so long on HYPER-V -- it's a very useful facility BTW.

      My ComputerSystem Spec

  2. Kari's Avatar
    Posts : 15,379
    Windows 10 Pro
       12 Sep 2016 #2

    First, there are two ways to suspend a Hyper-V vm, Save (#1 in screenshot below) and Pause (#2):

    Click image for larger version. 

Name:	image.png 
Views:	23 
Size:	23.6 KB 
ID:	101037

    Both can also be found in Action menu. Using PowerShell, the cmdlets are Save-VM "vm_name" (to resume Start-VM "vm_name") to save vm, and Suspend-VM "vm_name" (to resume Resume-VM "vm_name") to pause vm.

    Difference between these two methods is that whereas Pause only releases all host processor resources still reserving RAM allocated to it, Save releases all host resources, including RAM. Pausing and resuming a vm is instant and the recommended way to suspend if your host has enough RAM to manage without part allocated to vm.

    You could say that relation of these two suspend options is as relation of Sleep (Pause) and Hibernate (Save) on a physical machine.

    Saving a vm really takes some time. This, the time needed of course depends on how much is going on, how many and how resource hungry processes are running on vm. Testing it just now on three virtual machines with different programs up and running I got Save times from 12 - 15 seconds (resume 5 to 10 seconds, no programs running) up to 25 - 30 seconds (resume 20 - 25 seconds, Windows Update installing updates, a document open in Word, a presentation in PowerShell, video playing in Kodi and so on). These times on low end i5 / 12 GB / 7200 spinner laptop host.

    Not knowing Plex I can only guess that it might be at least a partial reason for your slow suspend. Why VMware does this faster, I have not a faintest clue. Sorry.

    Tip   Tip
    Did you know that you can shut down / restart the host letting virtual machines to be up and running? I have selected Save the virtual machine state as Automatic Stop Action for all my virtual machines:

    Click image for larger version. 

Name:	image.png 
Views:	5 
Size:	74.7 KB 
ID:	101042

    When I shut down the host, all my virtual machines running at that moment will be automatically saved. After restart they are not automatically resumed because I have selected Automatically start if it was running when the service stopped option in Automatic Start Options:

    Click image for larger version. 

Name:	image.png 
Views:	5 
Size:	69.9 KB 
ID:	101043
    If I want a specific vm be run every time I sign in to Windows on host I would select Always start this vm automatically.

      My ComputerSystem Spec


Related Threads
Hyper V or VMWare? in Virtualization
While not an expert, I am fairly familiar with VMWare. I know very little about Hyper V, but have watched Kari videos about it. I know VMWare is easier to set up and there are some features easier to use in VMWare. What I am asking is what are the...
Hi there one HUGE advantage using HYPER-V over VMWARE is that HYPER-V can use physical disks directly (provided they are attached in the VM as SCSI - Kari - thanks for sorting that out for me !!). This means you don't need to recover / reformat...
When you have Hyper-V fully installed on a Windows 10 machine, a Standard User can only access Hyper-V via a server connection. This gave me an idea. I was wondering if you could install only Hyper-V Management Tools on the host system and still...
How to Suspend or Resume BitLocker Protection for Drive in Windows 10 You can use BitLocker Drive Encryption to help protect your files on an entire drive. BitLocker can help block hackers from accessing the system files they rely on to...
HI there By using the bcedit trick I can run both HYPER-V VM's and VMWARE (not simultaneously though - you have to re-boot). VMWARE has the advantage of not relying on RDP for all communications - RDP could be real slow on a laggy network....
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 15:19.
Find Us