Creating Template [message #5461] |
Sun, 20 August 2006 11:55 |
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,
|
|
|
Re: Creating Template [message #5469 is a reply to message #5461] |
Mon, 21 August 2006 07:58 |
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 .
Henk van de Kamer
auteur Het Lab
http://www.hetlab.tk/
|
|
|