Immediately Allocate All RAM to Virtual Machine at Power-On

-1

(I didn't know whether post this question on superuser or serverfault. The original post with all of the background info is on https://serverfault.com/q/981374/134315. I hope it is okay to include the question here too.)


I would like to force VMWare (Fusion) to pre-allocate all of the RAM assigned to a specific virtual machine as soon as that VM is powered on. Does anyone know how to do that?

(I assume I will have to manually add a setting to the VM's .vmx file.)

James L.

Posted 2019-08-30T20:04:28.043

Reputation: 322

1

Possible duplicate of Immediately Allocate All RAM to Virtual Machine at Power-On

– Michael Hampton – 2019-08-31T14:35:57.047

Answers

0

This is a print of the edit settings of a VM on ESXi:

enter image description here

I assume Horizon will provide the same options to reserve the memory on the resources tab.

Once the Reserve all guest memory (All locked) is checked the following lines are added to the .vmx file:

sched.mem.min = "2048"  
sched.mem.pin = "TRUE"

Ronaldo

Posted 2019-08-30T20:04:28.043

Reputation: 306

This is a different UI than I have on Fusion. It looks like the [x] Reserve all guest memory option is what I need. Can you tell which setting this writes to the .vmx file for the virtual machine? – James L. – 2019-08-30T20:34:54.940

@JamesL., I edited the answer to add the code generated on the .vmx. – Ronaldo – 2019-08-31T01:27:02.810

Thank you! I edited the .vmx and added those values. The VM did not immediately allocate the RAM, but continued to behave as before. Thanks for your help. I think these, with a few other settings that I've been playing with might be what I need. I'll post back if I find something that works... – James L. – 2019-08-31T02:15:25.727