Convert qcow2 to raw image and raw to qcow2 image

qemu-img is a QEMU disk image utility, which allows us to create, convert and modify images offline. It can handle all image formats supported by QEMU (including qcow2 and raw image format).