If the image is not in the QCOW2, RAW, or VHD format, you must install qemu-img and convert the image format.

Procedure

  1. Run the following command to install qemu-img:
     yum install qemu-img                    
  2. Run the following command to convert the image format:
     qemu-img convert -f VHDX -O vhd rhel.vhdx rhel.vhd                    

    Parameters:

    • -f: This parameter is followed by the source image format.
    • -O: This parameter must be in uppercase and is followed by the target image format, source image name, and target image name.