Skip to content

Add RISC-V support#29

Open
peeweep wants to merge 1 commit into
teemtee:mainfrom
peeweep:init-riscv64
Open

Add RISC-V support#29
peeweep wants to merge 1 commit into
teemtee:mainfrom
peeweep:init-riscv64

Conversation

@peeweep

@peeweep peeweep commented Jun 7, 2026

Copy link
Copy Markdown

No description provided.

@github-project-automation github-project-automation Bot moved this to backlog in planning Jun 10, 2026
@therazix therazix moved this from backlog to review in planning Jun 10, 2026
@thrix thrix self-requested a review June 23, 2026 22:34
@thrix thrix self-assigned this Jun 24, 2026

# RISC-V image not released
if arch == "riscv64":
return "https://dl.fedoraproject.org/pub/alt/risc-v/release/42/Cloud/riscv64/images/Fedora-Cloud-Base-Generic-42.20250911-2251ba41cdd3.riscv64.qcow2"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@peeweep isn't there a way to not hardcode the URL here, at least find the latest image somehow or similar?

Comment thread testcloud/config.py
DEBIAN_RELEASE_MAP = {"10": "buster", "11": "bullseye", "12": "bookworm"}
DEBIAN_LATEST = "12"
DEBIAN_RELEASE_MAP = {"10": "buster", "11": "bullseye", "12": "bookworm", "13": "trixie"}
DEBIAN_LATEST = "13"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I consider this change unexpected to the RISC-V support. Please update the MR description with the reason for this change.


def get_debian_image_url(version: str, arch: str) -> str:
arch_map = {"x86_64": "amd64", "aarch64": "arm64", "ppc64le": "ppc64el"}
arch_map = {"x86_64": "amd64", "aarch64": "arm64", "ppc64le": "ppc64el", "riscv64": "riscv64"}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

README.md should be updated also

cpu=(
"<cpu mode='host-passthrough' check='none'/>"
if self.kvm
else "<cpu mode='custom' match='exact'><model>rva23s64</model></cpu>"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would it make sense to be more conservative here? e.g. use rather rv64 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: review

Development

Successfully merging this pull request may close these issues.

3 participants