Déploiement automatisé Ubuntu/Debian par PXE/NETBOOT/CLONEZILLA

Le but de l'opération est de pouvoir faire une installation de Ubuntu ou sauvegarder/restaurer une image via le système de boot réseau PXE.

Deux Options :

Installation d'Ubuntu par le réseau (PXE)

Configuration de base à faire PXE et Ubuntu/PXE

Et deux, trois trucs en plus pour le fun (clavier azerty et un petit menu):

# Extrait de /var/lib/tftpboot/pxelinux.cfg/default
DEFAULT disque
PROMPT 1
TIMEOUT 0
KBDMAP fr.kbd      --> Pour avoir le clavier azerty 
DISPLAY boot.txt   --> Pour ajouter un menu 

~

fr.kbd trouvable ici

# Extrait de /var/lib/tftpboot/boot.txt
=============
- Boot Menu -
=============

jaunty
clonezilla

Pour le boot menu : http://www.debian-administration.org/articles/478

Installation totalement automatisée

Reste à personnaliser l'installation avec "preseed"...........

Configuration Clonzilla live sur un serveur PXE

Configuration basée sur http://clonezilla.org/clonezilla-live/livepxe.php

# mkdir /var/lib/tftpboot/clonezilla
# cd /tmp
# wget http://sourceforge.net/projects/clonezilla/files/clonezilla_live_stable/clonezilla-live-1.2.2-31.zip/download
# unzip clonezilla-live-1.2.2-31.zip
# cp live/vmlinuz1 /var/lib/tftpboot/clonezilla/
# cp live/initrd1.img /var/lib/tftpboot/clonezilla/
# cp live/filesystem.squashfs /var/lib/tftpboot/clonezilla/

# extrait de /var/lib/tftpboot/pxelinux.cfg/default

# Clonezilla
label clonezilla
MENU LABEL Clonezilla Live
kernel clonezilla/vmlinuz1
append initrd=clonezilla/initrd1.img boot=live union=aufs noswap noprompt vga=788 ocs_live_keymap="/usr/share/keymaps/i386/azerty/fr-latin9.kmap.gz" ocs_live_keymap=NONE ocs_lang=fr_FR.UTF-8 ocs_numlk="on" ocs_live_batch="no" fetch=tftp://192.168.0.10/clonezilla/filesystem.squashfs

Pour le moment :

Donc, reste à automatiser :

--- je viens de voir ça : ocs_img_repo_dir=/home/partimag

ZEO/Paris/DeploiementAutomatise (dernière édition le 2012-04-09 02:59:05 par JeanChristopheAndré)