diff --git a/doc/image-guide/ch_converting.xml b/doc/image-guide/ch_converting.xml index b44ded5b08..7c68675c66 100644 --- a/doc/image-guide/ch_converting.xml +++ b/doc/image-guide/ch_converting.xml @@ -7,9 +7,9 @@ Converting between image formats Converting images from one format to another is generally straightforward. - qemu-img convert: raw, qcow2, VDI, VMDK + qemu-img convert: raw, qcow2, QED, VDI, VMDK, VHD The qemu-img convert command can do conversion between multiple - formats, including raw, qcow2, VDI (VirtualBox), VMDK (VMware) and VHD (Hyper-V). + formats, including qcow2, QED, raw, VDI (VirtualBox), VHD (Hyper-V), and VMDK (VMware). @@ -22,37 +22,45 @@ - - + + - - + + + + + + - - - - + + + +
qemu-img format strings
rawrawqcow2 (KVM, Xen)qcow2
qcow2qcow2QED (KVM)qed
rawraw
VDI (VirtualBox) vdi
VMDK (VMware)vmdk
VHD (Hyper-V) vpc
VMDK (VMware)vmdk
- This example will convert a raw image file named centos63.dsk to a qcow2 image file. + This example will convert a raw image file named centos7.img to a qcow2 image file. - $ qemu-img convert -f raw -O qcow2 centos64.dsk centos64.qcow2 + $ 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 raw centos7.vmdk centos7.qcow2 - To convert from vmdk to raw, you would do: - $ qemu-img convert -f vmdk -O raw centos64.vmdk centos64.img The -f format flag is optional. - If omitted, qemu-img will try to infer the image format. + If omitted, qemu-img will try to infer the image format.
@@ -60,9 +68,9 @@ VBoxManage: VDI (VirtualBox) to raw If you've created a VDI image using VirtualBox, you can convert it to raw format using the VBoxManage command-line tool that ships with VirtualBox. On Mac - OS X, VirtualBox stores images by default in the ~/VirtualBox VMs/ + OS X, and Linux, VirtualBox stores images by default in the ~/VirtualBox VMs/ directory. The following example creates a raw image in the current directory from a - VirtualBox VDI - image.$ VBoxManage clonehd ~/VirtualBox\ VMs/fedora18.vdi fedora18.img --format raw + VirtualBox VDI image. + $ VBoxManage clonehd ~/VirtualBox\ VMs/fedora21.vdi fedora21.img --format raw