I can not create cache for Debian 4.0 EZ OS template, how do I solve it?

Article ID: 1885 
Last Review: Oct,6 2008
Author: Vitaly Filatov
Last updated by: system APPLIES TO:
  • Parallels Virtuozzo Containers for Linux

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


Subscription for this article changesSubscription for this article changes

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields