If you have selected the From application checkbox and clicked Next in the Welcome to Virtuozzo
Template Creation Wizard window, the following window is displayed:
Figure 31: Creating Application Template - Defining VPS Settings
In the Specify VPS Settings window, you are asked to set the parameters for a Virtual Private Server to be used for creating your application template. The fields you should fill in are explained below:
In the VPS ID field, specify the ID of the Virtual Private Server where the application template is to be created. The VPS with the ID specified is automatically created by the wizard for the period necessary for making the application template and deleted after the template has been successfully created and copied to the Hardware Node. Make sure that the VPS with the ID specified in the VPS ID field does not exist on your Node. Otherwise, you will be warned with a message asking you to choose another VPS ID.
In the VPS IP address field, enter the IP address (it should be unique within your network) to be assigned to the Virtual Private Server where the application template is to be created. You should specify a valid IP address to be able to connect to your VPS via RDP at a later time.
Indicate a DNS server that this Virtual Private Server is supposed to use in the DNS servers field or select the Use DNS server of Hardware Node checkbox under the DNS server field to set the same DNS server as is used for the Hardware Node.
In the VPS Disk space limit field, type the amount of disk space the Virtual Private Server will be guaranteed to receive, in megabytes. Make sure that the size of the files you wish to use for creating the application template does not exceed the size of the specified disk space. Otherwise, a warning will be displayed notifying you that the allocated disk space is not enough for copying the application files.
Pressing the Next button displays the window where you should specify the path to the application files and the name of the template:
Figure 32: Creating Application Template - Specifying Path and Application Name
In the Application files folder field, you should enter the path to the directory where the application files are stored that will be used for creating the application template. You can also use the Browse button to the right of the Application files folder field to point to the desired directory. The directory may contain any number of files with any extensions (.exe, .vbs, .txt, etc.). The files specified in this filed will be copied to and manually installed inside the created temporary VPS at a later time.
In the Template name field, you should choose a name for the application template. You can type any alphanumeric identifier that you consider reasonable for the template and that will be used to refer to this application template.
When you are ready with specifying the template name and choosing the necessary files, press the Next button to create the Virtual Private Server whose ID you have specified in the Specify
After the VPS has been created and started, the Connect to VPS window is displayed. In this window, you are supposed to click Next to establish an RDP connection to the Virtual Private Server. This is needed to copy the source application files from the Hardware Node to the VPS where the application template will be created; later on, these source application files will be manually installed inside this VPS and the application template will be created on the basis of the installed files. After an RDP connection window is opened, minimize it and proceed with the wizard.
Note: Please do not close the RDP connection window manually.
On the Prepare to Install screen displayed after clicking Next in the previous window, just press the Next button to open the Create Template window. Now you should switch to the minimized RDP connection window and manually install your source application files that have been copied inside the Virtual Private Server. The source application files are located in the root directory of your hard drive (e.g. C:\Far_Manager). You can also customize the installed application to meet your demands; the files and registry settings of this installed and customized application will be used to create the template. Then switch back to the Create Template window and press Next.
Note: After you click Next in the Create Template window, you will be notified that your RDP connection to the temporary VPS was closed. Just click OK in the displayed message window. The last screen of the wizard helps you make the final preparations for creating the application template:
In this window, you can use the Edit registry and Edit files buttons to view and edit the registry entries and files of the installed application that the wizard will use for making the application template. After you have pressed the Next button, the application creation process is started. After a while, the Application Template Creation Completed window is displayed notifying you that your application template has been successfully made. Click Finish to exit the wizard. The template is placed to the C:\vz\Templates\__cache directory on the Hardware Node. However, before starting to use the newly created template, you should install it on the Node by means of the vzpkgdeploy utility. Please consult the vzpkgdeploy subsection of the
Reference chapter (on page 243) to learn how to deploy and install your application templates on the Node.