3/30/2024 0 Comments Qemu imgI added a plus using pv so you can monitor the progress. You can use any network command, for example ssh and dd to make the magic work: $ dd if=myoriginalimg bs=100M | pv -tebrap -size 500g | ssh myhost dd of=/dev/nbd0 bs=100M Now you have a /dev/nbd0 device that is a block device just like any block device but any operation done over it will be performed on the QCOW2 image Perform the transfer over the emulated device $ qemu-nbd -connect /dev/nbd0 myimage.qcow2 This is mostly used to get access to QCOW2 contents, but the device is read-writable so you can treat it as a standard block device: $ modprobe nbd There is a tool that allows you to emulate a device on top of a QCOW2 image. ![]() In destination, create an empty QCOW2 image, for example: $ qemu-img create -f qcow2 myimage.qcow2 500gĬonnect the QCOW2 image using NBD to a device So below is what I made: Create an empty QCOW2 image I had the same problem, but the provided answer from Michael Hampton would not fit for me as the amount of data I had to transfer was too big and the time I had to do the operation would not be enough. Although this is an old question I think it should be worth to show an interesting alternative.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |