Comments (7)
Or, on a system with the released version 0.25 package installed, another option is to create a file named rocky-8-x86_64.cfg
with this content in the /usr/share/convert2rhel/configs/
folder.
from convert2rhel.
Hi @khanhibus, the latest released version of convert2rhel 0.25 does not allow the Rocky 8 conversion yet. For that, you need to install a development version of convert2rhel from the Fedora Copr https://copr.fedorainfracloud.org/coprs/g/oamg/convert2rhel/. You can do that by:
# yum-config-manager --add-repo https://copr.fedorainfracloud.org/coprs/g/oamg/convert2rhel/repo/epel-8/group_oamg-convert2rhel-epel-8.repo
# yum install -y "convert2rhel*main*" # a package built out of the main development branch
from convert2rhel.
Hi @bocekm,
Thanks for your responses.
I tried the development version of convert2rhel and it worked for the most part. As I am using a local repo server to distribute RHEL 8 packages, I am only downloading the newest versions of packages. The convert2rhel command threw an error that it wanted to install kernel-4.18.0-348.12.2.el8_5.x86_64, which is older than what is currently available from my local repo (kernel-4.18.0-372.9.1.el8.x86_64).
I had to download the older kernel package on my repo server, at which point the convert2rhel task completed successfully. Something to note is that after the first conversion attempt failed, it deleted the /etc/system-release file. Running the convert2rhel command again failed because that file was missing. Luckily this was VM that I snapshotted prior to the conversion attempt, but for others that have a similar use case to mine, be mindful that if this process fails on your first attempt, especially if running on bare metal with no backups.
from convert2rhel.
The convert2rhel command threw an error that it wanted to install kernel-4.18.0-348.12.2.el8_5.x86_64, which is older than what is currently available from my local repo (kernel-4.18.0-372.9.1.el8.x86_64).
Don't you happen to have a log file containing this error? I wonder what was the reason for it. Since you use a local repo server I expect you used the --no-rhsm
and --enablerepo
options. And in that case when installing the RHEL kernel, convert2rhel invokes a yum command like the following so it should install whatever kernel is available in your local repo.
# yum install -y --disablerepo="*" --releasever=8.6 --setopt=module_platform_id=platform:el8 --enablerepo=<your_local_server_repo> kernel
Regarding the deleted /etc/system-release
file. Unfortunately the error you've bumped into happened after the "point of no return" about which the tool warns the user by printing WARNING - The tool allows rollback of any action until this point
. Indeed, a full system backup is strongly recommended before performing the conversion.
from convert2rhel.
@bocekm, I was using the following command to invoke the upgrade:
convert2rhel --no-rhsm --enablerepo=rhel-8-for-x86_64-baseos-rpms --enablerepo=rhel-8-for-x86_64-appstream-rpms --restart -y
I have not tried to convert any other Rocky Linux systems since I opened this issue but will be sure to upload any new logs should I convert another system in the future and encounter the same error.
from convert2rhel.
@bocekm, I did another convert2rhel conversion from Rocky Linux 8.6 to RHEL 8.6 and encountered the same issue with the conversion process not wanting to install the latest kernel. Here are the relevant log lines, as requested:
[06/01/2022 10:03:22] TASK - [Convert: Prepare kernel] ******************************************
Installing RHEL kernel ...
[06/01/2022 10:03:22] FILE - Calling command 'yum install -y --disablerepo=* --releasever=8.6 --setopt=module_platform_id=platform:el8 --enablerepo=rhel-8-for-x86_64-baseos-rpms kernel'
Failed loading plugin "spacewalk": No module named 'up2date_client'
Last metadata expiration check: 0:02:36 ago on Wed Jun 1 10:00:47 2022.
Package kernel-4.18.0-348.20.1.el8_5.x86_64 is already installed.
Package kernel-4.18.0-348.23.1.el8_5.x86_64 is already installed.
Package kernel-4.18.0-372.9.1.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Conflict of kernels: One of the installed kernels has the same version as the latest RHEL kernel.
[06/01/2022 10:03:23] FILE - Calling command 'yum list -y --disablerepo=* --releasever=8.6 --setopt=module_platform_id=platform:el8 --enablerepo=rhel-8-for-x86_64-baseos-rpms --showduplicates kernel'
[06/01/2022 10:03:24] FILE - Calling command 'yum install -y --disablerepo=* --releasever=8.6 --setopt=module_platform_id=platform:el8 --enablerepo=rhel-8-for-x86_64-baseos-rpms kernel-4.18.0-348.12.2.el8_5'
Failed loading plugin "spacewalk": No module named 'up2date_client'
Last metadata expiration check: 0:02:38 ago on Wed Jun 1 10:00:47 2022.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
kernel x86_64 4.18.0-348.12.2.el8_5 rhel-8-for-x86_64-baseos-rpms 7.0 M
kernel-core x86_64 4.18.0-348.12.2.el8_5 rhel-8-for-x86_64-baseos-rpms 38 M
kernel-modules
x86_64 4.18.0-348.12.2.el8_5 rhel-8-for-x86_64-baseos-rpms 30 M
Removing:
kernel x86_64 4.18.0-348.20.1.el8_5 @internal-baseos 0
kernel-core x86_64 4.18.0-348.20.1.el8_5 @internal-baseos 68 M
kernel-modules
x86_64 4.18.0-348.20.1.el8_5 @internal-baseos 22 M
Transaction Summary
================================================================================
Install 3 Packages
Remove 3 Packages
Total download size: 74 M
Downloading Packages:
(1/3): kernel-4.18.0-348.12.2.el8_5.x86_64.rpm 1.3 MB/s | 7.0 MB 00:05
(2/3): kernel-modules-4.18.0-348.12.2.el8_5.x86 5.5 MB/s | 30 MB 00:05
(3/3): kernel-core-4.18.0-348.12.2.el8_5.x86_64 6.7 MB/s | 38 MB 00:05
--------------------------------------------------------------------------------
Total 13 MB/s | 74 MB 00:05
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : kernel-core-4.18.0-348.12.2.el8_5.x86_64 1/6
Running scriptlet: kernel-core-4.18.0-348.12.2.el8_5.x86_64 1/6
Installing : kernel-modules-4.18.0-348.12.2.el8_5.x86_64 2/6
Running scriptlet: kernel-modules-4.18.0-348.12.2.el8_5.x86_64 2/6
Installing : kernel-4.18.0-348.12.2.el8_5.x86_64 3/6
Erasing : kernel-4.18.0-348.20.1.el8_5.x86_64 4/6
Running scriptlet: kernel-4.18.0-348.20.1.el8_5.x86_64 4/6
Erasing : kernel-modules-4.18.0-348.20.1.el8_5.x86_64 5/6
Running scriptlet: kernel-modules-4.18.0-348.20.1.el8_5.x86_64 5/6
Running scriptlet: kernel-core-4.18.0-348.20.1.el8_5.x86_64 6/6
sed: can't read /etc/system-release: No such file or directory
sed: can't read /etc/system-release: No such file or directory
Erasing : kernel-core-4.18.0-348.20.1.el8_5.x86_64 6/6
Running scriptlet: kernel-core-4.18.0-348.20.1.el8_5.x86_64 6/6
Running scriptlet: kernel-core-4.18.0-348.12.2.el8_5.x86_64 6/6
sed: can't read /etc/system-release: No such file or directory
sed: can't read /etc/system-release: No such file or directory
Running scriptlet: kernel-core-4.18.0-348.20.1.el8_5.x86_64 6/6
Verifying : kernel-4.18.0-348.12.2.el8_5.x86_64 1/6
Verifying : kernel-modules-4.18.0-348.12.2.el8_5.x86_64 2/6
Verifying : kernel-core-4.18.0-348.12.2.el8_5.x86_64 3/6
Verifying : kernel-4.18.0-348.20.1.el8_5.x86_64 4/6
Verifying : kernel-core-4.18.0-348.20.1.el8_5.x86_64 5/6
Verifying : kernel-modules-4.18.0-348.20.1.el8_5.x86_64 6/6
Installed:
kernel-4.18.0-348.12.2.el8_5.x86_64
kernel-core-4.18.0-348.12.2.el8_5.x86_64
kernel-modules-4.18.0-348.12.2.el8_5.x86_64
Removed:
kernel-4.18.0-348.20.1.el8_5.x86_64
kernel-core-4.18.0-348.20.1.el8_5.x86_64
kernel-modules-4.18.0-348.20.1.el8_5.x86_64
I believe the relevant log line is: Conflict of kernels: One of the installed kernels has the same version as the latest RHEL kernel.
The install did not fail as I already have the kernel-*-4.18.0-348.12.2.el8_5.x86_64
RPMs in my local repo, but hopefully this helps in debugging the issue.
from convert2rhel.
@khanhibus, the conversion of Rocky Linux 8.6/8.8 does not fail anymore with the current state of the main branch.
@jochapma will create a new issue to track the problem with having old kernel version installed after the conversion and post the link here.
from convert2rhel.
Related Issues (20)
- Convert 2 RHEL offline HOT 1
- centos7.4 ---> rhel7.4 HOT 3
- Disabling repositories fails if there are no repositories available through subscriptions HOT 6
- test issue
- CentOS7.4 update to RHEL7.4? HOT 1
- Feature Request: reduce timeout for the 'Checking internet connectivity' check HOT 1
- Convert2rhel failed to convert Rocky 8.9 to rhel 8.9 on Satellete server HOT 5
- `EFI::UNEXPECTED_ERROR` when `blkid -p -s PART_ENTRY_NUMBER` is empty HOT 1
- Exception on Alma/Rocky 8.9 HOT 1
- Version 9.3 not supported yet HOT 2
- Passing environment variables HOT 2
- No changes were made to the system HOT 1
- Convert failed HOT 2
- MySQL downgrade after conversion, service won't start HOT 4
- convert2rhel migration error HOT 4
- Convert2Rhel Migration from Rocky Error HOT 4
- FYI, converting from Rocky 8, issue with packages that have periods in the name HOT 2
- Support for EL9 based clones to convert to RHEL9 HOT 2
- convert2rhel silently hangs if too many (list too long) third-party packages HOT 2
- Error Message if LIST_THIRD_PARTY_PACKAGES HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from convert2rhel.