## page was renamed from ZEOM/Paris/DeploiementAutomatise = 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 :''' * Boot PXE et installation netboot Ubuntu/Debian via le réseau (miroir envisageable) * Boot PXE et sauvegarde/restauration d'une image Clonezilla sur le réseau (multi-OS) === 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 [[http://www.guim.info/dokuwiki/_media/debian/fr.kbd|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 :''' * ocs_live_keymap="/usr/share/keymaps/i386/azerty/fr-latin9.kmap.gz" : le clavier est en azerty/fr-latin9 * ocs_lang=fr_FR.UTF-8 est en français * ocs_numlk="on", le num lock est activé '''Donc, reste à automatiser :''' * les options : * le montage vers le serveur NFS qui contient les images --- je viens de voir ça : ocs_img_repo_dir=/home/partimag