Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

OS template cache preparation

1,249 bytes removed, 17:22, 11 May 2011
Alternative: use precreated template cache: rm obsoleted stuff
Examples of this procedure are described in details at [[Updating Ubuntu template]], [[Updating Debian template]], [[Fedora template update]]
In order to use precreated template cache files, download files for chosen OS distributions and place them as-is (no unpacking needed) to the <tt>/vz/template/cache</tt> directory. '''NOTE:''' On (for Debian/Ubuntu and probably recent Debian distros, the path is it might be <tt>/var/lib/vz/template/cache</tt> if you installed OpenVZ from the repositories. '''NOTE:''' If you use precreated CentOS-4 templates and wish to install software using vzyum, you will probably run into error like this:  [root@localhost tmp]# vzyum CTID install mypackage [root@localhost tmp]# ERROR: No such OS template: install This might apply to Fedora also. To fix this problem, install the appropriate [[OS template metadata]] on the OpenVZ host, for example  yum install vztmpl-centos-4 [Unverified note] : After creating a new OSTemplate cache called "centos4-i386-[ASINGLEWORD].tar.gz from a Container (on which vzyum worked) based on centos4-i386-default.tar.gz, vzyum failed to work (showing "No such OS template: install").  Here is the "solution" I worked out :The new OSTemplate should be named "centos4-i386-[ASINGLEWORD].tar.gz", and in /vz/template/centos/4/i386/config you should copy the default.list to [ASINGLEWORD].list. vzyum then works (for me!). I have tried to verify this by creating templates with [MULTIPLEWORDS], which fail, and by creating templates without a corresponding [ASINGLEWORLD].conf file, which also fail - indicating that using a single word seems to be important (no hyphens etc). Good luck.
== Next step ==