<?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=Aivanise</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=Aivanise"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/Aivanise"/>
	<updated>2026-04-30T02:55:53Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=OS_template_metadata&amp;diff=10615</id>
		<title>OS template metadata</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=OS_template_metadata&amp;diff=10615"/>
		<updated>2011-06-22T09:45:24Z</updated>

		<summary type="html">&lt;p&gt;Aivanise: /* Contributions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''OS template metadata''' is a set of a few files containing the following information:&lt;br /&gt;
&lt;br /&gt;
* List of packages that form this [[OS template]]&lt;br /&gt;
* Locations of package repositories&lt;br /&gt;
* Scripts needed to be executed on various stages of template installation&lt;br /&gt;
* Public GPG key(s) needed to check signatures of packages&lt;br /&gt;
* Additional OpenVZ-specific packages&lt;br /&gt;
&lt;br /&gt;
Using OS template metadata and vzpkg tools, an OS template cache can be created.&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
==Internals==&lt;br /&gt;
(Incomplete) Based off the centos-4 vztmpl:&lt;br /&gt;
&lt;br /&gt;
*addons/vzdev is a static list of most commonly used /dev entries. Provides dev package. Uses MAKEDEV.spec&lt;br /&gt;
*addons/MAKEDEV-3.3.13-1.3.swsoft is generated from a copy of fedora core 2's MAKEDEV-3.3.13. Uses MAKEDEV.spec which is a customized version to install only the essential devices and depend on vzdev&lt;br /&gt;
*dummy-centos-4 is a placeholder for kernel, module-init-tools, modutils, mingetty, kernel-utils, ethtool, and kernel-drm packages. Uses dummy.spec&lt;br /&gt;
*default.list, minimal.list, *.list are list of packages for a flavor of the template. Must contain dummy-centos-4, vzdev, and MAKEDEV packages&lt;br /&gt;
*config/yum.conf.in template for yum.conf with tokens replaced during build.&lt;br /&gt;
*config/install-pre or install-post is executed by cache-os which is executed by vzpkgcache when creating a template cache&lt;br /&gt;
*config/update-pre or update-post is executed when updating a template cache&lt;br /&gt;
*config/gpgkeys are the keys for the packages to be cached&lt;br /&gt;
*config/rpm contains the rpm version&lt;br /&gt;
*vztmpl.spec.in is template for the vztmpl package&lt;br /&gt;
*make.defs is the common variables for the make process&lt;br /&gt;
&lt;br /&gt;
Download the vztmpl-centos-4*.src.rpm. Install it. Modify it.&lt;br /&gt;
&lt;br /&gt;
To generate the OS template metadata rpm run &amp;quot;make rpms&amp;quot; inside the /usr/src/redhat/SOURCES/centos-4 dir. You will need gcc, rpmbuild, and createrepo packages.&lt;br /&gt;
&lt;br /&gt;
==Contributions==&lt;br /&gt;
* http://www.neonhost.com/openvz/ - Centos 5 rpm and patch for centos 4 template contributed by Chris Turan. See http://forum.openvz.org/index.php?t=msg&amp;amp;&amp;amp;th=5037&lt;br /&gt;
* http://krnjevic.com/wp/wp-content/uploads/2008/04/vztmpl-centos-5-2.0-3.i386.rpm - newer Centos 5 template (see also http://krnjevic.com/wp/?p=80)&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[OS template]]&lt;br /&gt;
* [[OS template cache]]&lt;br /&gt;
* [[OS template cache preparation]]&lt;br /&gt;
&lt;br /&gt;
[[Category: Definitions]]&lt;br /&gt;
[[Category: Templates]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Aivanise</name></author>
		
	</entry>
</feed>