Re: Need help creating a template from an ISO [message #36287 is a reply to message #36286] |
Thu, 04 June 2009 15:46   |
sammy08
Messages: 21 Registered: April 2008
|
Junior Member |
|
|
It wasn't that difficult to create the template. I basically followed http://wiki.openvz.org/Creating_a_CentOS_5.0_Template
So you can create a template from an existing server installation that you have. To help you better I have modified step 2 to read as follows:
You need to tar the contents of your existing system.
1. First, create a file called /tmp/exclude and add the following lines to it:
.bash_history
lost+found
/dev/*
/mnt/*
/tmp/*
/proc/*
/sys/*
/usr/src/*
a). Now, tar the system into a single file up by typing: tar –czvf /tmp/centos-5.0-<ARCH>-<SYSTEM>-image.tar.gz –X /tmp/exclude / where <ARCH> represents the system architecture (i386 or x86_64) and <SYSTEM> represents what you what to call your system for example "asterisk-1.4" it is an Asterisk 1.4 PBX system.
b). Now transfer the file over to the OpenVZ server into /vz/template/cache folder.
Then for step 26.
26. Finally, package up the new template by typing tar –czvf /vz/template/cache/centos-5-<ARCH>-<SYSTEM>-AT.tar.gz ./.
for example:
tar –czvf /vz/template/cache/centos-5-3-i386-Asterisk-1.4.25-AT.tar.gz ./.
Would be an Asterisk 1.4.25 Application Template (AT) running on CentOS 5.3-i386 version.
Hope this helps.
regards,
Sammy
[Updated on: Thu, 04 June 2009 15:47] Report message to a moderator
|
|
|