Applicable to:
- SolusVM
Question
How to create a custom OpenVZ 7 template for SolusVM?
Answer
SVM_WARN: OS of the template has to be one from supported by OpenVZ 7.
-
Connect to OpenVZ 7 node over SSH.
-
Prepare a source container - install/remove necessary packages and utilities.
-
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 -
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. -
Create cache from the template - for example above:
# /usr/libexec/ovz-template-converter --verbose /vz/template/cache/centos-8-x86_64-solusvm.tar.gz
-
Upload created template to Master node, add it to SolusVM and sync with needed OpenVZ 7 node.
-
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
Comments
0 commentsPlease sign in to leave a comment.