Bug 2203192 - Fedora Images on Azure
Summary: Fedora Images on Azure
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: Changes Tracking
Version: 39
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Major Hayden 🤠
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: F39Changes
TreeView+ depends on / blocked
 
Reported: 2023-05-11 13:35 UTC by Ben Cotton
Modified: 2023-08-16 08:29 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ben Cotton 2023-05-11 13:35:51 UTC
This is a tracking bug for Change: Fedora Images on Azure
For more details, see: https://fedoraproject.org/wiki/Changes/Fedora_Images_On_Azure

Azure is a massive public cloud and offering an official Fedora Cloud image there would expand Fedora's user base. It also gives Fedora Cloud users more options when selecting public clouds.

If you encounter a bug related to this Change, please do not comment here. Instead create a new bug and set it to block this bug.

Comment 1 Major Hayden 🤠 2023-05-16 14:39:23 UTC
Images are rolling out now: https://koji.fedoraproject.org/koji/buildinfo?buildID=2201154

However, they are dynamic VHDs and not fixed VHDs. I used these commands to fix the image and upload it:

qemu-img convert -f vpc -O raw Fedora-Cloud-Base-Azure-Rawhide-20230516.n.0.x86_64.vhd Fedora-Cloud-Base-Azure-Rawhide-20230516.n.0.x86_64.raw
qemu-img convert -f raw -O vpc -o subformat=fixed,force_size Fedora-Cloud-Base-Azure-Rawhide-20230516.n.0.x86_64.raw Fedora-Cloud-Base-Azure-Rawhide-20230516-fixed.n.0.x86_64.vhd

However, there's a new error about the size:

The VHD for disk 'Fedora-Cloud-Base-Azure-Rawhide-20230516-fixed.n.0.x86_64.vhd' with blob Fedora-Cloud-Base-Azure-Rawhide-20230516-fixed.n.0.x86_64.vhd has an unsupported virtual size of 5120.2265625 MB. The size must be a whole number in (MBs)."

Comment 2 Major Hayden 🤠 2023-05-16 14:50:22 UTC
Ah here's the right path from Azure's docs:

  https://learn.microsoft.com/en-us/azure/virtual-machines/linux/create-upload-generic#resizing-vhds

Comment 3 Major Hayden 🤠 2023-05-16 21:50:43 UTC
Opened an upstream issue with imagefactory to figure out how we can get the code updated:

  https://github.com/redhat-imaging/imagefactory/issues/453

The existing HyperV code seems to do about 1/3 of what we need. I'm not sure if we need a new piece of code for Azure or if we can add to what's already there for HyperV.


Note You need to log in before you can comment on or make changes to this bug.