Tag: HyperVM
What is HyperVM & how to install HyperVM manually?
I recently posted on How to install HyperVM using a Script, however missed out on one important thing. What is HyperVM?
![]()
HyperVM is a Web interface which helps you manage multiple Virtual Private Servers having its own Operating System. Also it has the option to link more than two HyperVM Servers to create a tree of Servers. These are just the Few features that I have mentioned.
Now lets get to the installation of HyperVM. This installation is done on Fedora Core servers and Xen Kernel. Also the Memory assigned will be dedicated. The advantage of using Xen rather than OpenVZ is that when there is a load on VPS it will start loading slowly in Xen and in OpenVZ it will crash instantly. Also remember that in Xen you have to restart the VPS every time you make changes in memory and hard drive space, whereas in OpenVZ its done instantly.

First you need to download HyperVM:
wget http://download.lxlabs.com/download/hypervm/production/hypervm-install-master.sh
Then you need to make the following changes in your Server:
1) disable selinux (edit /etc/sysconfig/selinux <– change to [SELINUX=disabled])
2) setenforce 0
3) chkconfig libvirtd off
4) reboot
How to install HyperVM:
1) cd DIROFHyperVM/
2) sh ./hypervm-install-master.sh –virtualization-type=xen
It might give you a error while installing HyperVm, in this case just rerun the command. Also if it says that HyperVm is already installed just click on Yes.
After the installation is done Reboot the Server and then:
1) SSH into the Server and enter the following folder cd /usr/local/lxlabs/hypervm/httpdocs/
2) Then Run the following Command:
lphp.exe ../bin/common/setdriver.php –server=localhost –class=vps –driver=xen
3) Then Once you are done go to a Browser and using the Server IP and Port 8887 or 8888 login to the Admin page. http://IP:8887 or http://IP:8888
4) The default username and password for HyperVM are “admin” and “admin”.
5) Then you need to add the additional IP’s on the Server to the HyperVM IP pool.
6) Then you need to go to the VM tab and then click on Add Xen, set the vm name and password.
7) Yos also need to select the number of Ip’s alloted, hostname of the Server, Gateway IP.
8) In case you have multiple HyperVm Servers you have the option to add which gateway the IP class is on and if you have only one then leave it as localhost.
9) Then select the OS to be installed and the Disk Quota.
10) Also you can select how many backups are allowed for the VPS.
11) Then you dont need make changes in the next three options as they are only for OpenVZ.
12) Then set the memory to be alloted to the VPS: 128 256 512 all in MB.
13) Then setup the CPU percentage to be alloted to the VPS: 10 20 25. The CPU quota also depends on the core of the server, for single core its 100% and for Dual or Quad it increases to 200%-400%.
14) Then allot the monthly Tarffic for the VPS: TRAFFICinGB x 1024
15) In the End you need to allot the number of IP’s, and check or uncheck if backup should be allowed or not.
16) Then click “add” and the HyperVm VPS will be added.
How to install HyperVM?
It is quite Simple to install HyperVM, not that complicated if you know the basics of a Server. Also the Advantages of HyperVM are that it works with both Xen and OpenVZ.
Recently attended a Seminar about HyperVM, and was amazed how easy it is to install it and use it. The advantages are that if you use HyperVM you can provide the Cheapest VPS Hosting.
In this post we will learn how to install it on two levels Master Configuration and Slave Configuration using these scripts. Just one more thing you have to run these Scripts form the root.
Master Configuration for HyperVM:
#!/bin/sh
if ! [ -f /usr/bin/yum ] ; then
echo You at least need yum installed for this to work…
echo Please contact our support personnel Or visit the forum at
http://forum.lxlabs.com
echo “ “
exit
fi
if [ -f /usr/bin/yum ] ; then
yum -y install php wget zip unzip
else
up2date –nox –nosig php wget zip unzip
fi
if ! [ -f /usr/bin/php ] ; then
echo installing php failed. Please fix yum/up2date.
exit
fi
rm -f program-install.zip
wget http://download.lxlabs.com/download/program-install.zip
export PATH=/usr/sbin:/sbin:$PATH
unzip -oq program-install.zip
cd program-install/hypervm-linux
php lxins.php –install-type=master $* | tee hypervm_install.log
Slave Configuration for HyperVM:
#!/bin/sh
if ! [ -f /usr/bin/yum ] ; then
echo You at least need yum installed for this to work…
echo Please contact our support personnel Or visit the forum at
http://forum.lxlabs.com
echo “ ”
exit
fi
if [ -f /usr/bin/yum ] ; then
yum -y install php wget zip unzip
else
up2date –nox –nosig php wget zip unzip
fi
if ! [ -f /usr/bin/php ] ; then
echo installing php failed. Please fix yum.
exit
fi
rm -f program-install.zip
wget http://download.lxlabs.com/download/program-install.zip
export PATH=/usr/sbin:/sbin:$PATH
unzip -oq program-install.zip
cd program-install/hypervm-linux
php lxins.php –install-type=slave $* | tee hypervm_install.log




















