How To Install OpenVZ On Ubuntu 20.4
1. Add OpenVZ Repository
Switch to root user:
First, we will add OpenVZ Repository.
Import OpenVZ GPG key:
2. Install OpenVZ kernel
Update software sources using command:
Now, install OpenVZ kernel:
Or, if you still have i686:
3. Setting up Kernel parameters
Make sure you have added the following kernel parameters before logging into vz kernel.
Add the following lines:
5. Install OpenVz usage statistics tools
The following tools to be installed to gather the OpenVZ usage statistics.
While creating VMs, make sure you have the same subnet on both physical and virtual machine. If you want to use different subnet, you have to edit /etc/vz/vz.conf file,
Find and uncomment the line:
And, change it to: