Ultéo Serveur Linux
OpenVz Serveur
12/07/2011
Configuration matériel
Serveur Lynx CALLEO Infrastructure 1160 * Serveur barebone Lynx 19", 1 U - Intel® C204 - 1 processeur avec socle LGA 1155 - Mémoire principale max. 32 Go, 4x DIMM DDR3 - 4x 3.5" - Intel® C204 PCH (2x SATA/600 + 4x SATA/300) onboard - Dual Gigabit Ethernet LAN onboard (Intel® 82574L + Intel® 82579LM) Fast Ethernet LAN onboard (Realtek® RTL8201N PHY dédié pour IPMI) - Winbond® WPCM450 BMC IPMI 2.0 Servermanagement avec prise en charge de Virtual media over LAN et de KVM-over-LAN onboard - Matrox® G200eW onboard - 1x PCI Express 2.0 x8 (slot x8, pleine hauteur/pleine longueur) - 2x USB 2.0 - 1x VGA, 4x USB 2.0, 1x série, 3x RJ45, 2x PS/2 - 1x série, 2x USB 2.0 - Bloc alimentation 400 W (80 PLUS® GOLD, 1+1 redondant) * Processeur Intel® Core i3-2100 (cache 3 Mo, 3,10 GHz, 5.0 GT/s, VT-x) * 2x DIMM DDR3, 4 Go, 1333 MHz, sans tampon, ECC, PC3-10600 * 2x Disque dur Enterprise SATA-2, 500 Go, 7200 t/min * Contrôleur RAID Intel C204 onboard, prend en charge la technologie Intel® Matrix Storage (NCQ, Hot Plug, RAID 0, 1, Matrix RAID, Windows uniquement) * Contrôleur RAID hardware 3ware 9650SE-2LP SATA-2, PCIe (x1) - <li>2 x SATA-2 internes - <li>128 Mo DDR2-533 onboard - <li>RAID 0, 1, JBOD - <li>Windows, Linux et VMware * Lecteur DVD+/-RW double couche * Service Bronze: 3 ans de service sur site, réaction le lendemain (NBD). Service assuré les jours ouvrables du lundi au vendredi de 8h à 18h (MET). Les conditions contractuelles générales sont d'application pour les services Lynx.
Configuration disques
RAID 1 matériel 2x500Go SATA2
Sys. de fichiers Taille Uti. Disp. Uti% Monté sur /dev/sda1 92G 2,6G 85G 3% / tmpfs 3,9G 0 3,9G 0% /lib/init/rw udev 10M 152K 9,9M 2% /dev tmpfs 3,9G 0 3,9G 0% /dev/shm /dev/sda3 359G 1,4G 340G 1% /var/lib/vz
Configuration Système
- aptitude install linux-image-2.6.32-5-openvz-amd64 linux-headers-2.6.32-5-openvz-amd64
- aptitude install bridge-utils
Configuration Réseau
Attention la carte Intel 82579LM n'est pas reconnu
télécharger le drivers de la carte chez Intel : http://downloadmirror.intel.com/15817/eng/e1000e-1.3.17.tar.gz
- tar zxf driver.tar.gz
- cd driver/src/
- make install
- dpkg-reconfigure linux-image-2.6.32-5-openvz-amd64
Réf : http://forums.debian.net/viewtopic.php?f=5&t=65740
auto eth0 iface eth0 inet manual auto vzbr0 iface vzbr0 inet static bridge_ports eth0 address x.x.x.x netmask 255.255.255.0 network x.x.x.x broadcast x.x.x.x gateway x.x.x.x # dns-* options are implemented by the resolvconf package, if installed dns-nameservers x.x.x.x dns-search bureautique.fr.auf auto eth1 iface eth1 inet manual auto vzbr1 iface vzbr1 inet static bridge_ports eth1 address x.x.x.x netmask x.x.x.x network x.x.x.x dns-nameservers x.x.x.
Configuration OPenVZ
# vi /etc/sysctl.conf
net.ipv4.conf.all.rp_filter=1 net.ipv4.icmp_echo_ignore_broadcasts=1 net.ipv4.conf.default.forwarding=1 net.ipv4.conf.default.proxy_arp = 0 net.ipv4.ip_forward=1 kernel.sysrq = 1 net.ipv4.conf.default.send_redirects = 1 net.ipv4.conf.all.send_redirects = 0 net.ipv4.conf.eth0.proxy_arp=1
If you need to modify /etc/sysctl.conf, run
# sysctl -p
Reconnaitre le bridge
/etc/vz/vznet.conf
EXTERNAL_SCRIPT=/usr/sbin/vznetaddbr
Création des VMs
pour les templates : http://wiki.openvz.org/Download/template/precreated
- cd /var/lib/vz/template/cache
wget http://download.openvz.org/template/precreated/contrib/debian-6.0-amd64-minimal.tar.gz
- vzctl create 101 --ostemplate debian-6.0-amd64-minimal --config basic
vzctl set 101 --netif_add eth0vzbr0 --save
vzctl set 101 --netif_add eth1vzbr1 --save
- vzctl set 101 --hostname servername --save