Skip to content

Instantly share code, notes, and snippets.

@piyoki
Last active February 12, 2022 02:59
Show Gist options
  • Save piyoki/9db60fdb145ef20a43ccad30241ee2b3 to your computer and use it in GitHub Desktop.
Save piyoki/9db60fdb145ef20a43ccad30241ee2b3 to your computer and use it in GitHub Desktop.
VMware to Proxmox

Use OVF Tool to package vm disk remotely

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

Import OVF to VM

qm importovf <VM ID> /tmp/exported-vm.ovf <Storage Pool>

To convert OVA to QCOW2

# Extract the files from the OVA file
tar -xvf input.ova
# Convert VMDK to QCOW2
qemu-img convert input.vmdk output.qcow2 -O qcow2 

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment