Overview
Images obtained from VMware, VirtualBox, Hyper-V, or other virtualization platforms use formats that differ from what Polystack Compute expects. Theqemu-img tool converts between
all major disk image formats quickly and without data loss. QCOW2 is the recommended
format for Polystack — it provides compression, snapshot support, and efficient sparse storage.
Prerequisites
- A Linux workstation with
qemu-utilsinstalled - The source image file in its original format
- Free disk space: RAW conversions require space equal to the full virtual disk size
Supported Formats
Install qemu-img
- Ubuntu / Debian
- CentOS / AlmaLinux / Rocky Linux
Install qemu-utils
Check Image Information
Before converting, inspect the source image to confirm its format, virtual size, and backing chain:Inspect image metadata
Example qemu-img info output
Common Conversions
- VMDK to QCOW2
- VHD to QCOW2
- RAW to QCOW2
- QCOW2 to RAW
Convert a VMware disk image to QCOW2:The
Convert the image
Convert VMDK to QCOW2
-f flag specifies the source format; -O specifies the output format.Verify the output
Verify converted image
Output shows
file format: qcow2 and virtual size matches the source.Validation
After conversion, perform a consistency check before uploading to Polystack:Check image integrity
Clean image output
Next Steps
Upload an Image
Upload the converted QCOW2 image to the Polystack Image Service.
Image Requirements
Verify the image meets all Polystack Compute compatibility requirements.
Modify Images
Customize images with additional packages and configuration before uploading.
Image Formats
Compare all supported image formats and choose the right one for your workload.
