Freeing memory for Hyper-V VMs on Windows 8/8.1

Sometimes when I try to start a VM on my Windows 8.1 laptop, I get an error message saying that there is not enough free memory to match the start-up RAM of my VM:

An Error Occured While Attempting To Start the Selected Virtual Machine
On a “normal” Hyper-V server, it is strongly recommended not to run anything other than management software and security agents in the Management OS. The parent partition, where Management OS is running, is just another virtual machine, although crucial and privileged. Because services and processes needed for operation of Hyper-V are running inside Management OS, hypervisor monitors its runtime health and dynamically determines how much memory can be safely allocated to virtual machines.

Now, when I enable Hyper-V on my Windows 8.1 laptop, the installed copy of Windows becomes the Management OS, and this is where I run every bit of software I use, from Outlook and Excel to PowerShell scripts, IE, and even Spotify client.
Usually, my applications use a lot of RAM, and when I try to start a VM, there might not be enough free RAM for the hypervisor to allow it and I get the error on the screenshot above.


Physical Memory Allocation

Most people will start closing desktop applications like Outlook or Word in order to free RAM, but I like my Outlook open, thank you, so I will show you a better way by using a free Sysinternals tool by Mark Russinovich, called RAMmap.

When you start RAMMap, it shows a “map” of the memory:

Sysinternals RAMMAP

On the top there is an “Empty” menu, so I click on “Empty Working Sets”

Sysinternals RAMMAP - Enpty Working Sets


..and press F5 to refresh:

Sysinternals RAMMAP - After Refresh

Wow, now I have more that 5GB on standby, all my apps are still working and I can start my VM(s) now:

VM Now Able To Start


Was this answer helpful?

 Print this Article

Also Read

Hyper-V: Not Enough Memory to Start Virtual Machine

Just a quick post, to point out the obvious (which wasn't so obvious to me last night)......

Configure NUMA spanning on Hyper-V

To configure NUMA spanning, open the Hyper-V Settings and select the NUMA Spanning option (see...