

vmdk (configuration file) and xxxx -flat.vmdk (data file) and cannot be directly imported to the cloud platform.

The following information is displayed: home]# qemu-img info centos6.9.qcow2Ī pre-allocated image depends on two files: xxxx. The following information is displayed: home]# qemu-img convert -p -f vmdk -O qcow2 centos6.9.vmdk centos6.9.qcow2

Qemu-img version 1.5.3, Copyright (c) 2004-2008 Fabrice Bellard If CentOS 7 is used, the command output is as follows: ~]# qemu-img -v If the version information and help manual of the qemu-img tool are contained in the command output, the installation is successful. Run the following command to check whether the installation is successful:.For SUSE or openSUSE, run the following command:.For CentOS, Red Hat, or Oracle, run the following command:.For Ubuntu or Debian, run the following command:.If any error occurs, see "Appendix 2: Common Errors During qemu-img-hw Running" in Converting the Image Format Using qemu-img-hw. The following information is displayed: # qemu-img info centos6.9.qcow2 Run the following command to query details about the converted image file in QCOW2 format:.The following information is displayed: # qemu-img convert -p -f vmdk -O qcow2 centos6.9.vmdk centos6.9.qcow2 The part following -O (which must be in upper case) consists of the required format, source image file, and target image file.Īfter the conversion is complete, the target image file is displayed in the directory where the source image file is located.-p indicates the image conversion progress.Qemu-img convert -p -f vmdk -O qcow2 centos6.9.vmdk centos6.9.qcow2 Run the following command to convert the image file format from VMDK to QCOW2:.In the cmd window, run the following commands to switch to D:\Program Files\qemu:.If the qemu-img version information is contained in the command output, the installation is successful.

If Path does not exist, add it and set its value to D:\Program Files\qemu.Ĭhoose Start > Run, enter cmd, and press Enter.
