XenServer Administrator's Guide 4.1.0
Command line interface
93
Lists CDs attached to the specified VMs.
The VM or VMs on which this operation should be performed are selected via the standard selection mech-
anism (see VM selectors). Optional arguments can be any number of the VM parameters listed at the be-
ginning of this section.
You can also select which VBD and VDI parameters to list.
5.4.22.5. vm-cd-remove
vm-cd-remove cd-name=name of cd [ vm-selector=vm selector value...]
Remove a virtual CD from the specified VMs.
The VM or VMs on which this operation should be performed are selected via the standard selection mech-
anism (see VM selectors). Optional arguments can be any number of the VM parameters listed at the be-
ginning of this section.
5.4.22.6. vm-clone
vm-clone new-name-label=name for clone [new-name-description=description for clone ] [
vm-selector=vm selector value...]
Clone an existing VM, using storage-level fast disk clone operation where available. Specify the name
and the optional description for the resulting cloned VM using the new-name-label and new-name-
description arguments.
The VM or VMs on which this operation should be performed are selected via the standard selection mech-
anism (see VM selectors). Optional arguments can be any number of the VM parameters listed at the be-
ginning of this section.
5.4.22.7. vm-compute-maximum-memory
vm-compute-maximum-memory total=amount of available physical RAM in bytes
[approximate=add overhead memory for additional vCPUS? true | false ] [ vm-selector=vm
selector value...]
Calculate the maximum amount of static memory which can be allocated to an existing VM, using the total
amount of physical RAM as an upper bound. The optional parameter approximate reserves sufficient
extra memory in the calculation to account for adding extra vCPUs into the VM at a later date.
For example:
xe vm-compute-maximum-memory vm=testvm total=`xe host-list params=memory-free
--minimal`
uses the value of the memory-free parameter returned by the xe host-list command to set the maximum
memory of the VM named "testvm."
The VM or VMs on which this operation will be performed are selected via the standard selection mechanism
(see VM selectors). Optional arguments can be any number of the VM parameters listed at the beginning
of this section.
5.4.22.8. vm-copy
vm-copy new-name-label=name for copy [new-name-description=description for copy ] [ sr-
uuid=UUID of SR ] [ vm-selector=vm selector value...]










