Editing User Guide/Installation and Preliminary Operations

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 167: Line 167:
 
=== Installing OS Templates ===
 
=== Installing OS Templates ===
  
Template is a set of package files to be installed into a Container. Operating system templates are used to create new Containers with a pre-installed operating system. Therefore, you are bound to download at least one OS template and put it into <code>/vz/template/cache/</code> directory on the Hardware Node.
+
Template (or package set) is a set of package files to be installed into a VPS. Operating system templates are used to create new Virtual Private Servers with a pre-installed operating system. Therefore, you are bound to download at least one OS template from http://openvz.org/download/template/ and install it.
 +
OS template metadata contain the information needed to create a template cache. You have to specify an OS template on the VPS creation, so you need to install the metadata for at least one OS template and prepare the template cache.
  
Links to all available OS templates at listed at [[Download/template/precreated]].
+
For example, this is how the template preparation for Fedora Core 3 will look like:
 
 
For example, this is how to download the CentOS 5 OS template:
 
 
<pre>
 
<pre>
# cd /vz/template/cache
+
# rpm –ihv vztmpl-fedora-core-3-1.0-2.noarch.rpm
# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz
+
Preparing...        ########################################### [100%]
 +
  1: vztmpl-fedora-########################################### [100%]
 +
# vzpkgcache
 +
Creating cache for fedora-core-3 OS template
 +
Setting up install process
 +
<…some output skipped for clarity…>
 +
Packing cache file fedora-core-3.tar.gz ...
 +
Cache file fedora-core-3.tar.gz [130M] created.
 
</pre>
 
</pre>
  
 +
The first command installs the template metadata, while the second one creates the template cache. Note that this operation can take a considerable time (tens of minutes).
 +
You can also use one of the already pre-cached OS templates available at http://openvz.org/download/template/cache/ for the VPS creation. To this effect, you should download the corresponding OS template and place it to the /vz/template/cache directory on the Node.
 
<noinclude>{{UG/Footer}}</noinclude>
 
<noinclude>{{UG/Footer}}</noinclude>

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)