HP BL680c XenServer Administrator's Guide 4.1.0 - Page 89

VDI commands

Page 89 highlights

Command line interface 5.4.19. VDI commands Commands for working with VDIs (Virtual Disk Images). A VDI is a software object that represents the contents of the virtual disk seen by a VM, as opposed to the VBD, which is a connector object that ties a VM to the VDI. The VDI has the information on the physical attributes of the virtual disk (which type of SR, whether the disk is shareable, whether the media is read/ write or read only, and so on), while the VBD has the attributes which tie the VDI to the VM (is it bootable, its read/write metrics, and so on). The VDI objects can be listed with the standard object listing command (xe vdi-list), and the parameters manipulated with the standard parameter commands. See Section 5.3.2, "Low-level param commands" for details. VDI parameters VDIs have the following parameters: Parameter Name uuid name-label name-description allowed-operations current-operations sr-uuid vbd-uuids crashdump-uuids virtual-size physical-utilisation type sharable read-only storage-lock parent missing other-config sr-name-label Description Type The unique identifier/object reference for read only the VDI The name of the VDI read/write The description string of the VDI read/write a list of the operations allowed in this state read only set parameter a list of the operations that are currently in read only set parameter progress on this VDI SR in which the VDI resides read only a list of VBDs that refer to this VDI read only set parameter list of crash dumps that refer to this VDI read only set parameter size of disk as presented to the VM, in bytes. Note that, depending on storage backend type, the size may not be respected exactly read only amount of physical space that the VDI is read only currently taking up on the SR, in bytes type of VDI, for example, System or User read only true if this VDI may be shared read only true if this VDI can only be mounted read- read only only true if this VDI is locked at the storage level read only References the parent VDI, if this VDI is read only part of a chain true if SR scan operation reported this VDI read only as not present additional configuration information for this read/write map parameter VDI name of the containing storage repository read only 83

  • 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
83
5.4.19. VDI commands
Commands for working with VDIs (Virtual Disk Images).
A VDI is a software object that represents the contents of the virtual disk seen by a VM, as opposed to the
VBD, which is a connector object that ties a VM to the VDI. The VDI has the information on the physical
attributes of the virtual disk (which type of SR, whether the disk is shareable, whether the media is read/
write or read only, and so on), while the VBD has the attributes which tie the VDI to the VM (is it bootable,
its read/write metrics, and so on).
The VDI objects can be listed with the standard object listing command (
xe vdi-list
), and the parameters
manipulated with the standard parameter commands. See Section 5.3.2, “Low-level param commands” for
details.
VDI parameters
VDIs have the following parameters:
Parameter Name
Description
Type
uuid
The unique identifier/object reference for
the VDI
read only
name-label
The name of the VDI
read/write
name-description
The description string of the VDI
read/write
allowed-operations
a list of the operations allowed in this state
read only set parameter
current-operations
a list of the operations that are currently in
progress on this VDI
read only set parameter
sr-uuid
SR in which the VDI resides
read only
vbd-uuids
a list of VBDs that refer to this VDI
read only set parameter
crashdump-uuids
list of crash dumps that refer to this VDI
read only set parameter
virtual-size
size of disk as presented to the VM, in
bytes. Note that, depending on storage
backend type, the size may not be
respected exactly
read only
physical-utilisation
amount of physical space that the VDI is
currently taking up on the SR, in bytes
read only
type
type of VDI, for example, System or User
read only
sharable
true if this VDI may be shared
read only
read-only
true if this VDI can only be mounted read-
only
read only
storage-lock
true if this VDI is locked at the storage
level
read only
parent
References the parent VDI, if this VDI is
part of a chain
read only
missing
true if SR scan operation reported this VDI
as not present
read only
other-config
additional configuration information for this
VDI
read/write map parameter
sr-name-label
name of the containing storage repository
read only