When creating a Virtuozzo Container, you must choose a sample configuration for it. Virtuozzo Containers software comes with a number of sample configurations, which are automatically installed on the host server. To retrieve the list of the available configurations, use the env_samplem/get_sample_conf
request as shown in the following example:
<packet version="4.0.0" id="23">
<target>env_samplem</target>
<data>
<env_samplem>
<get_sample_conf/>
</env_samplem>
</data>
</packet>
The output will contain all of the available configurations with the complete set of parameters for each one (the output will be very long). You can review the parameters and their values but what you really need is the configuration name and ID. The following example shows the typical output. The QoS (quality of service) and some of the other configuration parameters are omitted for brevity in our example. The id
(sample configuration ID), name
(configuration name), and version
(the platform, architecture, and virtualization technology information) are highlighted in bold in the example for your convenience:
<packet xmlns:ns2="http://www.swsoft.com/webservices/vzl/4.0.0/types" xmlns:ns1="http://www.swsoft.com/webservices/vzl/4.0.0/env_samplem" xmlns:ns3="http://www.swsoft.com/webservices/vza/4.0.0/vzatypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="17c46e7e9f0t6df1r68c" time="2007-09-10T10:03:43+0000" priority="0" version="4.0.0">
<origin>env_samplem</origin>
<target>vzclient122-4fce28dd-0cd3-1345-bb94-3192b940fb90</target>
<dst>
<director>gend</director>
</dst>
<data>
<env_samplem>
<sample_conf xsi:type="ns2:sample_confType">
<env_config xsi:type="ns3:venv_configType">
<offline_management>1</offline_management>
<architecture>i386</architecture>
<os xsi:type="ns2:osType">
<platform>linux</platform>
<name/>
</os>
<slm_mode>all</slm_mode>
<type>virtuozzo</type>
</env_config>
<id>c607f3c6-16b3-214a-9079-8113fdfa1630</id>
<name>slm.256MB</name>
<vt_version>
<platform>Linux</platform>
<architecture>i386</architecture>
<vt_technology>virtuozzo</vt_technology>
</vt_version>
</sample_conf>
<sample_conf xsi:type="ns2:sample_confType">
<env_config xsi:type="ns3:venv_configType">
<on_boot>0</on_boot>
<offline_management>1</offline_management>
<architecture>i386</architecture>
<os xsi:type="ns2:osType">
<platform>linux</platform>
<name/>
</os>
<type>virtuozzo</type>
</env_config>
<id>01cb5525-d247-3f45-aa47-0d19eb8285b5</id>
<name>confixx</name>
<vt_version>
<platform>Linux</platform>
<architecture>i386</architecture>
<vt_technology>virtuozzo</vt_technology>
</vt_version>
</sample_conf>
<sample_conf xsi:type="ns2:sample_confType">
<env_config xsi:type="ns3:venv_configType">
<offline_management>1</offline_management>
<architecture>i386</architecture>
<os xsi:type="ns2:osType">
<platform>linux</platform>
<name/>
</os>
<slm_mode>all</slm_mode>
<type>virtuozzo</type>
</env_config>
<id>c2692640-065c-644c-94cc-1dceb42e16c5</id>
<name>slm.2048MB</name>
<vt_version>
<platform>Linux</platform>
<architecture>i386</architecture>
<vt_technology>virtuozzo</vt_technology>
</vt_version>
</sample_conf>
<sample_conf xsi:type="ns2:sample_confType">
<env_config xsi:type="ns3:venv_configType">
<on_boot>0</on_boot>
<offline_management>1</offline_management>
<architecture>i386</architecture>
<os xsi:type="ns2:osType">
<platform>linux</platform>
<name/>
</os>
<type>virtuozzo</type>
</env_config>
<id>b048bcc2-c80c-6d42-9e6d-ffe808d6a83c</id>
<name>basic</name>
<vt_version>
<platform>Linux</platform>
<architecture>i386</architecture>
<vt_technology>virtuozzo</vt_technology>
</vt_version>
</sample_conf>
</env_samplem>
</data>
</packet>
After executing this request, select the sample configuration that you would like to use and extract its ID from the response message. You will use it later as an input parameter in the request that will create the Container.