Resolution
In case you are using Parallels Infrastructure Manager (PIM) please make sure that you have the recent backup of your PIM infrastructure, as described in the article How to backup and restore Parallels Infrastructure Manager.You may create Service Container on a Parallels Virtuozzo Containers hardware node using 'vzsveinstall' utility:
# vzsveinstall -D DISTRIB_DIR -s SERVICE_CT_IP where
- DISTRIB_DIR - path to Virtuozzo distribution directory hierarchy on a server. F.e. if you have the Virtuozzo distributive on your server in the directory /root/Rel400 then DISTRIB_DIR should be /root/Rel400/;
- SERVICE_CT_IP - IP address to be assigned to Service Container;
In case you have downloaded Virtuozzo distributive already (example for 64-bit PVC 4.0) as file "virtuozzo-4.0.0-${build_version}-x86_64.sfx", please extract it in the following way:
# mkdir -p /vz/full_distr
# bash /path/to/virtuozzo-4.0.0-${build_version}-x86_64.sfx -d /vz/full_distr --extractYou may create Service Container then using this command (make sure old Service Container #1 does not exist):
# vzsveinstall -v -D /vz/full_distr -s SERVICE_CT_IPPlease refer to man page on 'vzsveinstall' utility for additional information.
Please note - OS template 'redhat-as3-minimal' must be installed on a hardware node and cached before Service Container may be created. If you have no that template on a node please do the following:
- install OS template 'redhat-as3-minimal', corresponding RPM package is located in the folder 'virtuozzo/SVE' inside Virtuozzo distrib (in Virtuozzo 3.x it is the folder 'HW/SVE');
- create OS template cache using 'vzpkgcache' command on a node.
Please make sure you have the latest version of OS template 'redhat-as3-minimal' installed on hardware node before Service Container re-creation. The latest versions of the 'minimal' OS template are the following:
Virtuozzo 3.0: 20050622
Parallels Virtuozzo Containers 4.0: 20080630
You may run 'vzup2date', and update your node. For manual update please find 'minimal' template in /vz/vzup2date directory and install it using 'rpm -Uhv path_to_minimal_template_rpm_package' command, e.g. for 64-bit PVC 4.0:
# rpm -Uhv /vz/vzup2date/4.0.0/TU-4.0.0-438/redhat-as3-minimal-x86_64-p5nfs-tmpl-4.0.1-3.swsoft.x86_64.rpm
# vzpkgcacheIf Virtuozzo server has been updated since the very first release (using 'vzup2date' utility or manually) then you need to apply all needed updates to the Service Container as well. Updates downloaded by 'vzup2date' utility are usually located under /vz/vzup2date/3.0.0/TU-3.0.0-* dirs on a Virtuozzo server. You may apply them to the Service Container using 'vzsveupgrade' utility using this simple script:
# find /vz/vzup2date -path "*/$(awk '{print $NF}' /etc/virtuozzo-release)/*/virtuozzo-tools*$(uname -i)*" -printf "%h\n" |sort -u |xargs -rn1 vzsveupgrade -dIf you need to re-create Service Container then you may destroy the existing one using 'vzctl destroy 1' command (container must be stopped first), then create it from the scratches and apply available updates as it is described above.
Keywords: Service container, create, recreate, vzsveinstall, vzsveupgrade, redhat-as3-minimal svps sve serviceve servicevps