How to convert OVA to QCOW2 using QEMU

1 min read

  1. Install qemu-utils package.
# Debian/Ubuntu
sudo apt install qemu-utils
# Arch
sudo pacman -S qemu
# RHEL/CentOS/Fedora
sudo dnf install qemu-img
  1. Export VirtualBox Appliance to OVA
$ VBoxManage list vms
"DB_Server" {9bf53784-16e9-40e7-b081-b7a87ff2f039}
$ VBoxManage export [VM_NAME] -o [OUTPUT_FILE].ova --ovf10
  1. Extract the .ova Package
tar -xvf [OUTPUT_FILE].ova
  1. Convert the .vmdk to .qcow2
qemu-img convert -f vmdk -O qcow2 [VM_NAME-DISK].vmdk [VM_NAME].qcow2

References: