After you've selected the configuration sample and the OS template, you have to populate the Container configuration structure with these and other values. The most commonly used and important parameters are described in the following table:
Parameter |
Description |
|
The sample configuration ID. |
|
The OS template name. |
|
The Container computer name. |
|
The Container hostname. |
|
Virtuozzo-level Container ID. This can be any integer number greater than 100. |
|
Start the Container automatically on host system boot. |
|
Enable the "offline-management" feature for the Container. |
|
The Container IP address. In the example that will follow, we will assign the IP address to the default venet0 virtual network adapter. The venet0 adapter is created automatically for every Container. We could also create our own virtual network adapter inside a Container and customize it according to our needs. For more info on how to create and configure virtual ethernet adapters, see the |
The rest of the configuration parameters (such as disk quota, CPU parameters, etc.) can also be customized but it should only be done by the experienced users. In this example, we will set all of the parameters from the table above. We will not modify any of the advanced parameters so their values will be taken from the sample configuration file. The configuration portion of the XML request that will create our Container will look like this:
<config>
<name>My-CT10</name>
<hostname>Host-110</hostname>
<base_sample_id>c607f3c6-16b3-214a-9079-8113fdfa1630</base_sample_id>
<veid>110</veid>
<on_boot>true</on_boot>
<offline_management>true</offline_management>
<os_template>
<name>redhat-as3-minimal</name>
</os_template>
<net_device>
<id>venet0</id>
<ip_address>
<ip>10.17.3.121</ip>
</ip_address>
<host_routed/>
</net_device>
</config>
You can use your own name, hostname, veid, and IP address of course.