migrate qcow2 to drbd/lvm container

aneubau

Renowned Member
Sep 5, 2008
44
1
73
Vienna/Austria
What would be the best way to migrate a qcow2 container for a kvm machine (windows 2003 Server) to a drbd/lvm based container ?
Is there a way to use qemu-img over a network pipe (netcat) ?

Thanks

aneubau
 
What would be the best way to migrate a qcow2 container for a kvm machine (windows 2003 Server) to a drbd/lvm based container ?

Use qemu-img to conver it to raw format. The 'dd' the raw image to the lvm volume (create on with equal size).

Is there a way to use qemu-img over a network pipe (netcat) ?

I do not really understang your question. But qemu-image need direct access to the image file (random seek necessary).
 
Thanks, but that is not what I can do, cause I don' have enough free space on the disk and wanted to transfer data on the fly on another server.
Use qemu-img to conver it to raw format. The 'dd' the raw image to the lvm volume (create on with equal size).

I do not really understang your question. But qemu-image need direct access to the image file (random seek necessary).

Something like
"qemu-img convert <image file>.qcow2 -O raw | netcat -l -p 9999"
and
"netcat <server ip> 9999 > /dev/mapper/<lvm volume>"
on the other server.
But you already answered my question. It is not possible cause qemu-img needs direct access to the file.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!