I'm running some v2v conversions to convert disk images from .vmdk
to .img
using the qemu-img convert
utility. The .vmdk
file is stored in the RAW format and the output .img
file is also going to be in the RAW format.
I've been running checksums before and after conversions to make sure they match after the conversion has run. Is this file integrity check actually necessary? Does qemu-img convert
have some built-in file consistency checks to make sure there are no problems with the conversions. As of now, the checksums take the most amount of time in my whole conversion process so eliminating this step would be a huge time-saving advantage. Also since I'm just converting from RAW to RAW is this conversion even needed or can I just copy/rename the file using rsync
?
Thank you!
Checking file format:
$ qemu-img info <filename>-flat.vmdk
image: <filename>-flat.vmdk
file format: raw
virtual size: 150 GiB (161061273600 bytes)
disk size: 151 GiB
Running the conversion:
$ qemu-img convert -f vmdk -O raw <filename>.vmdk disk.img
Ensuring integrity:
$ crc32 <filename>-flat.vmdk
$ crc32 disk.img