Summary:
Converts a Container configuration data from the Agent format to the Virtuozzo Containers native format.
Request specification:
Name |
Min/Max |
Type |
Description |
|
|
|
|
|
|
|
|
|
|
Container configuration data in the Agent format. To obtain the Container configuration from Agent, use the |
|
|
|
|
|
Returns:
Name |
Min/Max |
Type |
Description |
|
|
Virtual configuration data in the Virtuozzo Containers native format. The appropriate subtype of |
Description:
Parallels Agent uses its own data structures for the Virtuozzo Containers configuration data (the subtypes of venv_configType
). You use this data structures when creating, examine, or modifying a Virtuozzo Container through Parallels Agent API. The Virtuozzo Containers software stores the same configuration data differently. It uses the bash style configuration data formatting, which is a set of values in the VARNAME="value-string"
form. The get_native_config
call allows to convert the Agent version of the configuration data to the native Virtuozzo Containers formatting.
Example:
In the following example, we pass the Agent version of the Container configuration data to the get_native_config
call.
Input
<packet xmlns:ns1="http://www.swsoft.com/webservices/vzl/4.0.0/protocol" xmlns:ns2="http://www.swsoft.com/webservices/vza/4.0.0/vzatypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<target>vzaenvm</target>
<data>
<vzaenvm>
<get_native_config>
<virtual_config xsi:type="ns2:venv_configType">
<on_boot>0</on_boot>
<qos>
<id>cpuunits</id>
<hard>1000</hard>
</qos>
<qos>
<id>dgramrcvbuf</id>
<hard>133120</hard>
<soft>133120</soft>
</qos>
<qos>
<id>diskinodes</id>
<hard>440000</hard>
<soft>400000</soft>
</qos>
<qos>
<id>diskspace</id>
<hard>11141120</hard>
<soft>10485760</soft>
</qos>
<qos>
<id>kmemsize</id>
<hard>17107200</hard>
<soft>15582912</soft>
</qos>
<!-- The rest of the configuration parameters
are omitted for brevity -->
</virtual_config>
</get_native_config>
</vzaenvm>
</data>
</packet>
Output
The Virtuozzo native configuration data is received as a block of base64-encoded data. After you decode it, the result will look similar to the following example:
VERSION="2"
ONBOOT="no"
AVNUMPROC="40:40"
NUMPROC="65:65"
NUMTCPSOCK="80:80"
NUMOTHERSOCK="80:80"
VMGUARPAGES="6144:2147483647"
KMEMSIZE="2752512:2936012"
TCPSNDBUF="319488:524288"
TCPRCVBUF="319488:524288"
OTHERSOCKBUF="132096:336896"
DGRAMRCVBUF="132096:132096"
OOMGUARPAGES="6144:2147483647"
LOCKEDPAGES="32:32"
SHMPAGES="8192:8192"
PRIVVMPAGES="22528:24576"
NUMFILE="2048:2048"
NUMFLOCK="100:110"
NUMPTY="16:16"
NUMSIGINFO="256:256"
DCACHESIZE="1048576:1097728"
PHYSPAGES="0:2147483647"
NUMIPTENT="128:128"
DISKSPACE="1048576:1153434"
DISKINODES="200000:220000"
QUOTATIME="0"
CPUUNITS="1000"
OFFLINE_MANAGEMENT="yes"
ARCH="x86"
PLATFORM="linux"
SLMMEMORYLIMIT="33521664:33521664"