Outils pour utilisateurs

Outils du site


public:kb:unix:clonezilla_installation

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
public:kb:unix:clonezilla_installation [2014/03/26 09:49] – [Problème de mot de passe sur le client] raphael.amatopublic:kb:unix:clonezilla_installation [2025/01/06 17:17] (Version actuelle) – supprimée laurent.joly
Ligne 1: Ligne 1:
-<WRAP tabs> 
-  * [[:start|Accueil]] 
-  * [[:public:kb|KB]] 
-</WRAP> 
-====== Installation CloneZilla Server ====== 
- 
-  * Testée sur Ubuntu server 12.04 32bit 
- 
-====== Prérequis ====== 
- 
- 
-  * Activer les dépôts universe et multiverse 
-  * Ajouter les dépôts drbl au sources.list 
-  * Le source.list doit ressembler à ca : 
- 
-| ''deb http://fr.archive.ubuntu.com/ubuntu precise main restricted universe multiverse \\ 
-deb http://fr.archive.ubuntu.com/ubuntu precise-updates main restricted universe multiverse \\ 
-deb http://fr.archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse \\ 
-deb http://drbl.sourceforge.net/drbl-core drbl stable'' | 
- 
-  * Ajouter le proxy au fichier /etc/wgetrc : 
- 
-| ''http_proxy = http://arwen.iutsf.lan:3128/\\ 
-use_proxy = on'' | 
- 
-  * Récupérer la clé publique du dépôt drbl : 
- 
-| ''wget -q http://drbl.org/GPG-KEY-DRBL -O- | sudo apt-key add -'' | 
- 
-  * Lancer un apt-get update et un apt-get upgrade 
-  * Supprimer le network-manager et le resolvconf : 
- 
-| ''sudo apt-get remove network-manager\\ 
-sudo apt-get remove resolvconf'' | 
- 
-  * Créer une interface réseau "fictive" pour simuler le WAN (CloneZilla requiert 2 NIC) 
-  * Le fichier /etc/network/interfaces doit donc ressembler à cela : 
- 
-| ''# interface virtuelle nécessaire pour CloneZilla\\ 
-# Simulation du WAN\\ 
-auto eth0:0\\ 
-iface eth0:0 inet static\\ 
-  address 10.0.0.1\\ 
-  netmask 255.255.255.0\\ 
-  gateway 10.0.0.1\\ 
-\\ 
-# The primary network interface\\ 
-auto eth0\\ 
-iface eth0 inet static\\ 
-  address 10.14.72.18\\ 
-  netmask 255.255.252.0\\ 
-  network 10.14.72.0\\ 
-  broadcast 10.14.75.255\\ 
-  gateway 10.14.72.1'' | 
- 
- 
-====== Installation de DRBL ====== 
- 
- 
-  * Installer DRBL : 
- 
-| ''sudo apt-get install drbl'' | 
- 
-  * Lancer le script d'installation du serveur DRBL : 
- 
-| ''sudo /opt/drbl/sbin/drblsrv -i'' | 
- 
-  * Suivre la même configuration que sur les captures ci-dessous 
-{{:public:install_clonezilla_0.png?direct&650|install_clonezilla_0}}\\ 
-{{:public:install_clonezilla_1.png?direct&650|install_clonezilla_1}}\\ 
-{{:public:install_clonezilla_2.png?direct&650|install_clonezilla_2}}\\ 
-{{:public:install_clonezilla_3.png?direct&650|install_clonezilla_3}}\\ 
- 
-  * Lancer le script de configuration du serveur DRBL : 
- 
-| ''sudo /opt/drbl/sbin/drblpush -i'' | 
- 
-  * Suivre la même configuration que sur les captures ci-dessous 
-{{:public:install_clonezilla_4.png?direct&650|install_clonezilla_4}}\\ 
-{{:public:install_clonezilla_5.png?direct&650|install_clonezilla_5}}\\ 
-{{:public:install_clonezilla_6.png?direct&650|install_clonezilla_6}}\\ 
-{{:public:install_clonezilla_7.png?direct&650|install_clonezilla_7}}\\ 
-{{:public:install_clonezilla_8.png?direct&650|install_clonezilla_8}}\\ 
-{{:public:install_clonezilla_9.png?direct&650|install_clonezilla_9}}\\ 
-{{:public:install_clonezilla_10.png?direct&650|install_clonezilla_10}}\\ 
-{{:public:install_clonezilla_11.png?direct&650|install_clonezilla_11}}\\ 
-{{:public:install_clonezilla_12.png?direct&650|install_clonezilla_12}}\\ 
-{{:public:install_clonezilla_13.png?direct&650|install_clonezilla_13}}\\ 
- 
-  * Stopper le serveur DHCP installé par DRBL 
- 
-| ''sudo service isc-dhcp-server stop'' | 
- 
-  * Désactiver le démarrage automatique du serveur DHCP ISC 
- 
-| ''sudo update-rc.d -f isc-dhcp-server remove'' | 
- 
-  * Modifier le fichier /etc/exports pour autoriser le partage NFS pour les réseaux de l'IUT 
- 
-| ''#/etc/exports\\ 
-# Réseau 10.14.72.0/24\\ 
-/tftpboot/node_root 10.14.72.0/24(ro,async,no_root_squash,no_subtree_check)\\ 
-/usr 10.14.72.0/24(ro,async,no_root_squash,no_subtree_check)\\ 
-/opt 10.14.72.0/24(ro,async,no_root_squash,no_subtree_check)\\ 
-/home 10.14.72.0/24(rw,sync,no_root_squash,no_subtree_check)\\ 
-/var/spool/mail 10.14.72.0/24(rw,sync,root_squash,no_subtree_check)\\ 
-/home/partimag 10.14.72.0/24(rw,sync,async,no_root_squash,no_subtree_check)\\ 
-\\ 
-# Réseau 10.14.73.0/24\\ 
-/tftpboot/node_root 10.14.73.0/24(ro,async,no_root_squash,no_subtree_check)\\ 
-/usr 10.14.73.0/24(ro,async,no_root_squash,no_subtree_check)\\ 
-/opt 10.14.73.0/24(ro,async,no_root_squash,no_subtree_check)\\ 
-/home 10.14.73.0/24(rw,sync,no_root_squash,no_subtree_check)\\ 
-/var/spool/mail 10.14.73.0/24(rw,sync,root_squash,no_subtree_check)\\ 
-/home/partimag 10.14.73.0/24(rw,sync,async,no_root_squash,no_subtree_check)\\ 
-\\ 
-# Réseau 10.14.74.0/24\\ 
-/tftpboot/node_root 10.14.74.0/24(ro,async,no_root_squash,no_subtree_check)\\ 
-/usr 10.14.74.0/24(ro,async,no_root_squash,no_subtree_check)\\ 
-/opt 10.14.74.0/24(ro,async,no_root_squash,no_subtree_check)\\ 
-/home 10.14.74.0/24(rw,sync,no_root_squash,no_subtree_check)\\ 
-/var/spool/mail 10.14.74.0/24(rw,sync,root_squash,no_subtree_check)\\ 
-/home/partimag 10.14.74.0/24(rw,sync,async,no_root_squash,no_subtree_check)\\ 
-\\ 
-# Réseau 10.14.75.0/24\\ 
-/tftpboot/node_root 10.14.75.0/24(ro,async,no_root_squash,no_subtree_check)\\ 
-/usr 10.14.75.0/24(ro,async,no_root_squash,no_subtree_check)\\ 
-/opt 10.14.75.0/24(ro,async,no_root_squash,no_subtree_check)\\ 
-/home 10.14.75.0/24(rw,sync,no_root_squash,no_subtree_check)\\ 
-/var/spool/mail 10.14.75.0/24(rw,sync,root_squash,no_subtree_check)\\ 
-/home/partimag 10.14.75.0/24(rw,sync,async,no_root_squash,no_subtree_check)'' | 
- 
-  * Relancer le service NFS : 
- 
-| ''sudo service nfs-kernel-server restart''| 
- 
-  * Lancer la commande suivante : 
- 
-| ''sudo /opt/drbl/sbin/dcs'' | 
- 
-  * Configurer maintenant CloneZilla Server : 
-{{:public:clonezilla_0.png?direct&650|CloneZilla_0}} 
-{{:public:clonezilla_1.png?direct&650|CloneZilla_1}} 
- 
- 
-====== TroubeShooting ====== 
- 
-**Pensez à regarder les logs ! /var/log** 
-===== Problème de montage du dossier /usr sur le client ===== 
- 
- 
-  * Modifier le script /tftpboot/node_root/sbin/init ligne 195 : 
- 
-| ''  # Try to use gateway as NFS server\\ 
-  gateway="$(LANG=C route -n | awk '/^0.0.0.0/ {print $2}')"\\ 
-  if [ -n "$gateway" ]; then \\ 
-    nfsserver=**$nfsserver_default** \\ 
-  else\\ 
-    echo "NFSSERVER is not found, use default one: \"$nfsserver_default\"."\\ 
-    nfsserver=$nfsserver_default\\ 
-  fi\\ 
-fi'' | 
- 
-  * Editer le fichier /tftpboot/node_rote/etc/diskless-image/config : ajouter le champ nfsserver_default 
- 
-| ''nfsserver_default=**10.14.72.18**\\ 
-nfsimagedir=/tftpboot/node_root\\ 
-nfshostsdir=/tftpboot/nodes\\ 
-nameserver=10.14.72.6\\ 
- 
-NFSSERVER_LIST="10.14.72.18"'' | 
- 
-===== Problème de démarrage en TFTP sur le client ===== 
- 
-  * Démarrer le service TFTP sur le serveur : 
- 
-| ''sudo service tftpd-hda start'' | 
- 
-===== Problème de montage des partages NFS sur le client ===== 
- 
-  * Editer le fichier /etc/hosts.allow sur le serveur, ajouter la ligne : 
- 
-| ''ALL: .iutsf.lan'' | 
- 
-===== Problème de mot de passe sur le client ===== 
- 
-  * Le démarrage par mot de passe PXE ne fonctionne pas de base 
-  * Il faut : 
-    * Editer le script <del>/opt/drbl/bin/drbl-sha1pass</del> /usr/share/drbl/bin/drbl-sha1pass, et modifier la ligne 15 comme suit :\\ 
- 
-| ''use Digest::SHA;'' | 
- 
-  * puis lancer le script /opt/drbl/sbin/drbl-pxe-passwd -e 
-===== Supprimer le mot de passe pour le boot local du client ===== 
- 
-  * Editer le fichier /tftpboot/nbi_img/pxelinux.cfg/default 
-  * Commenter la ligne 59 : ''# MENU PASSWD '' 
- 
- 
-===== Problème du wake on lan ===== 
- 
-  * La commande etherwake est lancée avec l'argument -i par défault 
-  * Pour corriger ça, éditer le fichier /opt/drbl/bin/drbl-doit ligne 159 et supprimer l'option -i et son argument : 
- 
-| ''$ETH_WAKE -i $iport $ethernet_address'' **devient** ''$ETH_WAKE $ethernet_address'' | 
  
public/kb/unix/clonezilla_installation.1395823762.txt.gz · Dernière modification : 2014/03/26 09:49 de raphael.amato