Changes

Jump to: navigation, search

Centos Upgrade 4.x to 5.x

324 bytes added, 13:19, 23 July 2008
no edit summary
exit
</pre>
7 - In /etc/vz/conf/CSID.conf replace<pre>OSTEMPLATE="centos-4-i386-minimal"</pre>to<pre>OSTEMPLATE="centos-5-i386-minimal"</pre>8 - Coppy existing template from<pre>/vz/template/centos/4</pre>to<pre>/vz/template/centos/5</pre>9 - In /vz/template/centos/4/i386/config/yum.conf change mirrors to CentOS 5 10 - Upgrade container packages using vzyum (32bit only)
<pre>
vzyum CTID upgrade
Note: on 64-bit yum db-version might complain. Do "rm /vz/root/VZNUM/var/lib/rpm/__*" to delete conflicting DB.
8 11 - Stop your VE
<pre>
vzctl stop CTID
</pre>
9 12 - Replace the new /dev/ with the old one
<pre>
cd /vz/private/CTID
tar -xvf dev.tar
</pre>
10 13 - Leave the container private dir (or it will not stard)
<pre>
cd
</pre>
11 14 - Start the container
<pre>
vzctl start CTID
</pre>
12 15 - Remove container IP
<pre>
vzctl set --ipdel container_IP
</pre>
13 16 - Stop container
<pre>
vzctl stop CTID
</pre>
14 17 - Create the template
<pre>
cd /vz/private/CTID
tar -zcf /vz/template/cache/centos-5.0-i386-minimal.tar.gz .
</pre>
8
edits

Navigation menu