Disk import/export APIs

From Xen
Revision as of 12:40, 28 August 2014 by Dave.scott (talk | contribs) (Created page with "These APIs are present in the following xapi versions: * TODO To detect the presence of these APIs: * TODO: either expose a capability or suggest a "try it and see" approach = …")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

These APIs are present in the following xapi versions:

  • TODO

To detect the presence of these APIs:

  • TODO: either expose a capability or suggest a "try it and see" approach

Using the 'xe' CLI

The following command will export a VDI with uuid $VDI in vhd format to the local file 'full.vhd':

 xe vdi-export uuid=$VDI filename=full.vhd format=vhd  --progress

The vhd format can be *sparse*, so if there are unallocated blocks within the VDI which xapi is aware of, they will be omitted from the vhd therefore making the vhd smaller. This should work on all current vhd-based storage types (EXT, NFS)

The currently supported formats are:

  • vhd
  • raw