You can retrieve the Container configuration information by executing the simple vzaenvm/get_info
request as follows:
<packet version="4.0.0" id="2">
<target>vzaenvm</target>
<data>
<vzaenvm>
<get_info>
<eid>a5961178-14d2-40cc-b1e7-41b562a2f4c6</eid>
<config/>
</get_info>
</vzaenvm>
</data>
</packet>
The eid
parameters specifies the Server ID of the Container. The output will contain the complete Container information including its Parent Server ID (the ID of the Hardware Node), the status information (running, stopped, etc.), the alert information if any alerts are currently raised on the Container, and the Container configuration data. The following example is an output with most of the QoS parameters omitted for brevity:
<packet priority="0" version="4.0.0">
<origin>vzaenvm</origin>
<data>
<vzaenvm>
<env xsi:type="envType">
<parent_eid>89e27960-97b8-461f-902f-557b4b16784b</parent_eid>
<eid>3e25fee2-1163-4336-9e74-8b8097936d47</eid>
<status xsi:type="ns3:env_statusType">
<state>6</state>
</status>
<alert>0</alert>
<config xsi:type="env_configType"/>
<virtual_config xsi:type="venv_configType">
<hostname>myhost</hostname>
<name>Mycomputer</name>
<offline_management>1</offline_management>
<on_boot>1</on_boot>
<os_template>
<version>20061020</version>
<name>redhat-as3-minimal</name>
</os_template>
<ve_root>/vz/root/$VEID</ve_root>
<ve_private>/vz/private/$VEID</ve_private>
<ve_type>
<veid>0</veid>
<type>1</type>
</ve_type>
<qos>
<id>avnumproc</id>
<hard>40</hard>
</qos>
<qos>
<id>cpuunits</id>
<hard>1000</hard>
</qos>
<qos>
<id>dcachesize</id>
<hard>1097728</hard>
<soft>1048576</soft>
</qos>
<!-- ......... ->
<veid>101</veid>
<type>virtuozzo</type>
<offline_service>vzpp</offline_service>
<offline_service>vzpp-plesk</offline_service>
<os xsi:type="ns3:osType">
<platform>Linux</platform>
<kernel>2.6.9-023stab033.6</kernel>
<version>20061020</version>
<name>redhat-as3-minimal</name>
</os>
<net_device xsi:type="ns4:net_vethType">
<id>venet0</id>
<ip_address>
<ip>10.100.23.203</ip>
</ip_address>
<ns4:host_routed/>
</net_device>
<address>
<ip>10.100.23.203</ip>
</address>
</virtual_config>
</env>
</vzaenvm>
</data>
</packet>