So as a M1 user I faced issues practising vulnhub boxes in M1 mac.Found out that UTM supports multiple architecture to emulate on the macbook.But the vulnhub machines on the website contains .ova file format where UTM application supports .qcow2 file format.
Question: I have downloaded a virtual appliance packaged in OVA format. I want to convert the OVA image to QCOW2 format, so that I can run the virtual appliance on KVM hypervisor. How can I convert OVA image to QCOW2 format on Linux?
An OVA file (with .ova extension) is nothing more than a TAR archive which contains an OVF file, one or more disk image files, and optional manifest files
Step One: Extract disk image from OVA
tar -xvf file.ova
This will produce an OVF file, one or more disk images (VDI or VMDK), and other optional supplementary files.
Step Two: Convert Disk image to QCOW2
You can use qemu-img tool to work his magic..
qemu-img on M1 Mac:
brew install qemu
To convert VDI image to QCOW2 format:
$ qemu-img convert -O qcow2 input.vdi output.qcow2
To convert VMDK image to QCOW2 format:
$ qemu-img convert -O qcow2 input.vmdk output.qcow2