OpenVZ Forum


Home » General » Support » How to create our own templates?
Re: How to create our own templates? [message #3388 is a reply to message #3386] Thu, 25 May 2006 17:19 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Basically, our template tools are using yum with --installroot argument and separate configuration file with yum repos specified for the given distro.

You can just copy over the whole physical server with RH7.3 installed, tar it, put into /vz/template/cache directory and use.

Additional tricks are:

1. removing getty lines from /etc/inittab

2. adding - (minus, dash) signs before file names in /etc/sysctl.conf (for better I/O performance).

3. linking /etc/mtab to /proc/mounts for df etc. to work:
rm /etc/mtab
ln -s /proc/mounts /etc/mtab


4. Setting
PROMPT=no

in /etc/sysconfig/init (on distros which have that).

5. removing some cron jobs from /etc/cron.daily

And so on. Strictly speaking they are not required for you newly created template to work -- but highly recommended.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using OpenVZ Templates in Virtouzzo?
Next Topic: *SOLVED* need help installing Oracle 10g -- heap error
Goto Forum:
  


Current Time: Fri Jul 12 21:28:25 GMT 2024

Total time taken to generate the page: 0.02353 seconds