4 231
modifications
Ligne 944 : | Ligne 944 : | ||
==finalisation== | ==finalisation== | ||
Supprimez l'ip de votre VE : | |||
<pre> | |||
vzctl set 777 --ipdel all --save | |||
</pre> | |||
Créez un fichier d'exclusion contenant les différents fichiers et dossiers qui ne devront pas se retrouver dans le template définitif : | |||
<pre> | <pre> | ||
cd /vz/private/777/ | cd /vz/private/777/ | ||
Ligne 950 : | Ligne 956 : | ||
find ./var/cache/ -name '*.tar.gz' >> ../exclude.list | find ./var/cache/ -name '*.tar.gz' >> ../exclude.list | ||
find ./root/.bash_history >> ../exclude.list | find ./root/.bash_history >> ../exclude.list | ||
</pre> | |||
Stoppez le VE et créez l'archive du template : | |||
<pre> | |||
vzctl stop 777 | vzctl stop 777 | ||
tar --numeric-owner -X ../exclude.list -czf /vz/template/cache/arch-2010.05-minimal_1.0_amd64.tar.gz ./ | tar --numeric-owner -X ../exclude.list -czf /vz/template/cache/arch-2010.05-minimal_1.0_amd64.tar.gz ./ |