4.5. Setting the Memory Guarantee for a Virtual Machine

In Virtuozzo 7, the --memquota option of the prlctl command has been dropped. Now to set the minimum amount of memory available for a container or VM, the prlctl --memguarantee command is used. The default guarantees are 40% for virtual machines and 0% for containers.

To set a memory guarantee (in percentage of virtual machine’s configured memory), run:

# prlctl set myvm --memguarantee 80

In this example, the memory guarantee is set to 80% of virtual machine’s RAM.

To revert the memory guarantee value to default, run:

# prlctl set myvm --memguarantee auto

To guarantee an application inside a VM permanent access to all configured memory with no dependency on host memory pressure, set a memory guarantee for it.