How to create a custom OpenVZ 7 template for SolusVM?

Have more questions? Submit a request

Applicable to:

  • SolusVM


How to create a custom OpenVZ 7 template for SolusVM?


SVM_WARN: OS of the template has to be one from supported by OpenVZ 7.

  1. Connect to OpenVZ 7 node over SSH.

  2. Prepare a source container - install/remove necessary packages and utilities.

  3. Stop, mount and enter mount point of the container

    # vzctl stop VMID && vzctl mount VMID && cd /vz/root/VMID/

    VMID can be found in SolusVM > Virtual Servers > VMID column.

    Where to find VMID


  4. Create the template, exit and unmount the container:

    # tar -cvzpf /vz/template/cache/OS-version-arch-customname.tar.gz . && cd && vzctl umount VMID

    SVM_WARN: The format of the template has to follow the scheme above. For example - if OS of VPS is CentOS 8 x64_86, then the template filename will be centos-8-x86_64-solusvm.tar.gz.
    Dot at the end is intended - do not miss it.

  5. Create cache from the template - for example above:

    # /usr/libexec/ovz-template-converter --verbose /vz/template/cache/centos-8-x86_64-solusvm.tar.gz

  6. Upload created template to Master node, add it to SolusVM and sync with needed OpenVZ 7 node.

  7. Create the same cache from the template on OpenVZ 7 nodes where template was uploaded:

    # /usr/libexec/ovz-template-converter --verbose /vz/template/cache/centos-8-x86_64-solusvm.tar.gz

Articles in this section

Was this article helpful?
0 out of 0 found this helpful



Please sign in to leave a comment.