Article ID: 1885, created on May 28, 2007, last review on Dec 12, 2014

  • Applies to:
  • Virtuozzo
  • Virtuozzo containers for Linux
  • Virtuozzo hypervisor


It is not possible to create cache of some OS templates. Debian/Ubuntu templates are mostly affected. The errors produced on cache creation can be similar to the following ones:

# vzpkg create cache debian-6.0-x86_64

Setting up fontconfig-config (2.4.2-1.2) ...
Out of memory!


dpkg: error processing fontconfig-config (--configure):
subprocess post-installation script returned error exit status 2


sysvinit: creating /dev/initctl
init: timeout opening/writing control channel /dev/initctl


invoke-rc.d: initscript bind9, action "start" failed. 
dpkg: error processing bind9 (--configure):^M subprocess installed post-installation script returned error exit status 1


Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Error: /usr/bin/apt-get failed, exitcode=100

At the same time an error is observed in /var/log/messages:

Jun 16 00:03:55 vz kernel: [352497.506539] Fatal resource shortage: physpages, UB 10000000


The sample configuration file, which is used for a temporary container during template caching has insufficient resources to cache the OS template.


Correct the parameter, which is not sufficient, according to the recorded error in /var/log/messages, in /etc/sysconfig/vz-scripts/vps.vzpkgtools.conf-sample.

For example:

# cp /etc/sysconfig/vz-scripts/vps.vzpkgtools.conf-sample{,.old}
# vi /etc/sysconfig/vz-scripts/vps.vzpkgtools.conf-sample
# diff -pruN /etc/sysconfig/vz-scripts/vps.vzpkgtools.conf-sample.old /etc/sysconfig/vz-scripts/vps.vzpkgtools.conf-sample
--- /etc/sysconfig/vz-scripts/vps.vzpkgtools.conf-sample.old 2013-12-27 00:26:51.355976565 +0100
+++ /etc/sysconfig/vz-scripts/vps.vzpkgtools.conf-sample 2013-12-27 00:25:41.613976578 +0100
@@ -11,6 +11,7 @@ 

After that, attempt to create the cache again.

Search Words

ubuntu Not Found

vzpkg create cache ubuntu-14.04-x86_64-ez

Unable to create OS template cache on Virtuozzo HW node

ubuntu 14.04

vzpkg create cache 14.04

vzpkg create cache

d02f9caf3e11b191a38179103495106f e8e50b42231236b82df27684e7ec0beb 2897d76d56d2010f4e3a28f864d69223 a26b38f94253cdfbf1028d72cf3a498b 0dd5b9380c7d4884d77587f3eb0fa8ef

Email subscription for changes to this article
Save as PDF