Product:
Search Type:

[Info] When installing templates they overwrite the path values of the container

Article ID: 5235 
Last Review: May,04 2008
APPLIES TO:
  • Virtuozzo Containers for Windows 4.0

Answer


All environment variables are stored in the registry of template when the template is created (can be edited as part of the process).

We do not current merge container and template variables when adding a template to container, we assume the path of the temp container is sufficient.We will consider a better merge mechanism as a feature request though.

Here is what to do in case if you don't need this path overwritten:

a) During template creation/modification in the wizard's registry editor (shows just after the temp container is stopped and files are bundled), click edit registry values and find and remove corresponding environment variable. They mostly stored in HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment, here every value means some variable, f.e. Path is Path variable.

b) Remove it but note the value added by the template (this way the template does not make any changes/overwrite the current path)

c) Click edit files on the same page the edit registry option is located. open wizards file editor, find vz-pre_template_install.cmd file and insert commands that will extend the current path with the needed values.

1. Also note that this script is executed in the context of the hardware node so you need to query VE registry HKLM\vz%VPSID%\ as part of the sequence in adding requestry values to ensure it gets added to the right container not the hardware node itself.

http://downloads.swsoft.com/kb/template_reg.jpg


Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields