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!