According to the official Virtuozzo 7 information, the proper and reliable way to use OpenVZ 7 virtualization is to deploy the server using Virtuozzo 7 ISO image from https://download.openvz.org/virtuozzo/releases/7.0/x86_64/iso/
If due to whatever reason there is no way to deploy the server using ISO, there is also a way to convert CentOS 7 to VZ7. Such scenario is not fully supported by SolusVM and should be performed on the server's owner risk
Preparing partitioning on CentOS 7 node for conversion
Before proceeding with installing vzkernel, it is required to prepare the server to match the requirements of Virtuozzo 7. The main part here is to have a dedicated EXT4 partition mounted on /vz.
Mount a specifically created partition or a logical volume (it's a preferable way, it will be easier to extend it if required). The file system on the partition/volume must be ext4. Do not forget to add the corresponding mount point to /etc/fstab.
Here are the sample steps on how to achieve that in case there is a second drive /dev/sdb. Note that steps are just an example.
Overall The result should be similar to the following one:
Type must be ext4 and it must be me mounted on /vz.
Doing the conversion
Once /vz partition is prepared, we can go ahead with the conversion.
Install python sub-processes, the latest OpenVZ 7 release, Epel repository, prctl utility, OpenVZ kernel and ploop packages:
Install vzlinux release:
Move CentOS repositories to another location to avoid package conflicts in future:
Re-install json-c and jansson packages from virtuozzo repositories
Re-install nss packages
Install the necessary packages:
If the action above fails with the error "Protected multilib versions: zlib-1.2.7-18.vl7.i686 != zlib-1.2.7-19.el7_9.x86_64" downgrade zlib package
For OVH servers - update grub configuration:
Reboot the node:
Now, enable ploop kernel modules:
Update conversion script:
Install EZ packages:
There is a probability that mariadb-libs package is installed already on the server from CentOS 7 repositories. It will conflict with mariadb-* packages upon installation of SolusVM Master software. Check this as below and remove the package prior to installation of SolusVM Master software:
- Check if the package is installed
# rpm -qa | grep mariadb-libs
- Remove the package
# rpm -e --nodeps --justdb mariadb-libs
The conversion is done. Feel free to try installing SolusVM on it:
In case you did everything right, you will see the following screen on CentOS 7: