Managing OpenVZ With HyperVM On CentOS 5.2 - Page 2

The next thing you are asked to do is configure LXguard. LXguard is a tool like fail2ban or DenyHosts that blocks remote IP addresses from which too many logins originated (this is to prevent brute-force attacks).

Fill in the max. number of failed login attempts that are allowed before LXguard kicks in and blocks the IP:

You should then go to the Whitelist tab and whitelist your own IP (so that you don't get locked out if you use a wrong login too often):

This is how the HyperVM Home looks. You should browse all the icons to make yourself a little bit more familiar with the software.

Before we can create our first OpenVZ container, we need to define an IP pool from which new containers can take an IP address. Go to Ip Pools. On the Ip Pools page, click on the Add Ip Pool tab:

Fill in a name for the pool, a start and an end IP address, at least one name server (if you fill in more than one, separate them with a space), and the gateway IP address. Then select the server (localhost) that this pool is applicable to:

Afterwards you should see the new pool on the Ip Pools overview page:

Besides creating an IP pool, we must also define at least one resource plan before we can create our first OpenVZ container. On the HyperVM Home, click on Resource Plans, and then on the Add Resource Plan tab:

Fill in a name and description and then specify the resources for each OpenVZ container that will use this resource plan:

Now we can create our first OpenVZ container. Click on the Virtual Machines icon in the Resources section of the HyperVM Home; on the page that loads, click on the Add Openvz tab:

Provide a name for that new OpenVZ container and fill in a root password. Type in a free IP address from the IP pool that you've created before,...

... provide a hostname, select the resource plan you've just created and an OS template for the container, then click on Add:

After a few moments, you should see your new container on the Virtual Machines overview page. You can start and stop the container by clicking on the bulb in the S column, but you can as well control it from its own control panel that you can reach by clicking on the container's name in the VM Name column:

This is how the container's control panel looks:

Congratulations, you've just created your first OpenVZ container with HyperVM!

Share this page:

10 Comment(s)

Add comment

Comments

From: Kamik at: 2009-02-14 16:23:12

So for clarify you are not paying for use of OpenVZ, but you pay here for management system (hyperVM) licences.

From: Kamik at: 2009-02-14 16:30:23

Iam sorry I have pasted wrong URL, licensing informations are here on lxlabs WiKi

From: bilety lotnicze at: 2009-02-04 07:02:06

Very interesting article. Thanks

From: Adam at: 2009-02-05 05:21:51

If you start running 5 vms++ then you will be better of with xen. It is better performance wise in a multiple vm environment, it comes with CentOS and you dont have to pay a dime.

 -Adam

From: Kamik at: 2009-02-04 23:30:25

Licensing information can be found at http://www.i4wifi.cz/?cls=stoitem&stiid=747 In short it says that you can use 2 VMs after installation and up to 5 VMs after you register on their system. Up to 9 VMs you are paying only for those that  are over your 5 free VMs. So if you have 7 VMs running it will charge you money for 2 licences. When you register 10 VMs with your license all free licences are GONE and you start paying for all of them.

From: Anonymous at: 2009-05-02 02:53:35

Hello,

HyperVM and lxadmin Licenses

If we use HyperVM 5 VPS and lxadmin 40 domain for demo or testing purpose its free.

All production HyperVM systems charges 50cents/VPS/month.

if we use Lxadmin with HyperVM it is $3/month for unlimited domains

VPS managed by different virtualization manager is $18/month

From: Rob at: 2009-02-03 19:04:24

The documentation for Hypervm leaves much to be asked.. You have done the community a great service once again.. Thanks

From: eXcalibre at: 2010-08-19 04:02:37

This thread is still very much alive as the exact same process works for future versions of centos too.

It's worth mentioning that there are more templates available to install along with the default centos5 template.


http://wiki.openvz.org/Download/template/precreated


place the downloaded .gz files in the /vm/templates/cache/  folder in order to select them when creating a new Machine/Container.


Great Tut BTW


at the time of writing these are the templates available from the above link

centos-4-x86.tar.gz  
centos-4-x86_64.tar.gz 
centos-5-x86-devel.tar.gz  
centos-5-x86.tar.gz  
centos-5-x86_64-devel.tar.gz  
centos-5-x86_64.tar.gz  
debian-3.1-x86.tar.gz  
debian-4.0-x86.tar.gz 
debian-4.0-x86_64.tar.gz 
debian-5.0-x86.tar.gz  
debian-5.0-x86_64.tar.gz  
fedora-9-x86.tar.gz  
fedora-9-x86_64.tar.gz  
fedora-10-x86.tar.gz  
fedora-10-x86_64.tar.gz  
fedora-11-x86.tar.gz  
fedora-11-x86_64.tar.gz 
fedora-12-x86.tar.gz  
fedora-12-x86_64.tar.gz 
fedora-13-x86.tar.gz 
fedora-13-x86_64.tar.gz 
suse-11.1-x86.tar.gz  
suse-11.1-x86_64.tar.gz  
ubuntu-7.10-x86.tar.gz 
ubuntu-7.10-x86_64.tar.gz  
ubuntu-8.04-x86.tar.gz  
ubuntu-8.04-x86_64.tar.gz 
ubuntu-8.10-x86.tar.gz  
ubuntu-8.10-x86_64.tar.gz 
ubuntu-9.04-x86.tar.gz 
ubuntu-9.04-x86_64.tar.gz  
ubuntu-9.10-x86.tar.gz 
ubuntu-9.10-x86_64.tar.gz 
ubuntu-10.04-x86.tar.gz  
ubuntu-10.04-x86_64.tar.gz


Enjoy

From: Life Tester at: 2009-02-22 21:21:14

but please look into the advanced topics as well: importing/moving VMs, reconnecting servers, selecting another master? :-)

From: Vikas Saini at: 2009-06-23 02:03:27

This article is really awesome ! I followed all instructions on my centos 5.3 dedicated server and everything went fine.........

 Now, I have my own VPS on my own dedicated server... This helps me to reduce cpanel cost from $36 to $14 :) :) ............