Skip to content

feat: add Amazon Linux 2023 KVM image template#4630

Closed
bonifaido wants to merge 1 commit intolima-vm:masterfrom
bonifaido:amazonlinux
Closed

feat: add Amazon Linux 2023 KVM image template#4630
bonifaido wants to merge 1 commit intolima-vm:masterfrom
bonifaido:amazonlinux

Conversation

@bonifaido
Copy link
Copy Markdown
Contributor

This pull request introduces a new amazonlinux.yaml template for configuring Amazon Linux 2023 (AL2023) virtual machines with Lima. I managed to boot Amazon Linux only with reverese-sshfs, but since sshfs is hidden in the SPAL repo of Amazon Linux we need a provision script at boot time to get it installed.

@bonifaido bonifaido force-pushed the amazonlinux branch 4 times, most recently from 3d344b9 to 981c8c6 Compare February 25, 2026 16:07
@AkihiroSuda
Copy link
Copy Markdown
Member

@AkihiroSuda AkihiroSuda added the duplicate This issue or pull request already exists label Feb 25, 2026
Comment thread templates/amazonlinux.yaml Outdated
set -euo pipefail

sudo dnf install -y spal-release
sudo dnf install -y fuse-sshfs
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread templates/amazonlinux.yaml Outdated
Comment thread templates/amazonlinux.yaml Outdated
Comment thread templates/amazonlinux.yaml Outdated
# fuse-sshfs is not included in EL
extrapkgs="${extrapkgs} fuse-sshfs"
# Amazon Linux 2023 (AL2023) needs 'spal-release' to provide fuse-sshfs
if grep -q "Amazon Linux.*2023" /etc/system-release; then
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Isn't this likely true for future Amazon Linux 20XX releases too?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should be a symlink to amazonlinux-2023.yaml.
See other templates.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should be a symlink to amazonlinux-2023.yaml.
See other templates.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

templates/README.md has to be updated too

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If you took this code from #4454 (@electricalgorithm), show their credit in the commit message

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

tbh I wasn’t aware of that PR, the script was made in that manner

Signed-off-by: Nandor Kracser <bonifaido@gmail.com>
@electricalgorithm
Copy link
Copy Markdown

I believe SPAL should not be enabled by default. Do we need to use the fusefs backend?

@bonifaido
Copy link
Copy Markdown
Contributor Author

my current issue is that after moving out the provision part from the yaml file the mounts stopped working, I’m looking into that

@bonifaido
Copy link
Copy Markdown
Contributor Author

Okay, I just checked out the other PR and it has some work there regarding the virtiofs based mounting as well, and in these terms it looks more advanced than this one. Happy to help out there (no need to have two competing PRs for the same feature). I have random issues with virtiofs, sometimes it works, sometimes it not, I found reverese-sshfs quite stable for amazonlinux and it served my needs well, thus I added the provision script that way. But I will possibly close this PR if the other one gets back to life.

@AkihiroSuda
Copy link
Copy Markdown
Member

Let me close this PR, in favor of #4454

Thank you anyway for heading this up

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

Labels

duplicate This issue or pull request already exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants