#!/bin/bash
for i in *.vmdk; do qemu-img convert -f vmdk $i -O raw $i.raw; done
cat *.raw > tmpImage.raw
qemu-img convert tmpImage.raw finalImage.qcow2
rm *.raw
I cant tell you how much I needed to find this in order to ease the process. Thanks to Kees Cook and muru for the code.Also found this to convert spaces in names to underscores:
for f in *\ *; do mv "$f" "${f// /_}"; done
Update: I spent a good portion of the day converting VMWare VMs to qcow2 and then to KVM images. Life is once again good to me. I was able to get a number of different VMs related to Penetration Testing completed as well as set up a bridge that could be used for the same.