HP BL680c XenServer Administrator's Guide 4.1.0 - Page 100

vm-crashdump-list, 4.22.10. vm-create, 4.22.11. vm-destroy, 4.22.12. vm-disk-add

Page 100 highlights

Command line interface 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 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.9. 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 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.10. vm-create vm-create name-label=name for VM [name-description=description string for VM ] Create a new VM with default parameters. Despite its suggestive name, this command does not leave you with a running or runnable VM -- it really creates a template. The resultant UUID must be used as the template-uuid argument passed to the vm-install command. This is an advanced command and should not normally be used to install VMs. Instead, use the pre-defined templates and the vm-install command to instantiate new VMs. 5.4.22.11. vm-destroy vm-destroy uuid=UUID of VM Destroy the specified VM. This leaves the storage associated with the VM intact. To delete storage as well, use xe vm-uninstall. 5.4.22.12. vm-disk-add vm-disk-add disk-size=size of disk to add device=uuid_of_device [ vm-selector=vm selector value...] Add a new disk to the specified VMs. The device field should be selected from the value of the allowed-VBD-devices parameter of the VMs. The disk-size parameter can be specified in bytes or using the IEC standard suffixes KiB (210 bytes), MiB (220 bytes), GiB (230 bytes), and TiB (240 bytes). 94

  • 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
94
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 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.9. 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 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.10. vm-create
vm-create
name-label=
name for VM
[name-description=
description string for VM
]
Create a new VM with default parameters. Despite its suggestive name, this command does
not
leave you
with a running or runnable VM -- it really creates a template. The resultant UUID must be used as the
template-uuid
argument passed to the
vm-install
command.
This is an advanced command and should
not
normally be used to install VMs. Instead, use the pre-defined
templates and the
vm-install
command to instantiate new VMs.
5.4.22.11. vm-destroy
vm-destroy
uuid=
UUID of VM
Destroy the specified VM. This leaves the storage associated with the VM intact. To delete storage as well,
use
xe vm-uninstall
.
5.4.22.12. vm-disk-add
vm-disk-add
disk-size=
size of disk to add
device=
uuid_of_device
[
vm-selector
=
vm se-
lector value
...]
Add a new disk to the specified VMs. The
device
field should be selected from the value of the
al-
lowed-VBD-devices
parameter of the VMs.
The
disk-size
parameter can be specified in bytes or using the IEC standard suffixes KiB (2
10
bytes),
MiB (2
20
bytes), GiB (2
30
bytes), and TiB (2
40
bytes).