27
edits
Changes
formatted 17 steps
follow these steps:
<pre>
vzctl create CTID --ostemplate centos-4-i386-minimal --config CONFIG_TEMPLATE --ipadd container_IP --hostname temp
vzctl set CTID --nameserver NAMESERVER_IP --save
</pre>
<pre>
vzctl enter CTID
</pre>
<pre>
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/centos-release-notes-5.5-0.i386.rpm
Note: centos-release-5 depends on notes-package, start with that one.
<pre>
tar -cf dev.tar ./dev
</pre>
<pre>
rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/initscripts-8.45.30-2.el5.centos.i386.rpm --force --nodeps
</pre>
<pre>
exit
</pre>
<pre>
OSTEMPLATE="centos-4-i386-minimal"
OSTEMPLATE="centos-5-i386-minimal"
</pre>
<pre>
/vz/template/centos/4
/vz/template/centos/5
</pre>
<pre>
vzyum CTID upgrade
Note: If yum db-version complains do "rm /vz/root/VZNUM/var/lib/rpm/__*" to delete conflicting db.
<pre>
vzctl stop CTID
</pre>
<pre>
cd /vz/private/CTID
tar -xvf dev.tar
</pre>
<pre>
cd
</pre>
<pre>
vzctl start CTID
</pre>
<pre>
vzctl set --ipdel container_IP
</pre>
<pre>
vzctl stop CTID
</pre>
<pre>
cd /vz/private/CTID
tar --numeric-owner -zcf /vz/template/cache/centos-5.5-i386-minimal.tar.gz .
</pre>