The migrate-to-ol switch, measured: AlmaLinux 10.2 transforming in place into Oracle Linux 10.2 (full record)
What you will learn
Section titled “What you will learn”A complete success record of the official migrate-to-ol script: AlmaLinux 10.2 switching to Oracle Linux 10.2 in place, with zero reinstalls and zero data loss. A bonus: the cloned VM’s three network traps — each cost more time than the migration itself.
Prerequisites: confirm the support matrix
Section titled “Prerequisites: confirm the support matrix”curl -sL https://raw.githubusercontent.com/oracle/migrate-to-ol/main/migrate-to-oracle-linux.sh | grep -c "almalinux:10"# 1 ← almalinux:8|9|10 are in the support matrixNote: GitHub direct connections fail in this network environment (curl 000) — the script was relayed through the local machine + an SSH stdin pipe into the VM (3682 lines, passing bash -n syntax validation).
The three network traps (learn them first)
Section titled “The three network traps (learn them first)”The measured troubleshooting order (each cost real time):
- guest-exec disabled:
qm agent pingworks butqm guest execis refused — the qemu-ga policy defaults to disallowing exec (consistent with the existing alma work-line record). The fix path: go through SSH rather than agent exec; - An intranet without internet: the clone source sits on vmbr2 (the isolated 192.168.2.x net) with gateway 192.168.2.1 unreachable (the source machine equally offline). Fix: hot-add
--net1 virtio,bridge=vmbr0on PVE, reboot so eth1 gets 192.168.50.95 by DHCP, and remove the dead routeip route del default via 192.168.2.1; - A static IP without a gateway: PVE cloudinit’s
ipconfig0 ip=x.x.x.x/24delivers only the address —ip route add default via <gw> dev eth0adds it by hand (or include the gw parameter in ipconfig0).
Executing the migration (one command)
Section titled “Executing the migration (one command)”/tmp/migrate.sh -y # run under nohup in the background, zero manual intervention throughouttail -f /var/log/migrate.logThe measured flow (segment by segment in the log):
INFO: + rpm -qa *release* *repos* *gpg > …/release-packages.before ← the four-piece inventory snapshotINFO: installing Oracle Linux release packagesINFO: + dnf install oraclelinux-release-el10 …(enabling the five ol10_* repos)…MIGRATE-EXIT-0The before/after comparison:
| Item | Before | After |
|---|---|---|
| os-release | AlmaLinux 10.2 | Oracle Linux Server 10.2 |
| Package count | 380 | 392 |
| Kernel | 6.12.0-211.64.1.el10_2 (RHCK) | 6.12.0-208.112.5.el10uek (UEK default) |
Post-reboot verification
Section titled “Post-reboot verification”reboot# after the rebootcat /etc/os-release # ID="ol" VERSION="10.2"uname -r # 6.12.0-208.112.5.el10uek.x86_64systemctl is-active sshd # active (network/IP unchanged; the business is unaware)The migration switches the default kernel to UEK (Oracle’s factory decision — see the dual-kernel page); RHCK remains and can be switched back. First things after migrating: verify the business services and audit the package-count difference (dnf history against the .before snapshot).
The script’s boundary (an honest note)
Section titled “The script’s boundary (an honest note)”- The official README states: a community project, not an Oracle-supported product — rehearse on a snapshot/clone before a production migration (this page’s measurement was exactly that clone machine);
- Data disks and application configuration are untouched, but “the application is compatible with OL” is a separate question — the script handles only the distribution replacement;
- Before migrating, verify that your critical dependency packages are available in the target distribution: the site’s migration mapping (data from pkgseek.com, covering 55 common server packages in Alma/Rocky 10 official repos);
- Migrations from RHEL-subscription machines have licensing boundaries; unbind first, then switch.
Evidence and limits on this page
Section titled “Evidence and limits on this page”- Measured: the full Alma 10.2 → OL 10.2 flow (an E3 run record, including before/after os-release/kernel/package counts);
- Not measured: the CentOS 7 two-hop path (needs a CentOS 7 source machine — see the CentOS 7 upgrade page) and RHEL source-machine scenarios;
- Sources: the migrate-to-ol repository, Oracle’s migration blog.