Article ID: 5235, created on May 4, 2008, last review on May 10, 2014

  • Applies to:
  • Virtuozzo containers for Windows 4.0


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.

28d0f7cc091e3b9304fa556c03f9a940 965b49118115a610e93635d21c5694a8 d02f9caf3e11b191a38179103495106f 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF