Skip to content
Search Oracle Linux

    Browse this documentation

    The migrate-to-ol switch, measured: AlmaLinux 10.2 transforming in place into Oracle Linux 10.2 (full record)

    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.

    Terminal window
    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 matrix

    Note: 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):

    1. guest-exec disabled: qm agent ping works but qm guest exec is 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;
    2. 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=vmbr0 on PVE, reboot so eth1 gets 192.168.50.95 by DHCP, and remove the dead route ip route del default via 192.168.2.1;
    3. A static IP without a gateway: PVE cloudinit’s ipconfig0 ip=x.x.x.x/24 delivers only the address — ip route add default via <gw> dev eth0 adds it by hand (or include the gw parameter in ipconfig0).
    Terminal window
    /tmp/migrate.sh -y # run under nohup in the background, zero manual intervention throughout
    tail -f /var/log/migrate.log

    The measured flow (segment by segment in the log):

    INFO: + rpm -qa *release* *repos* *gpg > …/release-packages.before ← the four-piece inventory snapshot
    INFO: installing Oracle Linux release packages
    INFO: + dnf install oraclelinux-release-el10 …(enabling the five ol10_* repos)
    …
    MIGRATE-EXIT-0

    The before/after comparison:

    ItemBeforeAfter
    os-releaseAlmaLinux 10.2Oracle Linux Server 10.2
    Package count380392
    Kernel6.12.0-211.64.1.el10_2 (RHCK)6.12.0-208.112.5.el10uek (UEK default)
    Terminal window
    reboot
    # after the reboot
    cat /etc/os-release # ID="ol" VERSION="10.2"
    uname -r # 6.12.0-208.112.5.el10uek.x86_64
    systemctl 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 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.
    • 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.