Found 0 result in total
Content is empty
If you don't find the content you expect, please try another search term
Last updated:2021-08-04 11:26:31
KEC allows you to import only image files in the RAW, VHD, QCOW2, and VMDK formats. For image files in any other format, you must convert the format before you import the image files.
This topic describes how to convert the format of image files by using the qemu-img tool.
D:\qemu
.In the search box next to the Start menu, type This PC and press Enter.
Right-click This PC and select Properties. Then, select Advanced system settings from the left navigation pane.
Click the Advanced tab and then click Environment Variables.
Select Path in the system variables and click Edit. If there is no Path variable, click New.
D:\qemu
.D:\qemu
.Open Windows Command Prompt.
qemu-img --help
command. If the result shown in the following figure is displayed, the environment variables are successfully configured.
Run the cd
command to go to the directory of the source image file. In this example, run the cd D:\convert
command.
Run the qemu-img convert
command to convert the format. After the conversion is complete, the target image is generated in the directory of the source image.
Example : qemu-img convert -f qcow2 -O vpc source.qcow2 target.vpc
Parameter | Description |
---|---|
qcow2 | The format of the source image file. |
vpc | The format of the target image file. |
source.qcow2 | The name of the source image file. |
target.vpc | The name of the target image file. |
Note: O in -O is in uppercase.
Install the qemu-img tool. For more information, see Install QEMU.
apt-get install qemu-utils
command.yum install qemu-img
command.Run the qemu-img convert
command to convert the format. After the conversion is complete, the target image is generated in the directory of the source image.
Example: qemu-img convert -f qcow2 -O vpc source.qcow2 target.vpc
.
Image format | qemu-img parameter |
---|---|
QCOW2 | qcow2 |
QED | qed |
RAW | raw |
VDI | vdi |
VHD | vpc |
VMDK | vmdk |
Pure Mode