OpenVZ Forum


Home » Mailing lists » Users » openvz and SuSE
Re: openvz and SuSE [message #1195 is a reply to message #1194] Fri, 03 February 2006 09:20 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Daniel Bauer wrote:

> From: "Kir Kolyshkin" <kir@openvz.org>
>
>> 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:

(A)
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
createrepo).
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.

(B)
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.

> Why is the stuff double in private and root, I thougt that the root is
> only the mounted stuff from private?

It is not doubled. You can think of it as a bind mount (although it's a
bit more than that).
Private is a source for mount (i.e. what we mount), while root is a
mountpoint (i.e. where we mount it).
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Management tools
Next Topic: The problem of iptables on FC4
Goto Forum:
  


Current Time: Tue Aug 13 10:55:21 GMT 2024

Total time taken to generate the page: 0.02825 seconds