Difference between revisions of "OS template metadata"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(copied warning about obsoleted vzyum and other tools)
(Marked this version for translation)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
<translate>
 +
<!--T:1-->
 
{{Warning|The rest of this document is obsoleted and is kept here for historical purposes only. Template utilities (vzpkg/vzyum) are no longer supported. Use [[Download/template/precreated|precreated templates]].}}
 
{{Warning|The rest of this document is obsoleted and is kept here for historical purposes only. Template utilities (vzpkg/vzyum) are no longer supported. Use [[Download/template/precreated|precreated templates]].}}
  
 +
<!--T:2-->
 
'''OS template metadata''' is a set of a few files containing the following information:
 
'''OS template metadata''' is a set of a few files containing the following information:
  
 +
<!--T:3-->
 
* List of packages that form this [[OS template]]
 
* List of packages that form this [[OS template]]
 
* Locations of package repositories
 
* Locations of package repositories
Line 11: Line 15:
 
Using OS template metadata and vzpkg tools, an OS template cache can be created.
 
Using OS template metadata and vzpkg tools, an OS template cache can be created.
 
<noinclude>
 
<noinclude>
==Internals==
+
==Internals== <!--T:4-->
 
(Incomplete) Based off the centos-4 vztmpl:
 
(Incomplete) Based off the centos-4 vztmpl:
  
 +
<!--T:5-->
 
*addons/vzdev is a static list of most commonly used /dev entries. Provides dev package. Uses MAKEDEV.spec
 
*addons/vzdev is a static list of most commonly used /dev entries. Provides dev package. Uses MAKEDEV.spec
 
*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
 
*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
Line 26: Line 31:
 
*make.defs is the common variables for the make process
 
*make.defs is the common variables for the make process
  
 +
<!--T:6-->
 
Download the vztmpl-centos-4*.src.rpm. Install it. Modify it.
 
Download the vztmpl-centos-4*.src.rpm. Install it. Modify it.
  
 +
<!--T:7-->
 
To generate the OS template metadata rpm run "make rpms" inside the /usr/src/redhat/SOURCES/centos-4 dir. You will need gcc, rpmbuild, and createrepo packages.
 
To generate the OS template metadata rpm run "make rpms" inside the /usr/src/redhat/SOURCES/centos-4 dir. You will need gcc, rpmbuild, and createrepo packages.
  
==Contributions==
+
==Contributions== <!--T:8-->
 
* 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&&th=5037
 
* 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&&th=5037
 
* 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)
 
* 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)
Line 36: Line 43:
 
<noinclude>
 
<noinclude>
  
== See also ==
+
== See also == <!--T:9-->
 
* [[OS template]]
 
* [[OS template]]
 
* [[OS template cache]]
 
* [[OS template cache]]
 
* [[OS template cache preparation]]
 
* [[OS template cache preparation]]
 +
</translate>
  
 
[[Category: Definitions]]
 
[[Category: Definitions]]
 
[[Category: Templates]]
 
[[Category: Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 08:41, 26 December 2015

<translate>

Warning.svg Warning: The rest of this document is obsoleted and is kept here for historical purposes only. Template utilities (vzpkg/vzyum) are no longer supported. Use precreated templates.

OS template metadata is a set of a few files containing the following information:

  • List of packages that form this OS template
  • Locations of package repositories
  • Scripts needed to be executed on various stages of template installation
  • Public GPG key(s) needed to check signatures of packages
  • Additional OpenVZ-specific packages

Using OS template metadata and vzpkg tools, an OS template cache can be created.

Internals[edit]

(Incomplete) Based off the centos-4 vztmpl:

  • addons/vzdev is a static list of most commonly used /dev entries. Provides dev package. Uses MAKEDEV.spec
  • 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
  • dummy-centos-4 is a placeholder for kernel, module-init-tools, modutils, mingetty, kernel-utils, ethtool, and kernel-drm packages. Uses dummy.spec
  • default.list, minimal.list, *.list are list of packages for a flavor of the template. Must contain dummy-centos-4, vzdev, and MAKEDEV packages
  • config/yum.conf.in template for yum.conf with tokens replaced during build.
  • config/install-pre or install-post is executed by cache-os which is executed by vzpkgcache when creating a template cache
  • config/update-pre or update-post is executed when updating a template cache
  • config/gpgkeys are the keys for the packages to be cached
  • config/rpm contains the rpm version
  • vztmpl.spec.in is template for the vztmpl package
  • make.defs is the common variables for the make process

Download the vztmpl-centos-4*.src.rpm. Install it. Modify it.

To generate the OS template metadata rpm run "make rpms" inside the /usr/src/redhat/SOURCES/centos-4 dir. You will need gcc, rpmbuild, and createrepo packages.

Contributions[edit]


See also[edit]

</translate>