Skip to content

Examples: Be able to use CentOS / RHEL / other operating systems for podman machine init / start #1638

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

Closed
cdrage opened this issue Mar 8, 2023 · 9 comments

Comments

@cdrage
Copy link
Contributor

cdrage commented Mar 8, 2023

Is your feature request related to a problem? Please describe

When I run podman machine, maybe I'd like to try using RHEL or other operating systems. Instead, I'm stuck using fedora-coreos / running the default podman machine operating system.

Describe the solution you'd like

We should be able to provide instructions / alternatives to try out Podman Desktop against RHEL, RHED, etc.

Describe alternatives you've considered

No response

Additional context

No response

@cdrage cdrage added the kind/feature 💡 Issue for requesting a new feature label Mar 8, 2023
@cdrage cdrage changed the title Examples: Be able to show non-fedora-coreos podman machine examples Examples: Be able to show non fedora-coreos podman machine examples Mar 8, 2023
@cdrage cdrage changed the title Examples: Be able to show non fedora-coreos podman machine examples Examples: Be able to use CentOS / RHEL / other operating systems for podman machine init / start Mar 8, 2023
@ashley-cui
Copy link

I'd do this with caution, because at the current moment the Podman team can only support FCOS (eventually maybe RHELCOS), and doing a demo on this may give of the impression that we can support other OS's.

@baude
Copy link

baude commented Mar 8, 2023

agree. of all the things required rn, are there not significantly more impactful and import things to do ?

@afbjorklund
Copy link
Contributor

afbjorklund commented May 19, 2023

You can use the existing Lima provider, to run other operating systems - such as Fedora (Cloud)

The instance name is currently hardcoded ("podman-lima"), but you can use any template://

EDIT: In v1.0.1, the hardcoded instance name was changed from "podman-lima" to just "podman".

limactl start template://podman

EDIT: In v1.1.0, it is not hardcoded anymore - but available in preferences


If you choose another template (than podman), you have to install podman on the machine yourself

You can see how podman does it: https://github.com/lima-vm/lima/blob/master/examples/podman.yaml

And follow the upstream podman instructions: https://podman.io/docs/installation#installing-on-linux

limactl start --name podman template://centos-stream

@afbjorklund
Copy link
Contributor

afbjorklund commented May 30, 2023

Lima

Using CentOS Stream instead of the default Fedora Cloud, causes the image download to be twice as big:

475M	https://download.fedoraproject.org/pub/fedora/linux/releases/38/Cloud/x86_64/images/Fedora-Cloud-Base-38-1.6.x86_64.qcow2
1.1G	https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-GenericCloud-9-20230523.0.x86_64.qcow2

I'm not sure why this is, but it is still smaller than CoreOS (the download is 627M, but decompresses to 1.6G!)

646M	.local/share/containers/podman/machine/qemu/fedora-coreos-38.20230806.2.0-qemu.x86_64.qcow2.xz
1,6G	.local/share/containers/podman/machine/qemu/podman-machine-default_fedora-coreos-38.20230918.2.0-qemu.x86_64.qcow2

No public templates available for RHEL

But these distributions are available:

  • AlmaLinux template://almalinux

  • Rocky Linux template://rocky


There is also Alpine.

There is an Alpine image available as an alternative, it weighs in at 98M - but it doesn't do rootless (no systemd)

https://github.com/afbjorklund/lima/blob/nerdcore/examples/alpine-podman.yaml (currently slightly out of date)

It is just the template://alpine, with the latest podman pre-installed from the latest distro package available:

https://pkgs.alpinelinux.org/packages?name=podman&branch=edge&repo=community (apk add podman)

EDIT: Here are some ready-to-run examples, using the regular ISO:

https://github.com/afbjorklund/lima/tree/alpine-examples/examples

@afbjorklund

This comment was marked as outdated.

@afbjorklund
Copy link
Contributor

More examples, for Ubuntu and AlmaLinux: (you can probably make your own "remix")

https://github.com/afbjorklund/lima/tree/podman-desktop/examples/podman-desktop

Copy link
Contributor

github-actions bot commented Jul 5, 2024

This issue has been automatically marked as stale because it has not had activity in the last 6 months. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!

Copy link
Contributor

github-actions bot commented Jan 2, 2025

This issue has been automatically marked as stale because it has not had activity in the last 6 months. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!

Copy link
Contributor

github-actions bot commented Feb 1, 2025

This issue has been automatically closed because it has not had any further activity in the last 30 days. Thank you for your contributions!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 1, 2025
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✔️ Done in Podman Desktop Planning OLD Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

6 participants