Resolution
To reinstall OS template please do the following:1. Stop ALL VEs including Service One. 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 VE %%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's not removed this means that some of VE were note stopped when template was removing. If so please reboot the server and apply the article again from the very beginning.
3. Do the following command to install OS template again:
vzpkgdeploy -i w2k3 Note: For Parallels Virtuozzo Containers 4.0 it is necessary to specify the exact template name (the name of .efd file in \vz\Templates\__cache folder) e.g.:
vzpkgdeploy -i w2k3sp1_std_20070925_en_x86_64independently of this complex name it will be deployed to \vz\Templates\w2k3 folder.
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.) Keywords: OS template w2k3 reinstall