This guide is specifically designed for Container VPS services utilizing OpenVZ 7 virtualization. Since these services operate on a 3.x kernel version, it's possible to upgrade Ubuntu 16.04 to Ubuntu 18.04. It's strongly recommended to perform the upgrade on a fresh installation of Ubuntu 16.04. The more customizations you've made, the higher the risk of encountering issues during the upgrade.
Important:
Before proceeding, ensure you back up any critical data from your VPS.
1. Verify the Kernel Version:
uname -r
The output should indicate a Linux 3.x kernel version.
2. Update Current Packages:
apt update && apt upgrade
3. Install the Update Manager Core Tool:
apt install update-manager-core
4. Start the Upgrade Process:
do-release-upgrade
During the process, agree to the initial prompt about enabling alternate SSH ports. Continue with the upgrade, following the instructions based on your preferences. You'll be asked to provide a network interface name for IPv6—use "venet0". If you choose not to reboot automatically at the end, make sure to reboot as soon as possible.
- Verify the Upgrade:
lsb_release -a
The output should resemble the following:
