This guide is prepared for Container VPS services that come with OpenVZ 7 virtualization. Since these services come with the 3.x kernel version, it is possible to upgrade the Ubuntu 16.04 version to Ubuntu 18.04. It is recommended to make the upgrade on a fresh Ubuntu 16.04 OS installation, as the more customizations are done, the higher the chance for failure.
Warning:
Before making any changes, back up any required information from the VPS.
Steps to Upgrade
Check Kernel Version:
uname -r
The output should show the Linux 3.x kernel version.
Update Current Packages:
apt update && apt upgrade
Install Update Manager Core Tool:
apt install update-manager-core
Start the Upgrade:
do-release-upgrade
Agree with the first request to enable alternate SSH ports. Proceed with the upgrade details based on your preferences. You will be requested to enter a network interface name for IPv6 usage. The interface is "venet0". If you do not agree with the automatic reboot at the end of the configuration, you will need to reboot at the first opportunity.
Check the Version:
lsb_release -a
This should show the following output:
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic