How to Migrate from Centos8 to Rocky8

Backup Centos 8

We started the migration process with backup. We do have nightly backups, but before upgrading, we made a snapshot to revert back when something goes wrong. In other words, keep verified backups.

Login to the server

ssh -i <your-key-name> centos@server-floating-ip

Following are the steps to migrate to Rocky 8 from CentOS Stream, CentOS, Alma Linux, RHEL, or Oracle Linux.

Download Migration script

curl -o

Set permission

sudo chmod u+x

Execute the script

sudo ./ -r


After finishing you will see the below message


Done, please reboot your system.
A log of this installation can be found at /var/log/migrate2rocky.log


Run one of the following commands to verify your OS was migrated properly

cat /etc/*-release

The result would look something like this file


sudo hostnamectl

The result would look something like this file