HOWTO: Upgrading images
These instructions can be followed if you already have a working image but want to upgrade to a newer version of a distribution. Always back up your image before attempting a major upgrade.
How do I upgrade a Centos 4.1 guest image to 4.2?
Back everything up!
Start the guest image
Edit /etc/yum.conf to point to a valid CentOS 4.2 repository
yum upgrade (this will take a while)
Post-upgrade tweaks (to avoid various errors during startup and shutdown)
The hwclock error can be fixed by replacing /sbin/hwclock with an empty shell script.
The tls emulation error can be fixed by moving /lib/tls to /lib/tls.disabled
Edit /etc/rc.d/rc.sysinit: remove lines 77-87 (tty spawn) and 213 (raid)