You can change the amount of memory resources allocated to a virtual machine by using the shares, reservations, and limits settings. The host determines the appropriate amount of physical RAM to allocate to virtual machines based on these settings. You can assign a high or low shares value to a virtual machine, depending on its load and status.
- Limit
- Places a limit on the consumption of memory for a virtual machine. This value is expressed in megabytes.
- Reservation
- Specifies the guaranteed minimum allocation for a virtual machine. The reservation is expressed in megabytes. If the reservation cannot be met, the virtual machine will not turn on.
- Shares
- Each virtual machine is granted a number of memory shares. The more shares a virtual machine has, the greater share of host memory it receives. Shares represent a relative metric for allocating memory capacity. For more information about share values, see the vSphere Resource Management documentation.
You cannot assign a reservation to a virtual machine that is larger than the virtual machine's configured memory. If you give a virtual machine a large reservation and reduce the virtual machine's configured memory size, the reservation is reduced to match the new configured memory size.
Prerequisites
Power off the virtual machine.
Procedure
- Click Virtual Machines in the VMware Host Client inventory.
- Right-click a virtual machine in the list and select Edit settings from the pop-up menu.
- On the Virtual Hardware tab, expand Memory, and allocate the memory capacity for the virtual machine.
Option Description Reservation Guaranteed memory allocation for this virtual machine.
Limit Upper limit for this virtual machine’s memory allocation. Select Unlimited to specify no upper limit.
Shares The values Low, Normal, High, and Custom are compared to the sum of all shares of all virtual machines on the server.
- Click Save.