Changes

Jump to: navigation, search

A managed OpenVZ installation

6 bytes removed, 10:32, 17 July 2009
spelling fixes
This article will show a managed installation of OpenVZ based on Debian Lenny (Debian 5.0) and some other interesting software pices pieces like PuppetMaster. It is mainly written to show how to manage more than one OpenVZ server in a productive production environment.
==Pre-Requierements==
===How to start the preseed setup===
Simply download the Netinstall CD from a Debain Debian mirror put it in your drive an boot the computer. After booting from the CD you should see the Debian Grub Boot menu. In this menu you should select the "Advanced Option" and in the follwing following menu place your coursor cursor on "Automated install" - '''but do not press enter!'''
You have to edit this boot menu entry by pressing the '''TAB''' key. Now you can append the '''URL''' option to the end of this boot line. Now press enter and continue the setup. Here is an example and a screenshotscreen shot.
<pre> URL=http://yourserver:yourport/yourpreseedfile</pre>
[[Image:Notbuu_1_preseed.png|200px|thumb|Grub menu screen]]
The apt-proxy setup is as easy as 1-2-3 go.
Here is the preseed file, please note the I have removed the comments but I make some explanations for clearer understanding:
<pre>
method{ format } format{ } $lvmok{ } \
use_filesystem{ } filesystem{ ext3 } \
mountpoint{ /var } \
. \
4096 4096 4096 linux-swap \
xserver-xorg xserver-xorg/config/monitor/mode-list \
select 1024x768 @ 60 Hz
#Packages that gets installated installed AFTER the base installation
#hns* packages are build by our own to fasten the setup and management
d-i preseed/late_command string apt-install hp-health hp-snmp-agents hpsmh hp-smh-templates hpacucli cpqacuxe ethtool linux-headers-2.6-openvz-amd64 linux-image-2.6-openvz-amd64 vzctl vzquota hns-zabbix-agentd hns-openvz-common hns-openvz-ubuntu-hosting hns-puppet firmware-qlogic
In our case the private repository is an essential factor because it will provide you with a fast software roll out, replicable software and consistent system state trough a large number of setups.
It is quite easy to setup your own repositor repository with reprepro <ref>http://mirrorer.alioth.debian.org/</ref> and it is really useful.
As you can see in the preseed file we have a lot of this packages in our repository. Some examples:
To make life easier we decided to use a configuration management like cfengine<ref>http://www.cfengine.org/</ref> but not as complex in setup and management. We found our solution in Puppet Master.
The only dependency Puppet Master has is Ruby. This should be installalbe installable on every ditribution distribution in minutes.
After the installation you have to configure the Puppet Master to do things. Typically this means accepting the public private key pair and doing some configuration stuff. At our site use Puppet Master to manage an installation of about 100 servers.

Navigation menu