Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not convert the image if it's already in .raw format #1060

Merged
merged 1 commit into from Feb 2, 2024

Conversation

enescakir
Copy link
Member

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.

@enescakir enescakir self-assigned this Dec 29, 2023
rhizome/host/lib/vm_setup.rb Outdated Show resolved Hide resolved
Base automatically changed from download-location to main February 2, 2024 10:00
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.
@enescakir enescakir merged commit 906ad3d into main Feb 2, 2024
5 checks passed
@enescakir enescakir deleted the boot-image-raw branch February 2, 2024 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants