We are here discussing the steps to completely uninstall HyperVM.For this, you have to run these commands on the server. Please note that there is no coming back. So do it safe and secure.
Let’s remove the HyperVM startup script first.
service hypervm stop
/etc/init.d/hypervm stop
chkconfig hypervm off
chkconfig –del hypervm
rm -f /etc/init.d/hypervm
Resetting the MySQL root password, so that we can delete the HyperVM DB later on. Please note that this php script can be used to reset the MySQL root password anywhere on any Linux box. Do note that password of hypervm db user can be found at /usr/local/lxlabs/hypervm/etc/conf/hypervm.pass and it could match with root password.
cd /usr/local/lxlabs/hypervm/bin/common/misc/
php reset-mysql-root-password.phps
Removing the files associated with the installation.
rpm -e lxphp lxzend lxlighttpd
rm -rf /usr/local/lxlabs/
rm -rf /home/hypervm/
rm -rf /etc/xen/hypervm
rm -rf /etc/rc.d/init.d/hypervm
rm -rf /var/cache/hypervm
rm -rf /home/lxlabs
rm -rf /root/.etc/xxwin/gtk/lxlabs
rm -rf /usr/sbin/lxrestart
rm -rf /usr/bin/lxxen
rm -rf /usr/bin/lxopenvz
rm -rf /etc/yum.repos.d/lxlabs.repo
rm -rf /root/.etc/misc/lxlabs.repo
rm -rf /boot/lxxen-initrd.img
rm -rf /var/log/lxint*
rm -rf /var/cache/yum/lxlabsupdate
rm -rf /var/cache/yum/lxlabslxupdate
Also, you would need to remove the HyperVM DB as well. For that connect to the MySQL server and drop the database as well.
Credits : Umbrahosting – http://www.webhostingtalk.com/showthread.php?t=867927