OpenVZ Forum


Home » General » Support » Creating Template
Creating Template [message #5461] Sun, 20 August 2006 11:55 Go to next message
sspt is currently offline  sspt
Messages: 100
Registered: August 2006
Location: Portugal
Senior Member
Hello,
I've created a VPS with centos-4-i386-minimal template and i've installed CPanel.

Now, how can i create a template with Centos 4 + Cpanel? Just compressing vps folder inside /vz/private?


Regards,


http://static.openvz.org/userbars/openvz-user.png
Re: Creating Template [message #5469 is a reply to message #5461] Mon, 21 August 2006 07:58 Go to previous message
hvdkamer is currently offline  hvdkamer
Messages: 40
Registered: July 2006
Member
Yep. Just bring down the VE and tar it to template/cache under a name which describes it. Under my Debian install I have:

strato:~# ls -l /var/lib/vz/template/cache/
total 61044
-rw-r--r--  1 root root 30649140 Aug  5 22:49 debian-3.1-amd64-miniserver.tar.gz
-rw-r--r--  1 root root 31780944 Aug  5 21:01 debian-3.1-i386-miniserver.tar.gz


So I can use:

strato:~#vzctl create <VEID> --ostemplate debian-3.1-amd64-miniserver --config bat_small


which gives me a 64 bits Debian minimal server with minimal resources (in /etc/vz/conf/ I have a ve-bat_small.conf-sample with my own settings as well). To make it realy Debian I packed both templates, which is handy if you have multiple servers to maintain Smile.


Henk van de Kamer
auteur Het Lab
http://www.hetlab.tk/
Previous Topic: The User Guide is wrong!
Next Topic: *SOLVED* Fedora Core 5 VZ Template - Kernel too old
Goto Forum:
  


Current Time: Mon Jul 15 03:01:37 GMT 2024

Total time taken to generate the page: 0.02601 seconds