Convertir une image disque

Written by admin on March 21, 2013 Categories: KVM Tags: , , , , ,

LVM to RAW

dd if=/dev/monvg/monlv of=image.img

RAW to QCOW2

qemu-img convert -f raw -O qcow2 image.img image.qcow2 -p

RAW to QCOW2 avec préallocation

qemu-img convert -f raw -O qcow2 -o preallocation=metadata image.img image.qcow2 -p

QCOW2 to QCOW2 avec préallocation

qemu-img convert -O qcow2 -o preallocation=metadata image.qcow2 newimage.qcow2 -p

Source :

http://ealkl.wordpress.com/2012/11/03/nw-proj-creating-snapshot-with-libvirt-kvm-qemu-continued/

https://blueprints.launchpad.net/nova/+spec/preallocated-images

No Comments on Convertir une image disque

Leave a Reply

Your email address will not be published. Required fields are marked *