Export writes the contents of a virtual machine (VM) disk or its snapshot to a file so that you can move the data outside the cluster. For this feature to work, the storage-volume-data-manager module has to be enabled, and the command line requires the d8 utility version 0.20.7 or later.
The disk must not be in use at the moment of export. If the disk is attached to a virtual machine, stop the VM first.
To import a downloaded disk back into the cluster, upload it as an image or as a disk.
- Using the CLI
- Using the web interface
An example of exporting a disk, with the command run on a cluster node:
d8 data export download -n <NAMESPACE> vd/<VD_NAME> -o file.img
An example of exporting a disk snapshot, with the command run on a cluster node:
d8 data export download -n <NAMESPACE> vds/<VD_SNAPSHOT_NAME> -o file.img
If you export data from somewhere other than a cluster node (for example, from your local machine), use the --publish flag.
- Go to the Projects tab and select the project you need.
- Stop the virtual machine the disk is attached to. While the disk is in use, the Download item isn’t available.
- Go to Virtualization → Disks.
- In the row of the disk you need, click the ellipsis button and select Download.
- Wait until the Preparing… step in the Download window changes to Ready: the file downloads automatically as soon as it’s created. If that doesn’t happen, click Download in the window.
While an export is active, the disk is in the Exporting phase and a virtual machine with this disk won’t start. The export ends when its lifetime expires or when the DataExport resource created for it is deleted.