本适应于XenServer 5.5 FP1&FP2,
执行以下命令:
On XenServer 5.5, including updates 1 and 2, the following sequence of commands can be used to achieve this:
. /etc/xensource-inventory
staticmax=`xe vm-param-get uuid=$CONTROL_DOMAIN_UUID param-name=memory-static-max`
echo staticmax=$staticmax
xe vm-param-set uuid=$CONTROL_DOMAIN_UUID memory-dynamic-max=$staticmax
xe vm-memory-target-set uuid=$CONTROL_DOMAIN_UUID target=$staticmax