Unable to upgrade from RHEL6 to RHEL7

Latest response

Getting this error when running "preupg --riskcheck --verbose" command before upgrading.

preupg.risk.EXTREME: You have the GNOME desktop environment session as an option in your X11 session manager. The GNOME desktop environment as a part of the 'Desktop' yum group underwent a serious redesign in its user interface as well as in underlying technologies in Red Hat Enterprise Linux 7.
preupg.risk.EXTREME: You have the KDE desktop environment session as an option in your X11 session manager. The KDE desktop environment as a part of the yum group 'KDE Desktop' underwent a redesign in its user interface as well as in underlying technologies in Red Hat Enterprise Linux 7.

I've tried removing both KDE and Gnome through yum. Even after removing them the preupg check still gives me the same error message. So I tried rebooting and then the system just froze when it tried to restart. Guessing something is trying to launch the desktop environment and there is no longer anything there to run. It just freezes solid and I'm unable to even ping or ssh to the server.

Any advice appreciated.

Responses

Hi Jay,

Upgrading from one major release to the next might work (in some ways) or not - but it is definitely not recommended.
You would have to expect serious problems and issues being hidden under the hood which may appear sooner or later.
Especially when you have additional desktop environments in use ... please perform a fresh installation of RHEL 7.6 ! :)

Regards,
Christian

Hi Jay,

Roll back server to pre-upgrade state (if possible). In-place upgrade of RHEL 6 to 7 with GNOME/KDE is not recommended.

Regarding preupg errors, KB976053 advises switching to runlevel 3, remove desktop environment packages then retry upgrade with redhat-upgrade-tool. Upgrading from RHEL 6 to RHEL 7 on Gnome Desktop Environment failed

Thanks guys. With all the issues found in the preupgrade tool, I'm pretty convinced at this point you both are right. I did find the --force command when running the redhat-upgrade-tool command that will go ahead and force the upgrade despite the recommendations of the preupg tool. I'm trying it on a cloned test system atm and will see how that works out. I figure probably not well, but can't hurt to see how it works out for the time being. Thanks much for the responses.

Jay

You're welcome, Jay ! Forcing the upgrade might make things even worse ... but well, just for testing that'd be okay. :)

Regards,
Christian

So Jay, (or anyone landing here)

Make sure to totally back up all data you care about on the server in a rational way so that if this goes poorly, you can build a current Red Hat system and restore it with the data you have. RHEL 6 expires in 2020 (Red Hat 6 expires without extended support in November 2020, RHEL 7 in 2024). Of course that's why you're attempting an upgrade. However, it is pretty risky to do this kind of upgrade.

Also, seriously consider building a Red Hat 7 system from scratch because while you can ... possibly go from RHEL 6 to 7 using the upgrade method, it is messy, unreliable, and with a workstation will likely go very poorly.

wish you well

Regards

RJ