1.Find the uuid of the required VM: xe
2.Note the uuid, and then run the command
For example, the following displays the dynamic maximum memory properties for the VM with uuid beginning ec77
xe
This shows that the static maximum memory for this VM is 134217728 bytes (128MB).
Updating memory properties
Warning:
It is essential that you use the correct ordering when setting the static/dynamic minimum/maximum parameters. In addition you must not invalidate the following constraint:
0 ≤
Update the static memory range of a virtual machine:
xe
Update the dynamic memory range of a virtual machine:
xe
Specifying a target is particularly useful in virtual server environments, and in any situation where you know exactly how much memory you want a guest to use. XenServer will adjust the guest's memory allocation to meet the target you specify. For example:
xe
Update all memory limits (static and dynamic) of a virtual machine:
xe
Note:
•To allocate a specific amount memory to a VM that won't change, set the Dynamic Maximum and Dynamic Minimum to the same value.
•You cannot increase the dynamic memory of a VM beyond the static maximum.
•To alter the static maximum of a VM – you will need to suspend or shut down the VM.
67