Article ID: 9333, created on Nov 18, 2010, last review on May 11, 2014

  • Applies to:
  • Virtuozzo containers for Windows 4.6
  • Virtuozzo containers for Windows 4.5


The upgrade procedure to PVC 4.x might fail with the following error:

Parallels Virtuozzo Containers for Windows Configuration Wizard
ERROR: {VZSRV} Template 'windows_2003_std_sp2' is used by container 105


The container is running and preventing to reinstall OS template. The "onboot'' option of the container might be set to "yes", which means the container is configured to auto-start on the node reboot.


If the upgrade procedure failed make sure all containers are stopped and start the upgrade again.

In case if the upgrade is finished it is recommended to reinstall OS template as follows:

1. Stop all containers including the service container. You can use th following script for this purpose:

@echo off
for /F "skip=2 usebackq tokens=*" %%i in (`cmd /c "vzlist -ao veid"`) do (cmd /c "vzctl stop "%%i && echo CT %%i has been stopped.)

2. Do the following command to uninstall OS template:

vzpkgdeploy -u w2k3

Ensure that \vz\Templates\w2k3 folder is removed. If it is not removed this means that some of CTs were not stopped when template was removing. If so please reboot the server and apply the article again from the very beginning.

3. Extract necessary OS template as follows:

- Open the folder where PVC installer is located, for example C:\vz\download\w2k3\x64\4.6\;
- Rename extension of OS template file to exe. The name of the file depends on OS installed on the server).  In our example w2k3en_SP2_x64.ex_ which is Windows 2003 x64 Enterprise Edition SP2;
- Run the exe file to extract OS template;
- Copy resulted file to C:\vz\Templates\__cache folder, file example - w2k3sp2_std_20080122_en_x64.efd
3. Do the following command to install OS template again:

vzpkgdeploy -i w2k3

4. Start VEs.

@echo off
for /F "skip=2 usebackq tokens=*" %%i in (`cmd /c "vzlist -ao veid"`) do (cmd /c "vzctl start "%%i && echo VE %%i has been started.)

6c20476fe6c3408461ce38cbcab6d03b d02f9caf3e11b191a38179103495106f 965b49118115a610e93635d21c5694a8 d09cb2230ee0cfa720ed0f2a3cc39452 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF