<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Perchrh</id>
	<title>OpenVZ Virtuozzo Containers Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Perchrh"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/Perchrh"/>
	<updated>2026-06-10T01:47:50Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=User_talk:Perchrh&amp;diff=4247</id>
		<title>User talk:Perchrh</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=User_talk:Perchrh&amp;diff=4247"/>
		<updated>2008-03-06T12:34:38Z</updated>

		<summary type="html">&lt;p&gt;Perchrh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Why vzctl-lib? ==&lt;br /&gt;
&lt;br /&gt;
In your edit [http://wiki.openvz.org/w/index.php?title=OS_template_cache_preparation&amp;amp;curid=1436&amp;amp;diff=4230&amp;amp;oldid=4162&amp;amp;rcid=4301], you added vzctl-lib to yum command needed to install vzpkg. I think that vzpkg depends on vzctl, which in turn depends on vzctl-lib, so it should be picked up automatically. Was it the case for you that vzpkg didn't work unless being installed with explicit mention of vzctl-lib, or you just added that for some other reason? I'm going to revert your edit but really need to know why you did it.&lt;br /&gt;
&lt;br /&gt;
Thank you for working with our wiki! --[[User:Kir|Kir]] 15:06, 5 March 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
: Yes, you are right. The reason I added it is that on my centos 5 x86-64 machine I was not able to run vzpkg, it failed because it tried calling a script which is part of vzctl-lib. As you say there should be a dependency in place. My experience is that it is missing. Therefore I recommend to add vzctl-lib to the yum-command. It will not cause any problems if the dependency is in place, right? {{Unsigned|Perchrh|13:55, 6 March 2008}}&lt;br /&gt;
&lt;br /&gt;
:: I have checked that vzpkg requires vzctl, and vzctl requires vzctl-lib. So this dependency should be picked up automatically by yum. In case it's not working that way we should file a bug for yum. Could you please re-check the issue? --[[User:Kir|Kir]] 05:06, 6 March 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
::: Alright, &lt;br /&gt;
:::&amp;lt;code&amp;gt;&lt;br /&gt;
:::[root@osl2r134 ~]# rpm -q --whatrequires vzctl-lib&lt;br /&gt;
:::vzctl-3.0.22-1&lt;br /&gt;
:::&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:::The dependency is in place, so I would call it a bug in yum. I'll see if I have time (work is crazy) to reproduce the problem later.&lt;br /&gt;
:::-- &lt;br /&gt;
:::PER&lt;/div&gt;</summary>
		<author><name>Perchrh</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=User_talk:Perchrh&amp;diff=4246</id>
		<title>User talk:Perchrh</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=User_talk:Perchrh&amp;diff=4246"/>
		<updated>2008-03-06T12:34:13Z</updated>

		<summary type="html">&lt;p&gt;Perchrh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Why vzctl-lib? ==&lt;br /&gt;
&lt;br /&gt;
In your edit [http://wiki.openvz.org/w/index.php?title=OS_template_cache_preparation&amp;amp;curid=1436&amp;amp;diff=4230&amp;amp;oldid=4162&amp;amp;rcid=4301], you added vzctl-lib to yum command needed to install vzpkg. I think that vzpkg depends on vzctl, which in turn depends on vzctl-lib, so it should be picked up automatically. Was it the case for you that vzpkg didn't work unless being installed with explicit mention of vzctl-lib, or you just added that for some other reason? I'm going to revert your edit but really need to know why you did it.&lt;br /&gt;
&lt;br /&gt;
Thank you for working with our wiki! --[[User:Kir|Kir]] 15:06, 5 March 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
: Yes, you are right. The reason I added it is that on my centos 5 x86-64 machine I was not able to run vzpkg, it failed because it tried calling a script which is part of vzctl-lib. As you say there should be a dependency in place. My experience is that it is missing. Therefore I recommend to add vzctl-lib to the yum-command. It will not cause any problems if the dependency is in place, right? {{Unsigned|Perchrh|13:55, 6 March 2008}}&lt;br /&gt;
&lt;br /&gt;
:: I have checked that vzpkg requires vzctl, and vzctl requires vzctl-lib. So this dependency should be picked up automatically by yum. In case it's not working that way we should file a bug for yum. Could you please re-check the issue? --[[User:Kir|Kir]] 05:06, 6 March 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
::: Alright, &lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
[root@osl2r134 ~]# rpm -q --whatrequires vzctl-lib&lt;br /&gt;
vzctl-3.0.22-1&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The dependency is in place, so I would call it a bug in yum. I'll see if I have time (work is crazy) to reproduce the problem later.&lt;br /&gt;
-- &lt;br /&gt;
PER&lt;/div&gt;</summary>
		<author><name>Perchrh</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=User_talk:Perchrh&amp;diff=4245</id>
		<title>User talk:Perchrh</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=User_talk:Perchrh&amp;diff=4245"/>
		<updated>2008-03-06T12:33:43Z</updated>

		<summary type="html">&lt;p&gt;Perchrh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Why vzctl-lib? ==&lt;br /&gt;
&lt;br /&gt;
In your edit [http://wiki.openvz.org/w/index.php?title=OS_template_cache_preparation&amp;amp;curid=1436&amp;amp;diff=4230&amp;amp;oldid=4162&amp;amp;rcid=4301], you added vzctl-lib to yum command needed to install vzpkg. I think that vzpkg depends on vzctl, which in turn depends on vzctl-lib, so it should be picked up automatically. Was it the case for you that vzpkg didn't work unless being installed with explicit mention of vzctl-lib, or you just added that for some other reason? I'm going to revert your edit but really need to know why you did it.&lt;br /&gt;
&lt;br /&gt;
Thank you for working with our wiki! --[[User:Kir|Kir]] 15:06, 5 March 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
: Yes, you are right. The reason I added it is that on my centos 5 x86-64 machine I was not able to run vzpkg, it failed because it tried calling a script which is part of vzctl-lib. As you say there should be a dependency in place. My experience is that it is missing. Therefore I recommend to add vzctl-lib to the yum-command. It will not cause any problems if the dependency is in place, right? {{Unsigned|Perchrh|13:55, 6 March 2008}}&lt;br /&gt;
&lt;br /&gt;
:: I have checked that vzpkg requires vzctl, and vzctl requires vzctl-lib. So this dependency should be picked up automatically by yum. In case it's not working that way we should file a bug for yum. Could you please re-check the issue? --[[User:Kir|Kir]] 05:06, 6 March 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
::: Alright, &lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
[root@osl2r134 ~]# rpm -q --whatrequires vzctl-lib&lt;br /&gt;
vzctl-3.0.22-1&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
The dependency is in place, so I would call it a bug in yum. I'll see if I have time (work is crazy) to reproduce the problem later.&lt;br /&gt;
--PER&lt;/div&gt;</summary>
		<author><name>Perchrh</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=User_talk:Perchrh&amp;diff=4241</id>
		<title>User talk:Perchrh</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=User_talk:Perchrh&amp;diff=4241"/>
		<updated>2008-03-06T09:55:02Z</updated>

		<summary type="html">&lt;p&gt;Perchrh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Why vzctl-lib? ==&lt;br /&gt;
&lt;br /&gt;
In your edit [http://wiki.openvz.org/w/index.php?title=OS_template_cache_preparation&amp;amp;curid=1436&amp;amp;diff=4230&amp;amp;oldid=4162&amp;amp;rcid=4301], you added vzctl-lib to yum command needed to install vzpkg. I think that vzpkg depends on vzctl, which in turn depends on vzctl-lib, so it should be picked up automatically. Was it the case for you that vzpkg didn't work unless being installed with explicit mention of vzctl-lib, or you just added that for some other reason? I'm going to revert your edit but really need to know why you did it.&lt;br /&gt;
&lt;br /&gt;
Thank you for working with our wiki! --[[User:Kir|Kir]] 15:06, 5 March 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
---------&lt;br /&gt;
&lt;br /&gt;
Yes, you are right. The reason I added it is that on my centos 5 x86-64 machine I was not able to run vzpkg, it failed because it tried calling a script which is part of vzctl-lib. As you say there should be a dependency in place. My experience is that it is missing. Therefore I recommend to add vzctl-lib to the yum-command. It will not cause any problems if the dependency is in place, right?&lt;/div&gt;</summary>
		<author><name>Perchrh</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=User_talk:Perchrh&amp;diff=4240</id>
		<title>User talk:Perchrh</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=User_talk:Perchrh&amp;diff=4240"/>
		<updated>2008-03-06T09:39:26Z</updated>

		<summary type="html">&lt;p&gt;Perchrh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Why vzctl-lib? ==&lt;br /&gt;
&lt;br /&gt;
In your edit [http://wiki.openvz.org/w/index.php?title=OS_template_cache_preparation&amp;amp;curid=1436&amp;amp;diff=4230&amp;amp;oldid=4162&amp;amp;rcid=4301], you added vzctl-lib to yum command needed to install vzpkg. I think that vzpkg depends on vzctl, which in turn depends on vzctl-lib, so it should be picked up automatically. Was it the case for you that vzpkg didn't work unless being installed with explicit mention of vzctl-lib, or you just added that for some other reason? I'm going to revert your edit but really need to know why you did it.&lt;br /&gt;
&lt;br /&gt;
Thank you for working with our wiki! --[[User:Kir|Kir]] 15:06, 5 March 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
---------&lt;br /&gt;
&lt;br /&gt;
Yes, you are right. The reason I added it was that because on my centos 5 x86-64 machine to be able to run vzpkg correctly. As you say there should be a dependency in place, but I experienced that it is missing. Therefore I recommend to add vzctl-lib to the yum-command. It will not cause any problems if the dependency is in place, right?&lt;/div&gt;</summary>
		<author><name>Perchrh</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=NFS&amp;diff=4239</id>
		<title>NFS</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=NFS&amp;diff=4239"/>
		<updated>2008-03-06T09:30:06Z</updated>

		<summary type="html">&lt;p&gt;Perchrh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page describes how to mount NFS partition inside VE.&lt;br /&gt;
&lt;br /&gt;
== NFS server ==&lt;br /&gt;
Currently OpenVZ kernel doesn't include kernel NFS server support. However you are still able to use user space [[NFS server inside VE]].&lt;br /&gt;
&lt;br /&gt;
== NFS client ==&lt;br /&gt;
=== Preparations ===&lt;br /&gt;
==== Prerequisites ====&lt;br /&gt;
You will need the following software:&lt;br /&gt;
&lt;br /&gt;
# [http://openvz.org/download/utils#vzctl vzctl] version 3.0.13 or higher (do &amp;lt;code&amp;gt;vzctl --version&amp;lt;/code&amp;gt;)&lt;br /&gt;
# [http://openvz.org/download/kernel/ kernel] version 2.6.18-028test006 or higher (2.6.18-028stab* will do), or any recent RHEL5-based or 2.6.20-based kernel.&lt;br /&gt;
&lt;br /&gt;
Note: In all the kernels earlier than 028stab038, kernel NFS support can be given to a VE by setting:&lt;br /&gt;
&lt;br /&gt;
      sunrpc.ve_allow_rpc = 1&lt;br /&gt;
      fs.nfs.ve_allow_nfs = 1&lt;br /&gt;
      kernel.ve_allow_kthreads = 1&lt;br /&gt;
&lt;br /&gt;
This can be done by adding the above lines into /etc/sysctl.conf on the hardware node, and then running &amp;lt;code&amp;gt;sysctl -p&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===== Debian Notes =====&lt;br /&gt;
&lt;br /&gt;
Debian Etch still uses vzctl version 3.0.11 and so NFS client support is not yet available. Lenny presently has version 3.0.18.&lt;br /&gt;
&lt;br /&gt;
==== Prepare the HN ====&lt;br /&gt;
&lt;br /&gt;
For NFS mounts to work in the VEs with the RHEL5-based kernels you must enable kernel threads in the VE by setting &amp;quot;kernel.ve_allow_kthreads=1&amp;quot; in /etc/sysctl.conf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# modprobe nfs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Prepare the VE ====&lt;br /&gt;
To allow a VE use NFS filesystem, you will need to start it with &amp;quot;nfs&amp;quot; feature enabled. If the VE is running while you set the --features &amp;quot;nfs:on&amp;quot;, you will need to reboot it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# vzctl set 101 --features &amp;quot;nfs:on&amp;quot; --save&lt;br /&gt;
# vzctl start 101&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this you may see nfs in &amp;lt;code&amp;gt;/proc/filesystems&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# vzctl exec 101 cat /proc/filesystems&lt;br /&gt;
        ext3&lt;br /&gt;
        ext2&lt;br /&gt;
nodev   rpc_pipefs&lt;br /&gt;
nodev   proc&lt;br /&gt;
nodev   nfs&lt;br /&gt;
nodev   sysfs&lt;br /&gt;
nodev   tmpfs&lt;br /&gt;
nodev   devpts&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mounting NFS ===&lt;br /&gt;
Assuming that you already have NFS server set up at &amp;lt;code&amp;gt;192.168.0.1:/nfs_pub&amp;lt;/code&amp;gt; mounting will be simple&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# vzctl enter 100&lt;br /&gt;
# mkdir /nfs&lt;br /&gt;
# mount -t nfs 192.168.0.1:/nfs_pub /nfs&lt;br /&gt;
# cat /proc/mounts &lt;br /&gt;
simfs / simfs rw 0 0&lt;br /&gt;
proc /proc proc rw 0 0&lt;br /&gt;
sysfs /sys sysfs rw 0 0&lt;br /&gt;
devpts /dev/pts devpts rw 0 0&lt;br /&gt;
nfs /nfs nfs rw,vers=3,rsize=32768,wsize=32768,hard,proto=tcp,timeo=600,retrans=2,sec=sys,addr=192.168.0.1 0 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For more details on how to setup NFS mount see [http://nfs.sourceforge.net/nfs-howto/ar01s04.htm NFS-client HOWTO]&lt;br /&gt;
&lt;br /&gt;
=== Known issues ===&lt;br /&gt;
There are quite a few parameters in NFS, so sometimes it doesn't work due to misconfiguration. We've created a separate&lt;br /&gt;
page describing those situations: [[ NFS doesn't work ]]&lt;br /&gt;
&lt;br /&gt;
[[Category: HOWTO]]&lt;/div&gt;</summary>
		<author><name>Perchrh</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=OS_template_cache_preparation&amp;diff=4230</id>
		<title>OS template cache preparation</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=OS_template_cache_preparation&amp;diff=4230"/>
		<updated>2008-03-05T14:32:37Z</updated>

		<summary type="html">&lt;p&gt;Perchrh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article describes the procedure of an OS template cache creation.  It assumes you already have OpenVZ installed and running. The steps needed to achieve it are documented in the [[Quick installation]] document.&lt;br /&gt;
&lt;br /&gt;
== Terminology ==&lt;br /&gt;
&lt;br /&gt;
Please make sure you understand these terms:&lt;br /&gt;
&lt;br /&gt;
* [[OS template]]&lt;br /&gt;
* [[OS template metadata]]&lt;br /&gt;
* [[OS template cache]]&lt;br /&gt;
&lt;br /&gt;
== Creating an OS template cache ==&lt;br /&gt;
You can create an [[OS template cache]] using template utilities and [[OS template metadata]] right on your [[hardware node]]. The process is automated and will take from about 10 minutes to a few hours, depending on the network speed, and the result will be most up-to-date template cache.&lt;br /&gt;
&lt;br /&gt;
=== Installing template utilities ===&lt;br /&gt;
&lt;br /&gt;
You have to install a few packages in order to be able to create/update OS template cache(s).&lt;br /&gt;
&lt;br /&gt;
==== Using yum ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# yum install vzpkg vzyum vzrpm43-python vzrpm44-python vzctl-lib&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Using rpm ====&lt;br /&gt;
Packages are available from [http://openvz.org/download/template/utils/ Download » Templates » Utilities]. You need both &amp;lt;tt&amp;gt;vzpkg&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;vzyum&amp;lt;/tt&amp;gt; packages, as well as one or both &amp;lt;tt&amp;gt;vzrpm43&amp;lt;/tt&amp;gt;/&amp;lt;tt&amp;gt;vzrpm44&amp;lt;/tt&amp;gt; (including their &amp;lt;tt&amp;gt;-python&amp;lt;/tt&amp;gt; counterparts), depending on the OS templates being used.&lt;br /&gt;
&lt;br /&gt;
Install these utilities using rpm:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# rpm -ihv vzpkg*.rpm vzyum*.rpm vzrpm44*.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Red Hat Enterprise Linux, to install &amp;lt;tt&amp;gt;vzyum&amp;lt;/tt&amp;gt; you will need &amp;lt;tt&amp;gt;[http://rpmfind.net/linux/rpm2html/search.php?query=python-elementtree&amp;amp;system=redhat python-elementtree]&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;[http://rpmfind.net/linux/rpm2html/search.php?query=python-sqlite&amp;amp;system=redhat python-sqlite]&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;[http://rpmfind.net/linux/rpm2html/search.php?query=python-urlgrabber&amp;amp;system=redhat python-urlgrabber]&amp;lt;/tt&amp;gt;. These packages might have dependencies of their own. For example, &amp;lt;tt&amp;gt;python-sqlite&amp;lt;/tt&amp;gt; needs &amp;lt;tt&amp;gt;[http://rpmfind.net/linux/rpm2html/search.php?query=sqlite&amp;amp;system=redhat sqlite]&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Installing OS template metadata ===&lt;br /&gt;
&lt;br /&gt;
To create an [[OS template cache]], you need to get the [[OS template metadata|metadata]] for the chosen OS template(s).&lt;br /&gt;
&lt;br /&gt;
==== Using yum ====&lt;br /&gt;
To see which templates are available, run&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# yum search vztmpl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To install some of the templates, run&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# yum install vztmpl-XXX [...]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Using rpm ====&lt;br /&gt;
Get the chosen &amp;lt;tt&amp;gt;vztmpl-*&amp;lt;/tt&amp;gt; packages from [http://openvz.org/download/template/metadata/ Downloads » Templates » Metadata] (or directly from [http://download.openvz.org/template/metadata/ download.openvz.org/template/metadata] or one of the [[Download mirrors|mirrors]] and install them:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# rpm -ihv vztmpl-*.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing repository cache (optional) ===&lt;br /&gt;
&lt;br /&gt;
Optionally, you may want to get a snapshot of the local copy of the package repository for the chosen OS template(s). This is not required but might speed up the initial OS template cache creation considerably. The tarballs are available from [http://openvz.org/download/template/repocache/ Downloads » Templates » Repo Cache]; download and untar them to the &amp;lt;tt&amp;gt;/vz/template&amp;lt;/tt&amp;gt; directory on your OpenVZ [[Hardware Node]]. If you choose to skip this step, all the needed files will be downloaded from the Internet automatically when needed.&lt;br /&gt;
&lt;br /&gt;
Note - The cache may be out of date meaning you end up downloading them all again anyway.&lt;br /&gt;
&lt;br /&gt;
=== Running &amp;lt;tt&amp;gt;vzpkgcache&amp;lt;/tt&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
Run the &amp;lt;tt&amp;gt;vzpkgcache&amp;lt;/tt&amp;gt; utility; see the vzpkgcache(8) man page for details. It will create or update the caches of all the templates for which the corresponding metadata exist.&lt;br /&gt;
&lt;br /&gt;
 # vzpkgcache centos-4-i386-minimal&lt;br /&gt;
&lt;br /&gt;
== Alternative: use precreated template cache ==&lt;br /&gt;
&lt;br /&gt;
As an alternative to creating a cache using template metadata, you can use precreated template cache taken from [http://openvz.org/download/template/cache Downloads » Templates » Precreated], or directly from [http://download.openvz.org/template/precreated/ download.openvz.org/template/precreated], or from one of the [[Download mirrors|mirrors]].&lt;br /&gt;
&lt;br /&gt;
Precreated templates can be easily updated using the following algorithm:&lt;br /&gt;
# create temporary [[container]] based on template&lt;br /&gt;
# update [[container]] using OS-specific tools (yum, apt or similar)&lt;br /&gt;
# pack [[container]] as a new template&lt;br /&gt;
Examples of this procedure are described in details at [[Updating Ubuntu template]], [[Updating Debian template]], [[Fedora template update]]&lt;br /&gt;
&lt;br /&gt;
In order to use precreated template cache files, download files for chosen OS distributions and place them as-is (no unpacking needed) to the &amp;lt;tt&amp;gt;/vz/template/cache&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' If you use precreated CentOS-4 templates and wish to install software using vzyum, you will probably run into error like this:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost tmp]# vzyum MYVPSID install mypackage&lt;br /&gt;
 [root@localhost tmp]# ERROR: No such OS template: install&lt;br /&gt;
&lt;br /&gt;
This might apply to Fedora also. To fix this problem, install the appropriate [[OS template metadata]] on the OpenVZ host, for example&lt;br /&gt;
&lt;br /&gt;
 yum install vztmpl-centos-4&lt;br /&gt;
&lt;br /&gt;
== Next step ==&lt;br /&gt;
&lt;br /&gt;
Follow on to the [[VE creation]] article.&lt;br /&gt;
&lt;br /&gt;
[[Category: Installation]]&lt;br /&gt;
[[Category: Templates]]&lt;/div&gt;</summary>
		<author><name>Perchrh</name></author>
		
	</entry>
</feed>