How to Move Ubuntu 22.04 to a New Ubuntu 24.04 VPS
By Small Corner Labs · · 2 min read
To move an Ubuntu 22.04 workload to a different VPS running Ubuntu 24.04, start with a clean 24.04 destination. Install compatible runtimes there, restore data and selected configuration, then verify the app before changing DNS. Keep the 22.04 server available until the new one is stable.
What should you reinstall and what should you copy?
Reinstall the web server, language runtime and database packages that support Ubuntu 24.04. List the packages and service versions on Ubuntu 22.04 and review third-party repositories and modules before reusing them. Bring application files, uploads and selected service configuration. Install target packages through the destination package manager and keep its OS libraries and package database.
Check reverse-proxy modules, environment-file paths, PHP or Node.js versions, systemd units and database extensions. For each item, record the compatible version to install and the exact data or configuration to restore.
What does Server Cloner upgrade mode handle?
Upgrade mode checks for matching CPU architecture and a compatible newer release of the same distribution. It inventories packages, attempts to install supported software on the destination and transfers selected data paths. It has handlers for supported database services it detects, including MySQL or MariaDB and PostgreSQL. Read the Preflight report for paths or database services that need a separate migration.
Use database-native backup and restore for workloads the report does not cover, including externally managed databases. For extensions and plugins, confirm the target versions before restoring and inspect restore warnings before treating the database as ready.
What should you test before changing DNS?
Validate the service configuration on Ubuntu 24.04, then test one request that reads real migrated data, one permitted write in an isolated test path, and any scheduled tasks. Test HTTPS using the production hostname. Plan a final sync during a write pause and switch DNS after the new host passes the checks.
Quick checklist
- Record service versions and extra repositories on 22.04.
- Install compatible dependencies on the 24.04 host.
- Restore data and check warnings, extensions and jobs.
- Verify the replacement with the intended hostname before cutover.
Frequently asked questions
Can I copy the entire Ubuntu 22.04 filesystem over Ubuntu 24.04?
Use a clean 24.04 installation when moving between these releases. Copy application data and selected configuration onto compatible packages. Overlaying the full 22.04 filesystem can replace the package database, libraries and configuration that belong to 24.04.
Can I use upgrade mode to move from x86-64 to ARM?
Server Cloner upgrade mode requires matching CPU architectures. For an x86-64 to ARM move, rebuild or install ARM-compatible software on the destination, then migrate portable files and database exports with a separate tested plan.
