Pcornel
Virtualization · Virtual Machine Lifecycle

Export

Cheat sheet · https://pcornel.dk/topic.php?topic=3444

Back to the Topic

Answer

Exporting a VM packages its configuration and disks into a portable format — OVF/OVA, Hyper-V export folder, qcow2 or VMDK — for backup, transfer to another environment or conversion to another hypervisor.

Remember

  • OVF/OVA is portable between platforms.
  • Exports are as large as the VM disks.

First checks

  • qemu-img convert -O vmdk disk.qcow2 disk.vmdk — convert disk format
  • Export-VM -Name <vm> -Path D:\Export — Hyper-V export
  • ovftool vi://host/<vm> <vm>.ova — VMware export

Commands

virsh dumpxml vm01

Verify in this order

VM shut down → config + disks exported → archive

Where it usually breaks

First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3444

Confirmation

Confirm action

Continue?