Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not convert the image if it's already in .raw format
We convert 'qcow2', 'img', and 'vhd' images to 'raw' format to enable their use with Cloud Hypervisor. If the source image is already in 'raw' format, there's no need for conversion; we simply move it. At present, we don't have any source images in 'raw' format. However, I plan to distribute GitHub runner images via our internal MinIO cluster. Instead of uploading 'vhd' images, I will upload the converted 'raw' images to MinIO. This way, each VM host won't need to convert images, which has two main benefits: - Converting 86GB images typically takes 6-7 minutes. Distributing 'raw' images will speed up the image download operation on VM hosts. - When each VM host converts the image locally, the resulting raw images are not identical, as their checksums differ. By distributing a 'raw' image, we can ensure that all VM hosts have the exact same image file.
- Loading branch information