openvz and SuSE
Kir Kolyshkin <kir@...
2006-02-03 04:20:25 GMT
Daniel Bauer wrote:
> From: "Kir Kolyshkin" <kir@...>
>> Daniel Bauer wrote:
>>> ok, that sounds good, I'll have a try with SuSE.
> Is there a howto for creating templates, or should I start with
> building the directory tree by myself?
No, there is no formal howto, but somehow people manage to find out all
the details. It is probably not that hard, and there are two approaches:
Currently our template tools can use yum-enabled repositories, so the
way to go is:
1. Take yum-enabled repo (or create one from a bunch of RPMS using
2. Take one of the existing OS templates metadata and find out what is it.
3. Create a metadata for your OS template, based on the above.
4. Run vzpkgcache to create a template cache.
Alternative approach is just to install a set of packages into chrooted
environment (in RPM world you use 'rpm -i --root' for that, in Debian
world you use 'debootstrap'), then do some fine tuning and finally tar
this environment. The final tarball can be placed to /vz/template/cache
and used as a template. Basically, you need to install some basic stuff
- system libraries, init scripts, useful binaries etc.