Converting a QCOW2 image to a raw file format

Last Updated : Nov 26, 2024 |

Procedure

  1. Log on to the Linux server using root credentials.
  2. Copy the QCOW2 image file to a temporary directory.
  3. Run the following command to convert the QCOW2 image to a raw file format:

    qemu-img convert image_name disk.raw

  4. Run the following command to reduce the image size:

    tar -czSf disk.raw.tar.gz disk.raw