« Proxmox et OpenVZ » : différence entre les versions

Aller à la navigation Aller à la recherche
Ligne 698 : Ligne 698 :
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
vzctl set 777 --ipdel all --save
vzctl stop 777
tar --numeric-owner -X ../exclude.list -czf /vz/template/cache/arch-2010.05-amd64-minimal.tar.gz ./
tar --numeric-owner -X ../exclude.list -czf /vz/template/cache/arch-2010.05-amd64-minimal.tar.gz ./
</pre>
<pre>
vzctl create 123456 --ostemplate arch-2010.05-amd64-minimal
vzctl start 123456
vzctl exec 123456 ps ax
</pre>
==nettoyage==
<pre>
vzctl stop 123456
vzctl destroy 123456
rm /etc/vz/conf/123456.conf.destroyed
vzctl destroy 777
rm /etc/vz/conf/777.conf.destroyed
</pre>
</pre>


4 231

modifications

Menu de navigation