HP BL680c XenServer Administrator's Guide 4.1.0 - Page 99

vm-cd-remove, 4.22.6. vm-clone, 4.22.7. vm-compute-maximum-memory, 4.22.8. vm-copy

Page 99 highlights

Command line interface Lists CDs attached to the specified VMs. The VM or VMs on which this operation should 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. 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 mechanism (see VM selectors). Optional arguments can be any number of the VM parameters listed at the beginning 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-namedescription arguments. The VM or VMs on which this operation should 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.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 ] [ sruuid=UUID of SR ] [ vm-selector=vm selector value...] 93

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108

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
...]