Code: Select all
$ qemu-img convert input.vmdk -O raw output.img
$ pigz -9 output.img
2) Restore image to physical disk:
Code: Select all
$ pigz -dc output.img.gz | pv | dd of=/dev/sdX bs=4096
- -d: decompress
- -c output to stdout (to allow piping)
The command "pv" is optional, to show the transfer progress (MB/s).
If you don't have "pv", just remove it