Use this when exporting a VM for transfer or backup.
Export
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.
1. Export writes VM config and disks to a portable format.
2. Shut down for a consistent export.
3. OVF/OVA is the cross-platform standard.
4. Check disk format compatibility.
5. Verify by importing.
VM shut down → config + disks exported → archive
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
- Export completes without errors and checksums match after copy.
- Test import on the target platform.
Step 2 Common mistakes Narrow the fault
- Exporting with snapshots, producing huge or inconsistent exports.
- Exporting thin disks as thick, filling the target.
- Forgetting that encrypted VMs need the keys at the target.
Step 3 Things to know Narrow the fault
- Shut down the VM first for a consistent export (or use a snapshot-based export).
- OVF/OVA may include hardware versions the target does not support.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- OVF/OVA is portable between platforms.
- Exports are as large as the VM disks.
qemu-img convert -O vmdk disk.qcow2 disk.vmdk— convert disk formatExport-VM -Name <vm> -Path D:\Export— Hyper-V exportovftool vi://host/<vm> <vm>.ova— VMware export
ReferenceImportant terms & boundaries2 sections · depth on demand
Commands
| Platform | Command |
|---|---|
| vSphere | Export-VApp -VM vm01 -Destination D:\export -Format Ova / ovftool |
| Hyper-V | Export-VM vm01 -Path D:\export |
| Proxmox | Backup with vzdump 101 (restore elsewhere with qmrestore) |
| KVM | Copy disk with qemu-img convert plus virsh dumpxml vm01 |
In depth
Export packages a VM to move or archive it:
ovftool vi://vcenter/DC/vm/app01 /exports/app01.ova
Export-VM -Name vm1 -Path E:\Exports
vzdump 120 --mode stop --compress zstd --storage backups
virsh dumpxml vm1 > vm1.xml; qemu-img convert -O qcow2 /var/lib/libvirt/images/vm1.raw vm1.qcow2
Exports contain the full disk — handle them as sensitive data (credentials, keys, personal data inside the guest).
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Virtual Machine Lifecycle → Export. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%