ovftool vi://root:@<esxi ip>/<vm name> <local_dir>/<vmname>.ova
# e.g
# ./ovftool vi://root:@10.10.10.4/archlinux /mnt/pve/pool-cache/template/archlinux.ova
qm importovf <VM ID> /tmp/exported-vm.ovf <Storage Pool>
# Extract the files from the OVA file
tar -xvf input.ova
# Convert VMDK to QCOW2
qemu-img convert input.vmdk output.qcow2 -O qcow2