Skip to content

templates: Add Debian and Fedora riscv64 images #3461

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shenki
Copy link
Contributor

@shenki shenki commented Apr 22, 2025

The Debian image is the latest from unstable as there's no release yet for riscv64.

Fedora is a Fedora 42 cloud image. It's not clear how often this will be updated, so the URL may become stale at some point.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be just merged into fedora.yaml

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be just merged into fedora.yaml

I assume you meant _images/fedora.yaml.

I wonder why we wouldn't use the "Cloud-Base-Generic" image though, like we do for the other archs: https://dl.fedoraproject.org/pub/alt/risc-v/release/42/Cloud/riscv64/images/Fedora-Cloud-Base-Generic-42.20250414-8635a3a5bfcd.riscv64.qcow2

If it doesn't work for some reason, then we should add a comment about that.

I also haven't checked if the image updater supports this new image URL? We need to be careful that the image updater doesn't start updating only some of the images in a particular template.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be just merged into fedora.yaml

I assume you meant _images/fedora.yaml.

I wonder why we wouldn't use the "Cloud-Base-Generic" image though, like we do for the other archs: https://dl.fedoraproject.org/pub/alt/risc-v/release/42/Cloud/riscv64/images/Fedora-Cloud-Base-Generic-42.20250414-8635a3a5bfcd.riscv64.qcow2

If it doesn't work for some reason, then we should add a comment about that.

We can use that one instead.

I also haven't checked if the image updater supports this new image URL? We need to be careful that the image updater doesn't start updating only some of the images in a particular template.

I tried the update script and it doesn't update anything at this point. The path doesn't match (/pub/alt) and the metadata is at https://dl.fedoraproject.org/pub/alt/imagelist-alt instead of https://dl.fedoraproject.org/pub/fedora/imagelist-fedora.

I assume as riscv64 becomes a fully supported architecture in Fedora, the images will eventually end up in the normal location.

@shenki shenki force-pushed the add-riscv64-templates branch 2 times, most recently from fce83fd to 196cd78 Compare April 23, 2025 00:34
@shenki shenki changed the title templates: Add Debian and Fedora riscv64 to experimental templates: Add Debian and Fedora riscv64 images Apr 23, 2025
@@ -7,6 +7,9 @@ images:
arch: aarch64
digest: sha256:e10658419a8d50231037dc781c3155aa94180a8c7a74e5cac2a6b09eaa9342b7

- location: https://dl.fedoraproject.org/pub/alt/risc-v/release/42/Cloud/riscv64/images/Fedora-Cloud-Base-Generic-42.20250414-8635a3a5bfcd.riscv64.qcow2
Copy link
Member

@AkihiroSuda AkihiroSuda Apr 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to update fedora-41.yaml too?

Also wonder if we can cover alt/risc-v in https://github.com/lima-vm/lima/blob/master/hack/update-template-fedora.sh

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you wan to update fedora-41.yaml too?

I didn't realise we had 41. Yep, I'll test that it boots and add it.

Also wonder if we can cover alt/risc-v in https://github.com/lima-vm/lima/blob/master/hack/update-template-fedora.sh

I spent a few minutes trying to hack it in, but I didn't get it working. I'm not as much of a shell wizard as rhe author of those scripts!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Debian image is the latest from unstable as there's no release yet
for riscv64.

The Fedora 41 and 42 cloud images hosted at the 'alt' location. It's not
clear how often this will be updated, so the URL may become stale at
some point.

Signed-off-by: Joel Stanley <jms@tenstorrent.com>
@shenki shenki force-pushed the add-riscv64-templates branch from 196cd78 to f22ea20 Compare April 23, 2025 05:36
@shenki
Copy link
Contributor Author

shenki commented Apr 23, 2025

Fedora 41 booted fine, so I've added that.

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.

3 participants