I have created an application template, but when trying to install it into a container the process hangs or falls with timeout:
> vzpkgadd CTID my_template_name
When installing any application template inside the container, the container's PowerShell is involved, so the application template installation may hang if PowerShell inside the container does not work properly.
E.g. it may crash with .NET-related error:
Log Name: Application Source: .NET Runtime Date: 9/30/2014 5:06:59 PM Event ID: 1023 Task Category: None Level: Error Keywords: Classic User: N/A Computer: CT100700 Description: Application: powershell.exe Framework Version: v4.0.30319 Description: The process was terminated due to an internal error in the .NET Runtime at IP 000007FDC380687A (000007FDC37A0000) with exit code 80131506.
For .NET troubleshooting inside the container, see KB 113122 about MMC issues troubleshooting.
If any newly created container has .NET issues, check KB 1214 for instructions on reinstalling the OS template.
To avoid the occurrence of this issue, follow .NET usage best practices: