Hyper-V: Not enough memory to start VM although there are plenty left

hyper-vnumavirtualization

I'm having this error on my server: "Not enough memory in the system to start the virtual machine. Ran out of memory (0x8007000E)" when starting an 8 GB VMs on a 12 GB RAM FREE server.

Here is my set up.

Host specs: 32 GB RAM – E3-1240v3 CPU – 4 TB HDD. Numa spanning enabled.

Created:

  • 6 x 2 Gb – 1 vCore – 100 GB HDD.
  • 2 x 4 GB – 1 vCore – 100 GB HDD – Dynamic memory enabled with min: 3.5 GB.
    So it's 20 GB for VMs (haven't counted dynamic memory) + leave 2.5 GB for the host so the total is 22.5 GB and I still have around 11.5 GB left on the server.

Why can't I start the 8 GB VM? Any comment is appreciated, I've searched everywhere and seems can't have a proper answer.

Best Answer

You ran out of memory. You have to reserve some for the host and other processes, and 2.5G isn't much for Windows as a hypervisor. Just because memory is free doesn't mean it isn't subject to resident allocation by a more important host process, and hyperv rightfully accounts for this. There's usually never a situation in which you would want a single VM to memory cripple the host OS.

Also consider that you may be having trouble allocating memory in the amounts you're requesting. I'm sure your allocations don't have to be so pretty as they are now, so you could easily rob a little from your other workloads to accommodate your host.

Related Topic