Pcornel
Virtualization · Virtual Machine Lifecycle

Import

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

Back to the Topic

Answer

Importing a VM brings an exported VM or disk into a hypervisor (OVF/OVA deploy, Import-VM, qm importdisk, virt-v2v). Check virtual hardware, drivers and NIC mapping afterwards, especially when moving between platforms.

Remember

  • Drivers may change when moving between hypervisors.
  • Map virtual NICs to the right networks.
  • Check the virtual hardware version is supported.

First checks

  • virt-v2v -i ova <file.ova> -o libvirt — convert/import to KVM
  • qm importovf <vmid> <file.ovf> <storage> — Proxmox OVF import
  • Import-VM -Path <vmcx> -Copy -GenerateNewId — Hyper-V import

Commands

qm importovf
qm importdisk 120 disk.vmdk local-zfs
qm importovf 120 vm.ovf local-lvm
qm importdisk 120 disk.vmdk local-lvm

Verify in this order

source export → convert → define VM → drivers → boot

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=3443

Confirmation

Confirm action

Continue?