-
Notifications
You must be signed in to change notification settings - Fork 693
Allow RHEL-like distros below version 8 #720
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
Conversation
This was rejected before, I think (support for CentOS 7) |
Yeah, you're right (unfortunately). I'm closing this one. I will just fork lima and use on my own repo since the maintainer doesn't want keep support for CentOS 7 and older Fedora that don't have dnf yet. I don't see any motivation to do not support CentOS below 8, since any, Ubuntu, basically is supported (including older and outdated/EOL Ubuntu) just because they use apt-get and apt-get is supported. Anyway. |
I don't think using "yum" was the main issue, but yeah. The main reason was that CentOS 7 is like Ubuntu 14.04 and it was too old... There was support for CentOS 8 and akin to Ubuntu 18.04, until it was discontinued (replaced in Lima with the RHEL clones Rocky/Alma) I do have some Stream 8 and Stream 9 examples posted. They just weren't that useful upstream, the Fedora 28 branch was better handled by the stable OS and the Fedora 34 branch was outdated for no good reason. Might as well look forward to Fedora 36, and also Ubuntu 22.04 ? |
@alisson276 if you really want CentOS 7 to be supported, I think opening a new issue and describing why would be helpful |
Never mind. I solved my problem doing this:
My use case is very particular, we still use CentOS7 in our company (we have a lot of work to migrate everything to AlmaLinux yet) and some people started to use Macs with Apple M1 chip, so we don't have vagrant and virtualbox available. Then we use lima to create test virtual machines, actually. |
Note that this might break when #287 is implemented (run provisioning scripts after mounts have been set up). |
Thank you for the warning @jandubois , actually I have a:
in my provision code exactly to wait for this... It will break my machines 😭 |
I'm reopening my PR with the hope of I will be listened and this can be implemented in the boot scripts🙏 |
I've added a comment to #287 that we should support both kinds of provisioning scripts: the ones we have right now, that run as part of cloud-init, and the new kind that would be triggered by the hostagent once the mounts are setup. |
Side note: EPEL needs to be enabled also for EL9, since it doesn't have "fuse-sshfs" in the regular repositories
Separate issue, though. Not convinced that modifying the standard config is a good thing, but... Maybe config can be set up, to only install sshfs ? (from EPEL) Or disable EPEL after install, but that will also block updates to sshfs |
Please open a separate issue/PR |
Looks good but please squash commits (https://www.git-tower.com/learn/git/faq/git-squash) |
I thought the plan was to ignore CentOS Stream and use Rocky etc instead ? Just wondered if it was OK to add third-party repos like this, to the config ? Even if EPEL is a "special" PPA |
We can unofficially support Stream (in another PR) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Should I add the centos7.yaml? |
The file name should be like |
19ec31e
to
638e05f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
@alisson276 do you think EPEL should be left enabled ? Or should the VM only have the OS repos ? |
I don't see as a problem let it enabled. Most of the "good" packages come from there since EL, in general, has a more conservative approach, but I can set it to disable if you prefer. I can add a |
I wasn't sure, that is why I asked. I recall having two different templates, one "centos" and one "epel"... So was more wondering what VM users would expect ? If it was up to me, I would probably have installed but disabled. And use it with But I haven't used CentOS actively in years, either 🙂 |
Just to be more conservative I've set to disabled |
Still LGTM but please remove this |
I think it's ok now. |
No, it is not; it has other commits merged in, and then squashed, e.g. 45c98e7. See also the merge conflicts in I would recommend to rebase the PR on latest |
Signed-off-by: Alisson R. de Oliveira <alisson.oliveira@farfetch.com>
Sorry, I didn't check the "Files changed". I just rebased based on the upstream. Is this right now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
This MR allows you create VMs using CentOS 7
My centos7.yaml file: