I'm a bit new to XenServer, so I've never had to try this, but there appear to be XE commands for updating the dynamic memory config, but I think that's limited to the pay versions.
If you're using an older version without dynamic memory, all of the XenServer admin guides are here, just select the version, then the Documentation tab, then the Administrators guide: http://support.citrix.com/product/xens/
In XenServer 6.0, this can be done with the vm-memory-limits-set command:
[root@localhost 1274]# xe help vm-memory-limits-set
command name : vm-memory-limits-set
reqd params : static-min, static-max, dynamic-min, dynamic-max
optional params : <vm-selectors>
description : Configure the memory limits of a VM. The simplest way to select the VM on which the operation is to be performed is by supplying the argument 'vm=<name or uuid>'. VMs can also be specified by filtering the full list of VMs on the values of fields. For example, specifying 'power-state=halted' will select all VMs whose power-state field is equal to 'halted'. Where multiple VMs are matching, the option '--multiple' must be specified to perform the operation. The full list of fields that can be matched can be obtained by the command 'xe vm-list params=all'. If no parameters to select VMs are given, the operation will be performed on all VMs.
Assuming the VM is powered down, here is an example of actually using it:
The start and stop commands are "blocking" aka they wait till the vm shuts down before returning. This means you can run these commands as fast as possible and it will work fine.
If you already know the uuid if your vm, you can use "uuid=" in-place of the "name-label=" option. Also note: if you know the first 3 characters of your uuid, you can press tab and XenServer will auto-complete the rest for you!
I'm a bit new to XenServer, so I've never had to try this, but there appear to be XE commands for updating the dynamic memory config, but I think that's limited to the pay versions.
It's probably a bit long to paste here, but check out pages 66-67 of the 5.6 SP2 Admin guide here: http://support.citrix.com/servlet/KbServlet/download/27187-102-658234/reference.pdf
If you're using an older version without dynamic memory, all of the XenServer admin guides are here, just select the version, then the Documentation tab, then the Administrators guide: http://support.citrix.com/product/xens/
In XenServer 6.0, this can be done with the
vm-memory-limits-set
command:Assuming the VM is powered down, here is an example of actually using it:
These are the commands I ran to up the memory on my nameserver VM.
The start and stop commands are "blocking" aka they wait till the vm shuts down before returning. This means you can run these commands as fast as possible and it will work fine.
If you already know the uuid if your vm, you can use "uuid=" in-place of the "name-label=" option. Also note: if you know the first 3 characters of your uuid, you can press tab and XenServer will auto-complete the rest for you!
Not that I'm aware of. Resources are allocated from the host to the guest via the XenCenter management console.