Difference between revisions of "Resize a KVM disk"
From MyWiki
(Created page with "qemu-img resize vmdisk.img +10G to increase image size by 10Gb") |
|||
| Line 1: | Line 1: | ||
| − | qemu-img resize vmdisk.img +10G to increase image size by 10Gb | + | qemu-img resize vmdisk.img +10G to increase image size by 10Gb<br? |
| + | |||
| + | |||
| + | Convert formats :<br> | ||
| + | This example will convert a raw image file named centos7.img to a qcow2 image file. | ||
| + | $ qemu-img convert -f raw -O qcow2 centos7.img centos7.qcow2 | ||
| + | Run the following command to convert a VMDK image file to a raw image file. | ||
| + | $ qemu-img convert -f vmdk -O raw centos7.vmdk centos7.img | ||
| + | Run the following command to convert a VMDK image file to a qcow2 image file. | ||
| + | $ qemu-img convert -f vmdk -O qcow2 centos7.vmdk centos7.qcow2 | ||
Revision as of 12:09, 4 May 2015
qemu-img resize vmdisk.img +10G to increase image size by 10Gb<br?
Convert formats :
This example will convert a raw image file named centos7.img to a qcow2 image file. $ qemu-img convert -f raw -O qcow2 centos7.img centos7.qcow2 Run the following command to convert a VMDK image file to a raw image file. $ qemu-img convert -f vmdk -O raw centos7.vmdk centos7.img Run the following command to convert a VMDK image file to a qcow2 image file. $ qemu-img convert -f vmdk -O qcow2 centos7.vmdk centos7.qcow2