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 The pat following -O (which must be in upper case) is the converted image format + source image file name + target image file name.Run the following command to convert the image file format to QCOW2:.For example, perform the following steps to convert a VMDK image file running CentOS 7 to a QCOW2 image file: Usage: qemu-img command Ĭheck ] filenameĬreate filename
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
#Open img file linux manual
If the version information and help manual of the qemu-img tool are contained in the command output, the installation is successful.