You can use the Parallels Business Automation - Standard Provider Control Center (/pcc web interface to install Virtuozzo templates. If you need to install many templates at once, you can use )/usr/sbin/hspc script. The script can be ran in the mode when it recognizes and installs all the templates from the specified directory.pkgctl.pl
The hspcpkgctl.pl script handles generic operations of the Parallels Business Automation - Standard Application
Director. Using this script the following operations can be performed:
Usage:
/usr/sbin/hspcpkgctl.pl operation operation_arguments templates_directory
To get help:
/usr/sbin/hspcpkgctl.pl help_args
hspcpkgctl.pl {-h|--help}
hspcpkgctl.pl {-V|--version}
hspcpkgctl.pl -H OPERATION
To view a fill manual:
perldoc /usr/sbin/hspcpkgctl.pl
Operations:
info - print information about OS/application template
install - install OS/application template(s) on Management Node
sync - synchronize OS/application templates with Hardware Node(s)
import - import OS/application templates from Hardware Nodes
list - list OS/application templates on Management Node
config - show XML configuration file content for given template
Arguments:
-A Process ordinary application templates only.
-D|--distrib DISTRIB Distribution name for EZ templates, like 'fedora-core-4-x86'. Note that if -the D argument is specified, only EZ templates will be processed.
-H OPERATION Show help for given OPERATION.
-O Process OS templates only.
-V|--version Show script version.
--async Do operation using Task Manager where applicable. Script completes execution after all necessary tasks are scheduled.
-d|--dir DIR Full path to directory with Virtuozzo templates.
-f|--file FILE Full path to Virtuozzo template file.
-h|--help Show usage and exit.
-n|--nodes NID1 NID2 ...IDs of Virtuozzo Hardware Nodes registered in Parallels Business Automation - Standard.
-p|--package PKG1[/VER1] PKG2[/VER2] ...Process only templates with given packages and, optionally, configuration versions. If configuration version is not specified, default value '00000000' (eight zeros) will be taken.
--plain Show plain XML config. If not specified, output will be composed of several lines in a form of 'key: value'.
-t|--tmpl_id ID1 ID2 ...Process only templates with given IDs.
-item --quiet Work quietly - do not print any status messages to standard output.
-r Process directory recursively.
-u If template in process is upgrade to some existing template, default prices will be taken from the latest one. If option is not specified, default prices will be set to zero values.
Examples:
hspcpkgctl.pl install -d /tmp/templates
Installs all templates from given directory /tmp/templates.
hspcpkgctl.pl install -f /tmp/redhat-as4-x86-ez-3.0.0-2.swsoft.noarch.rpm
Installs single EZ OS template.
hspcpkgctl.pl list
List ordinary application templates. Each line of output is tab-separated list of the following template properties: