Citrix Systems 5.6 用户手册
204
For example:
xe vm-compute-maximum-memory vm=testvm total=`xe host-list params=memory-free --minimal`
This command 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 using the standard selection
mechanism (see
VM selectors
). Optional arguments can be any number of the
VM parameters
listed at the
beginning of this section.
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>
...]
Copy an existing VM, but without using storage-level fast disk clone operation (even if this is available).
The disk images of the copied VM are guaranteed to be "full images" - that is, not part of a copy-on-write
(CoW) chain.
Specify the name and the optional description for the resulting copied VM using the
new-name-label
and
new-name-description
arguments.
Specify the destination SR for the resulting copied VM using the
sr-uuid
. If this parameter is not specified,
the destination is the same SR that the original VM is in.
The VM or VMs on which this operation should be performed are selected using the standard selection
mechanism (see
VM selectors
). Optional arguments can be any number of the
VM parameters
listed at the
beginning of this section.
vm-crashdump-list
vm-crashdump-list
[
<vm-selector>
=
<vm selector value>
...]
List crashdumps associated with the specified VMs.
If the optional argument
params
is used, the value of params is a string containing a list of parameters of
this object that you want to display. Alternatively, you can use the keyword
all
to show all parameters. If
params
is not used, the returned list shows a default subset of all available parameters.
The VM or VMs on which this operation should be performed are selected using the standard selection
mechanism (see
VM selectors
). Optional arguments can be any number of the
VM parameters
listed at the
beginning of this section.
vm-data-source-forget
vm-data-source-forget
data-source=
<name_description_of_data-source>
[
<vm-selector>
=
<vm
selector value>
...]
Stop recording the specified data source for a VM, and forget all of the recorded data.
The VM or VMs on which this operation should be performed are selected using the standard selection
mechanism (see
VM selectors
). Optional arguments can be any number of the
VM parameters
listed at the
beginning of this section.
vm-data-source-list
vm-data-source-list
[
<vm-selector>
=
<vm selector value>
...]