WARNING: Steps below is an example of how to create Ubuntu 18.04 custom template for OpenVZ 7 server. It should be applied on the the SolusVM administrator own risk and tested before applying on the production server. SolusVM Technical Support does not take any responsibility in case of any malfunctioning.

Build own RPM from OpenVZ 7 SRPM source file

Connect to any test CenOS 7 server. It is recommended not to use this server for production purposes.

Now it is possible to provision the containers based on Ubuntu 18.04 template using native OpenVZ tools like vzctl create. However, to make it happen via SolusVM it is required to create corresponding tar.gz file.

Build tar.gz template file from already existing container

Create a new container using OpenVZ native tools:

# vzctl create 999999 --ostemplate ubuntu-18.04-x86_64

Change directory to the container's one:

# cd /vz/private/999999/

After that create a tarball:

# tar -cvzpf /vz/template/cache/ubuntu-18.04-x86_64.tar.gz .

Warning: Dot at the end of the command query above is a mandatory after space