SYMPTOMS
I have installed Debian 4.0 EZ OS template and when I am trying to cache it, I am getting error messages like these:# vzpkg create cache debian-4.0-x86
--skip--
Setting up fontconfig-config (2.4.2-1.2) ...
Out of memory!
--skip-- or:
# vzpkg create cache debian-4.0-x86
--skip--
Setting up openssh-server (4.3p2-9) ...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Inconsistency detected by ld.so: dl-minimal.c: 84: __libc_memalign:
Assertion
`page != ((void *) -1)' failed!
Stopped: `/usr/bin/chage -M 99999 sshd' returned error code 127. Exiting.
--skip-- or:
Setting up fontconfig-config (2.4.2-1.2) ...
/usr/share/debconf/confmodule: xmalloc: ../bash/make_cmd.c:99: cannot
allocate
37 bytes (0 bytes allocated)
dpkg: error processing fontconfig-config (--configure):
subprocess post-installation script returned error exit status 2 Or something similar to shown above.
CAUSE
The sample configuration file /etc/sysconfig/vz-scripts/vps.vzpkgtools.conf-sample which is being used for temporary VE during template caching has insufficient resources to cache Debian 4.0 EZ template.RESOLUTION
In order to solve problem increase PRIVVMPAGES value in '/etc/sysconfig/vz-scripts/vps.vzpkgtools.conf-sample' to "45056:49152", it should be enough. After that run 'vzpkg create cache debian-4.0-x86' again.Keywords: vzpkg create cache debian etch ez template libfontconfig1 fontconfig