3.7.1. Configuring Virtual Machine Memory Size

To increase or reduce the amount of memory that will be available to the virtual machine, use the --memsize option of the prlctl set command. The following example shows how to increase the RAM of the virtual machine MyVM from 1GB to 2GB and check that the new value has been successfully set:

# prlctl list -i MyVM | grep memory
memory 1024Mb
# prlctl set MyVM --memsize 2048
Set the memsize parameter to 2048Mb
The VM has been successfully configured.
# prlctl list -i MyVM | grep memory
memory 2048Mb

The changes are saved in the VM configuration file and applied to the VM on start. If the VM is running, it will need to be rebooted. To be able to increase or reduce virtual machine RAM size without reboot, enable memory hotplugging as described in Section 3.7.3, “Enabling Virtual Machine Memory Hotplugging”.

Note

Note: The value set with prlctl --memsize is not reported inside the VM as physical or other RAM size. A user logged in to the guest OS will see as much physical RAM as can be obtained by fully deflating the balloon (see MaxNumaSize in Section 3.7.3, “Enabling Virtual Machine Memory Hotplugging”). The balloon size is not reported inside the VM as well. However, if the balloon is not fully deflated, a part of the reported physical RAM will appear to be occupied at all times (by what is in fact the balloon).