Skip to content

examples: Add AlmaLinux to Lima #630

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

Merged
merged 2 commits into from
Feb 7, 2022

Conversation

reishoku
Copy link
Contributor

@reishoku reishoku commented Feb 5, 2022

This PR contains:

  • example YAML files of AlmaLinux VM

I've confirmed on my machine that AlmaLinux works with Lima.


Signed-off-by: KOSHIKAWA Kenichi <reishoku.misc @ pm.me>

- location: "/tmp/lima"
writable: true
firmware:
legacyBIOS: true
Copy link
Member

Choose a reason for hiding this comment

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

I guess we need this for Alma too?

# Hint: If QEMU crashes with error "vmx_write_mem: mmu_gva_to_gpa XXXXXXXXXXXXXXXX failed" on Intel Mac,
# try setting environment variable QEMU_SYSTEM_X86_64="qemu-system-x86_64 -cpu Haswell-v4"
# https://bugs.launchpad.net/qemu/+bug/1838390

@@ -248,7 +248,7 @@ Alternatively, you may also directly ssh into the guest: `ssh -p 60022 -i ~/.lim
Yes, it should work, but not regularly tested on ARM (due to lack of CI).

#### "Can I run non-Ubuntu guests?"
Alpine, Arch Linux, Debian, Fedora, openSUSE, and Rocky are also known to work.
AlmaLinux, Alpine, Arch Linux, Debian, Fedora, openSUSE, and Rocky are also known to work.
Copy link
Member

Choose a reason for hiding this comment

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

We have a similar list in the top of README.md too

@@ -242,7 +242,7 @@ Limaにはデータの喪失を引き起こすバグが含まれているかも
はい。動くでしょう。ただ、ARM Macでの定期的なテストはなされていません(CIがないため)。

#### "Ubuntu以外のゲストを動かすことはできますか?"
Alpine, Arch Linux, Debian, Fedora, openSUSE, Rocky が動くことが知られています。[`./examples/`](./examples/)を見てください。
AlmaLinux, Alpine, Arch Linux, Debian, Fedora, openSUSE, Rocky が動くことが知られています。[`./examples/`](./examples/)を見てください。
Copy link
Member

Choose a reason for hiding this comment

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

Japanese translation should be a separate commit.
Please update the revision/date in the header too.

@reishoku reishoku force-pushed the reishoku/examples-almalinux branch from 9a306c6 to 2b54c0d Compare February 5, 2022 09:12
Signed-off-by: KOSHIKAWA Kenichi <[email protected]>
@reishoku reishoku force-pushed the reishoku/examples-almalinux branch 2 times, most recently from ac0d670 to 19eef5f Compare February 5, 2022 09:21
README.ja.md Outdated
@@ -1,4 +1,4 @@
This is an *unofficial* translation of [`README.md` (revision fce1b2fad8, 2022-01-28)](https://github.com/lima-vm/lima/blob/fce1b2fad85762d72d2e4d37e4ab211f570fa2d1/README.md).
This is an *unofficial* translation of [`README.md` (revision 4c7376a, 202200-05)](https://github.com/lima-vm/lima/blob/4c7376a9a7ac54514611a39ea720eb9798bfe973/README.md).
Copy link
Member

Choose a reason for hiding this comment

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

typo

@AkihiroSuda AkihiroSuda added the guest/el8 Guest: CentOS 8 / Rocky Linux 8 / Alma Linux 8 label Feb 5, 2022
Signed-off-by: KOSHIKAWA Kenichi <[email protected]>
@reishoku reishoku force-pushed the reishoku/examples-almalinux branch from 19eef5f to ec50a46 Compare February 5, 2022 09:23
@AkihiroSuda
Copy link
Member

Bikeshedding: the filename should be alma.yaml or almalinux.yaml?

So far, the only YAML with the linux suffix is archlinux.yaml because arch often means CPU archs such as x86_64.

@AkihiroSuda AkihiroSuda requested a review from jandubois February 6, 2022 08:14
@reishoku
Copy link
Contributor Author

reishoku commented Feb 6, 2022

comment: According to AlmaLinux's official website, the distro name is "AlmaLinux", not "Alma Linux". That's why I used "almalinux" for filename.

@afbjorklund
Copy link
Member

It would help with some background information on what the Linux distribution is, and what it offers...

It seems to be yet another RHEL clone, but I guess that was to be expected when CentOS died ?

AlmaLinux OS is 1:1 binary compatible with RHEL®

Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®.

https://en.wikipedia.org/wiki/Red_Hat_Enterprise_Linux_derivatives

Maybe they can be grouped or labelled or something.

NAME="AlmaLinux"
VERSION="8.5 (Arctic Sphynx)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.5"
PLATFORM_ID="platform:el8"
PRETTY_NAME="AlmaLinux 8.5 (Arctic Sphynx)"

NAME="Rocky Linux"
VERSION="8.5 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.5"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.5 (Green Obsidian)"

I would expect them to behave "similar".

@afbjorklund
Copy link
Member

afbjorklund commented Feb 6, 2022

Side note:
Confusingly, both CentOS 8.5 and CentOS 8-Stream have the same identifiers.

NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8"

NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"

This is going to be lots of fun, trying to sort those out. So lima didn't even try...

@jandubois
Copy link
Member

It seems to be yet another RHEL clone, but I guess that was to be expected when CentOS died ?

Yes, they are both trying to be the replacement for CentOS. Rocky is headed by the original creator of CentOS while AlmaLinux is under control of a foundation created (and sponsored) by CloudLinux.

They both want to be the same thing, and they should be extremely similar by design.

Copy link
Member

@jandubois jandubois left a comment

Choose a reason for hiding this comment

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

Seems fine to me, but there are unaddressed comments from @AkihiroSuda. Not sure what to make of this, as the PR was approved after making those comments; so not sure if they should still be addressed or not.

@afbjorklund
Copy link
Member

afbjorklund commented Feb 6, 2022

They both want to be the same thing, and they should be extremely similar by design.

Fedora LTS 😀

I made some table in some other context, but it should be very similar w.r.t. the RPMS.

Fedora CentOS
fc12 el6
fc18 el7
fc28 el8
fc34 el9

We decided to drop both el7 and el9, and focus on el8 - which is the current release.

@AkihiroSuda AkihiroSuda merged commit ce152d3 into lima-vm:master Feb 7, 2022
@AkihiroSuda AkihiroSuda added this to the v0.8.3 milestone Feb 7, 2022
@afbjorklund
Copy link
Member

Wonder why the alma image is so much smaller than the rocky (and centos) image ?

file format: qcow2
virtual size: 10 GiB (10737418240 bytes)
disk size: 530 MiB
cluster_size: 65536
file format: qcow2
virtual size: 10 GiB (10737418240 bytes)
disk size: 1.36 GiB
cluster_size: 65536

Almost a GB in difference, but the compression and the rpm package list look similar ?

@afbjorklund
Copy link
Member

According to AlmaLinux's official website, the distro name is "AlmaLinux", not "Alma Linux"

Most ridiculous thiing I have heard, but I guess they "inherited" it from CloudLinux (without space).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guest/el8 Guest: CentOS 8 / Rocky Linux 8 / Alma Linux 8
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants