upgrading Alma/Rocky/RHEL LXC container

cohenma

New Member
Nov 24, 2025
4
0
1
Has anyone successfully upgraded the OS of a RHEL-based LXC container? I have tried using leapp, but the tool won't work because grub isn't installed (which it shouldn't be, since this is an LXC container).

Ideally, I'd like to upgrade my container from AlmaLinux 9 to 10 -- is there any way to do this outside of recreating the container (and I'd probably pick Debian or something that makes for an easier upgrade)
 
i updated a Rocky9 LXC to 10 without issues ( taking into account an issue i have resolved after upgrade where when using dns-settings in PM to 'use host')
-> this is documented somewhere a bit down.

- Glowsome
Can you please link me to the documentation?
 
Last edited:
yeah, leapp (the tool described in that link) doesn't work since it errors out when it detects GRUB isn't installed.
 
I had luck with
Code:
dnf update --releasever=10.1 --allowerasing --nogpgcheck
, but since this is not recommended by AlmaLinux, please take care and make sure to backup your container before upgrading.
 
I had luck with
Code:
dnf update --releasever=10.1 --allowerasing --nogpgcheck
, but since this is not recommended by AlmaLinux, please take care and make sure to backup your container before upgrading.
In essence neither RHEL, nor Rocky recommend (or suggest/support) upgrading in this way, so if Alma follows the same scheme then yeah.
Unsupported, but if it works .. it counts ;)