Following on from the previous tutorial, Installing and Running OpenVZ VEs inside a Xen domU, lets demonstrate how to install HyperVM on this Xen domU.
The process is extremely simple so lets get to it!
First of all, Install iptables if not installed already. This is *apparently* used for bandwidth accounting on VPS created within HyperVM.
yum install iptables
Download the HyperVM master:
wget http://download.lxlabs.com/download/hypervm/production/hypervm-install-master.sh
Once downloaded, start installing HyperVM for OpenVZ. It is useful to add the skip-ostemplate option as it skips most (but not all) of HyperVMs outdated templates. You can download newer ones here.
sh ./hypervm-install-master.sh --virtualization-type=openvz --skip-ostemplate=true
Finally, run the following to force HyperVM again into setting the server to OpenVZ as it mistakingly sets it to Xen as the kernel is both Xen and OpenVZ capable:
cd /usr/local/lxlabs/hypervm/httpdocs/
lphp.exe ../bin/common/setdriver.php --server=localhost --class=vps --driver=openvz
All done! Enjoy creating OpenVZ VPS via HyperVM on your Xen DomU!