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

feature request - add Alpine Linux cloud image to images.toml #27

Open
makergamer opened this issue Sep 24, 2024 · 1 comment
Open

feature request - add Alpine Linux cloud image to images.toml #27

makergamer opened this issue Sep 24, 2024 · 1 comment

Comments

@makergamer
Copy link

Please consider adding Alpine Linux to the images.toml considering how light, fast, and audited it is.

The challenge is which images to include in the images.toml :

An interesting observation is at https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/cloud/ from where the cloud files are served, there is a "generic" which is not listed on the Cloud Image webpage selectors or listing. The "generic" might be optimal as its x86_64 & aarch64, uefi, and cloud-init ONLY.

(BTW, beside "vm" there's also "metal" releases for all for those interested.)

@chrboe
Copy link
Collaborator

chrboe commented Sep 25, 2024

We have actually toyed around with alpine + virter before. A few notes:

  1. You want the nocloud cloud image. For example: https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/cloud/nocloud_alpine-3.20.3-x86_64-bios-cloudinit-r0.qcow2
  2. Alpine only configures an alpine user, not root. So you need to tell virter that.
virter image pull alpine https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/cloud/nocloud_alpine-3.20.3-x86_64-bios-cloudinit-r0.qcow2
virter vm run --id 100 --user alpine --wait-ssh alpine
virter vm ssh alpine-100

This works for me.

The issue with the alpine user is what is preventing us from adding alpine to the "official" registry. Without the --user argument, you would not be able to ssh to the machine, which would probably confuse users.

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

No branches or pull requests

2 participants