I have a CentOS 8.5 server that I wish to migrate but it is in an air gapped network (no internet connection). It has been patched to the latest 8.5 updates but I only see the migration script to get everything online. I used rsync with a mirror to download everything AlmaLinux8 and Elevate on an external USB drive and I created all my repos pointing to before mentioned updates.
I used the “ELevate Offline Guide” to a point…
The dnf update with my previous CentOS8 repos updated my system
After I disabled this repo and put the AlmaLinux8 and ELevate repo i did a “dnf update” and it did in fact update again all of my el8 packages
The “dnf install -y leapp-upgrade leapp-data-almalinux” worked
The leapp preupgrade did ran and at first gave me a target_user error so I rebooted
Repeated the leapp-preupgrade and it runs but now the error is “scan_source_kernel”
What am I missing? I cannot deploy the almalinux.sh and I’m pretty sure I downloaded all AppStream, BaseOS, extras and plus repos to my external drive. Do I need another repo besides the ones I mentioned?
Risk Factor: high (error)
Title: Unable to identify package providing the booted kernel.
Summary:
Key: 46f76f6124b5537e5dfd0e6c250d3f42c8a97691
Risk Factor: high
Title: Packages from unknown repositories may not be installed
Summary: 1 packages may not be installed or upgraded due to repositories unknown to leapp:
python3-systemd (repoid: almalinux8-baseos)
Remediation: [hint] In case the listed repositories are mirrors of official repositories for RHEL (provided by Red Hat on CDN) and their repositories IDs has been customized, you can change the configuration to use the official IDs instead of fixing the problem. You can also review the projected DNF upgrade transaction result in the logs to see what is going to happen, as this does not necessarily mean that the listed packages will not be upgraded. You can also install any missing packages after the in-place upgrade manually.
Key: 9a2b05abf8f45fd7915e52542887bb334bb218ea
Oh, you are going to migrate from CentOS8 to AlmaLinux8. Please use almalinux-deploy.sh but not ELevate.
follow the guide at Migration Guide | AlmaLinux Wiki
where: Packages - folder with corresponded repository all packages repodata - folder with repository metadata
Note, it mandatory you download almalinux-release-latest-8.x86_64.rpm and RPM-GPG-KEY-AlmaLinux-8 from Index of /almalinux/ and place them into the root of /opt
I had my external drive mounted at /run/media/root/LinuxUpdates and I ran updates form here without issue. I tried what you stated from /opt but its giving me the following error:
“Error: unknown option --local-repo=file///opt”
I have everything under /opt/8/ and the external drive is mounted to the /opt/8 directory as well. Is there something I’m missing?