• No results found

Creating Container Configuration Sample

If you are not satisfied with the Container configuration sample files shipped with Virtuozzo Containers 4.0, you can create your own ones. Parallels Management Console provides a special

wizard for creating Container configuration sample files. The Create Sample Configuration

wizard will guide you through the process and gather all the necessary information. In order to invoke the wizard, click the name of the Hardware Node where you wish to create the sample

file and, in the right pane, follow the Create Container Sample Configuration link at the

Hardware Node dashboard.

The Create Configuration Sample Wizard opens:

Figure 85: Management Console - Choosing Container Configuration Sample

On the first step of the wizard, you will be asked to choose a variant of the Container configuration sample file creation. You can choose between two options:

ƒ You can set the Container sample configuration manually. Select the Set Container sample

configuration manually radio button if there are no sample Container configurations that can be used as the basis for the new one. In this case you should define all resources parameters one by one.

ƒ You can use one of Container configuration samples that are shipped with Virtuozzo

Containers 4.0 or have been already created by you. You can make use of this option if your new configuration sample differs from the existing one only slightly and can be created by adjusting some of its parameters. The information on the sample files shipped with Parallels

Virtuozzo Containers 4.0 is provided in the Managing Container Resources Configuration

section (on page 156). All the available configuration samples are listed in the table below the Use one of Container configuration samples option. Just select the Use one of Container

configuration samples radio button, click on the needed sample, and proceed with adjusting it.

Next the wizard will prompt you to specify the basic configuration sample file parameters:

In this window you should choose a name for the sample file. You can type any alphanumeric identifier (without spaces) you consider reasonable for this file and that will be used to refer to the Container sample configuration. Besides, you can enter any relevant comment on the file; it

will be displayed within the list of Container sample configurations. Click Next.

Next, you are to choose the OS template that will be used as the basis for creating Containers. OS templates are used to create new Containers. In Virtuozzo Containers 4.0, you can use only the Windows Server 2003 OS template to create a Container. If you do not want the Container

sample to predefine any specific OS template, select none in the Name column. Click Next to

proceed after the selection.

Then, you can choose application templates to add to Containers which will be created from this sample configuration. All application templates available on your Hardware Node are listed in

the table of the Select Application Templates window. Typical examples of application templates

are msde, openssh, etc. After selecting the necessary application templates, click Next.

Note: The Select Application Templates screen is displayed only if you chose the OS template on the previous step of the wizard.

Figure 87: Management Console - Defining Resources Parameters

In this window you can adjust the following resources parameters:

ƒ CPU usage parameters (see page 140);

ƒ disk space quota parameters (see page 137), and

ƒ a number of system resource control parameters (see page 145).

To configure a resource parameter, expand the corresponding group and double-click the

parameter you wish to adjust. After you have set the necessary parameters, click Next.

If you are creating your new sample on the basis of an existing Container configuration sample, have configured some resource parameter values, and now wish to reset them to the values from

the original configuration sample, click the curved arrows over the Resource counters table.

On the next step, you can specify a number of network settings for the configuration sample file:

Figure 88: Management Console - Specifying Network Parameters for Sample

In this window you can use the provided Add, Remove, and Edit buttons for the corresponding

operations on Container search domains and DNS servers.

In the Configure Offline Services for Container Configuration Sample window, you can determine

whether the Container created on the basis of the given configuration sample can be directly managed by its Administrator from any browser at its own IP address using different Virtuozzo Tools (e.g., Parallels Power Panel). You can also specify what offline services will be available for this Container. Detailed information on offline management functionality is provided in the

Configuration Container Offline Management section (on page 308).

The next window of the Create Configuration Sample wizard allows you to configure the

network shaping parameters allowing you to to control what network bandwidth a Container based on the configuration sample being created will receive for outgoing traffic:

Figure 89: Management Console - Specifying Traffic Shaping Parameters

Detailed information on how to configure the network shaping settings is provided in the

Managing Network Bandwidth section (on page 149).

On the next step, you can specify the Terminal Services mode in which the Container created on the basis of the given configuration sample will be set right after its creation. For detailed

information on Terminal Services, please turn to the Configuring Terminal Services Inside

Container subsection (on page 45).

Finally, you will be prompted to configure the automatic boot mode. Select the Yes radio button

if you want the Containers based on the configuration sample being created to start

automatically on the Hardware Node boot. To start the Containers manually, select No.

The last screen summarizes all the data you have provided on the previous steps. If you are

satisfied with the entered information, click Finish to start creating the Container sample

configuration file. Otherwise, you can return to the previous steps by clicking the Back button

Now, you can use the new Container sample configuration file to create Containers on its basis.

It will be displayed on the first screen of the Create Containers wizard together with the

configuration files shipped with Virtuozzo Containers 4.0.

Copying Container Configuration Sample

Parallels Management Console provides you with the opportunity to quickly disseminate one or more sample Container files over several Hardware Nodes, or simply copy it/them to another Node. This is particularly useful when you have created a custom configuration file on one of the Nodes and wish to use it on the other Nodes as well.

To copy a sample Container file, you should perform the following operations:

1 Select the Container Samples item in the Hardware Node main tree.

2 Right-click the sample configuration file and choose Tasks -> Copy to Another Hardware

Node:

Figure 90: Management Console - Copying Container Sample

3 In the displayed window:

ƒ Select the Hardware Node(s) where you want to copy the files (you might use the Select

All and Deselect All buttons to this effect).

ƒ Select the action that will be performed in case a configuration sample file with the same

4 Click the Copy button. In the Copying Status column, you may view the result of the operation.

5 If the copy operation has completed successfully, click Close to close the window. If not,

click the Details button to learn more about the error(s) that occurred during the operation

process. This is the only case when this button becomes active.

If you take default Virtuozzo sample configuration files, modify them, and copy to another Node preserving the default names, chances are that files with the same names already exist on the destination Node. To resolve this conflict, you are supposed to choose at the bottom of the window one of the three corresponding options, which best fits your needs.

Saving and Uploading Configuration Sample to/from Local Computer

Related documents