Article ID: 10054, created on Mar 10, 2011, last review on Aug 12, 2014

  • Applies to:
  • Virtual Automation 4.5
  • Virtual Automation 4.6


When navigating to the Parallels Infrastructure Manager or Parallels Virtual Automation, selecting a node, and going to the Templates tab,  the OS or Application templates are not visible. However, the vzpkg list does show all templates.

In /var/log/vzagent/CURRENTTIMESTAMP-vzagent.log the following error is observed:
[root@pvclinux64 ~]# grep -i templ /var/log/vzagent/2011.03.10-vzagent.log
T=2011.03.10 18:25:06.381; L=(error) ; PID=17346; TID=121578208; [getLocalPackageList]: VZAPkgMLocal::list failed with "cannot read Container#0 config, parameter TEMPLATE", code -1.


Most likely, the /etc/vz/vz.conf is corrupted and contains parameters with a newline symbol in the middle. For example, as the result of an incorrect application of this article:
875 How do I install APF firewall into the VE?

And now /etc/vz/vz.conf has wrong parameters:
[root@pvclinux64 ~]# sed /etc/vz/vz.conf -e '/"$/d' -e '/^#/d' -e '/^$/d'
IPTABLES="ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpms

Correct parameters should be given in form:


Correct /etc/vz/vz.conf to contain only valid values:
[root@pvclinux64 ~]# vim /etc/vz/vz.conf
[root@pvclinux64 ~]# sed /etc/vz/vz.conf  -e   '/"$/d' -e  '/^#/d' -e  '/^$/d'
[root@pvclinux64 ~]#

edc5403543a5b1f8ebc08b0ce6a492fc 319940068c5fa20655215d590b7be29b d16a8794b3bdb3f66571d469e71906a9 c9ea6ca1b35b3385431f406f1be737be 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF