Serveur FOG : Installation

Transcription

Serveur FOG : Installation
2016/10/01 04:57
1/11
Serveur FOG : Installation
Serveur FOG : Installation
FOG permet de gérer des images disques de postes sous Windows ou Linux
Choix de la machine
Un PC bureautique ordinaire peut suffire s'il n'est pas allumé en permanence.
Le disque dur devra être de taille à recevoir les images disques.
Une carte réseau 1Gb/s est recommandée… si les concentrateurs suivent !
Il est possible de déplacer la machine pour la mettre sur le même concentrateur que les
machines à cloner.
Choix de la distribution
Distribution recommandée : Ubuntu,
en version serveur (sans environnement graphique) dont les services démarrent sans
authentification, machine facile à déplacer, car fonctionne même sans écran,
ou normale (avec environnement graphique), permettra aussi d'utiliser la console dans le
navigateur de cette machine.
Adresse recommandée : l'adresse IP du Scribe +1, c'est-à-dire : 172.x.y.3.
Installation manuelle
Installation d'Ubuntu serveur
Télécharger Ubuntu serveur, versions LTS 64 bits (“long term support”) conseillées :
http://www.ubuntu-fr.org/telechargement?variante=server
Ubuntu 14.04 64 bits n'est pas conseillée actuellement (juin 2014), cf
http://www.fogproject.org/wiki/index.php/Ubuntu_14.04
Ubuntu 12.04 64 bits est donc conseillée actuellement :
lien direct vers Ubuntu 12.04 serveur 64 bits :
http://releases.ubuntu.com/12.04/ubuntu-12.04.4-server-amd64.iso
ou vers Ubuntu 12.04 serveur 32 bits :
http://releases.ubuntu.com/12.04/ubuntu-12.04.4-server-i386.iso
Installer en suivant les étapes, en particulier le paramétrage de la carte réseau en adressage
statique : Captures d'écran commentées d'installation
Mettre à jour :
sudo apt-get update
sudo apt-get upgrade
Redémarrer
Wiki des administrateurs TICE en établissement de la Réunion - http://tice974.ac-reunion.fr/wiki-administrateurs/
Last update: 2015/10/02 16:26
fog:2.installation http://tice974.ac-reunion.fr/wiki-administrateurs/doku.php?id=fog:2.installation
Depuis Ubuntu 12.04, le fichier /etc/resolv.conf est maintenant “dynamique” ; toute
modification de ce fichier sera effacée tôt ou tard.
Il faut donc incorporer le DNS dans le fichier /etc/network/interfaces, en rajoutant en fin
de fichier : dns-nameservers <ip_pedagogique_amon>, du genre 172.x.y.1 et/ou
8.8.8.8.
Pour éditer ce fichier la commande est :
nano /etc/network/interfaces
Installation de FOG
Si on installe un serveur FOG pour la 1ere fois, on peut passer directement à la version 1.x.
Si on a déjà des images qu'on veut réutiliser, il faut installer la version 0.32 puis la mettre à jour
vers 1.xx
L'installation de base de FOG reste la même quelle que soit la version, cf
http://www.fogproject.org/wiki/index.php?title=FOGUserGuide#Installation_on_different_distributions_
of_Linux :
Ouverture du proxy authentifiant sur Amon
Si le proxy authentifiant du serveur Amon est activé (et il devrait l'être !), il faut exclure le serveur
FOG de l'authentification, cf
http://eoleng.ac-dijon.fr/documentations/2.3/completes/HTML/ModuleAmon/co/03-exceptions.html
Sur l'EAD d'Amon, dans Configuration générale / Cache et Authentification / Destinations ;
entrer l'adresse IP ou le nom du domaine ;
cocher Ne pas authentifier les accès ;
valider.
Installation de FOG 1.x
Télécharger le paquet FOG 1.x dans le répertoire /opt :
cd /opt
sudo wget
http://sourceforge.net/projects/freeghost/files/latest/latest_fog.tar.gz
Décompresser :
latest_fog.tar.gz
Le dossier décompressé sera automatiquement renommé suivant le nom de la
version téléchargée (fog_1.xxx)
Installer et répondre aux questions :
cd /opt/fog_1.xxx/bin/
http://tice974.ac-reunion.fr/wiki-administrateurs/
Printed on 2016/10/01 04:57
2016/10/01 04:57
3/11
Serveur FOG : Installation
sudo ./installfog.sh
Pour le détail de la procédure, voir “Installation de FOG 0.32” ci-dessous.
Installation de FOG 0.32
Pour mémoire, ou installation d'un serveur avec récupération manuelle d'images existantes.
Télécharger le paquet FOG 0.32 dans le répertoire /opt :
cd /opt
sudo wget
http://downloads.sourceforge.net/project/freeghost/FOG/fog_0.32/fog_0.32.tar
.gz
* Décompresser : ''sudo tar -xvzf fog_0.32.tar.gz
''
Précision sur l'installation :
ne mettant surtout pas le serveur FOG comme serveur DHCP !
lors de l'installation de mysql, refuser (3 fois) de mettre un mot de passe pour mysql (il
sera mis lors de l'installation de fog)
Installer et répondre aux questions :
cd /opt/fog_0.32/bin/
sh installfog.sh
..#######:.
..,#,..
.::##::.
.:######
.:;####:......;#;..
...##...
...##;,;##::::.##...
,#
...##.....##:::##
..::
##
.::###,,##.
. ##.::#.:######::.
...##:::###::....#. .. .#...#. #...#:::.
..:####:..
..##......##::## .. #
# .
...##:,;##;:::#: ... ##..
.# .
.:;####;::::.##:::;#:..
#
..:;###..
###########################################
#
FOG
#
#
Free Computer Imaging Solution
#
#
#
#
Created by:
#
#
SyperiorSoft
#
#
http://www.SyperiorSoft.com
#
#
Developers:
#
#
Chuck Syperski
#
#
Jian Zhang
#
#
#
#
GNU GPL Version 3
#
###########################################
Wiki des administrateurs TICE en établissement de la Réunion - http://tice974.ac-reunion.fr/wiki-administrateurs/
Last update: 2015/10/02 16:26
fog:2.installation http://tice974.ac-reunion.fr/wiki-administrateurs/doku.php?id=fog:2.installation
Version: 0.32 Installer/Updater
installfog.sh: 1: ../lib/common/input.sh: Bad substitution
What version of Linux would you like to run the installtion for?
1) Redhat Based Linux (Fedora, CentOS)
2) Ubuntu Based Linux (Kubuntu, Edubuntu)
Choice: [2]2
Starting Ubuntu Installtion.
FOG Server installation modes:
* Normal Server: (Choice N)
This is the typical installation type and
will install all FOG components for you on this
machine. Pick this option if you are unsure what to pick.
* Storage Node: (Choice S)
This install mode will only install the software required
to make this server act as a node in a storage group
More information:
http://www.fogproject.org/wiki/index.php?title=InstallationModes
What type of installation would you like to do? [N]
What is the IP address to be used by this FOG Server? []172.19.192.20
Would you like to setup a router address for the DHCP server? [Y/n]Y
What is the IP address to be used for the router on the DHCP server?
[]172.19.192.2
Would you like to setup a DNS address for the DHCP server and client boot
image? [Y/n] Y
What is the IP address to be used for DNS on the DHCP server and client
boot image? [172.19.192.1]172.19.192.1
Would you like to change the default network interface from eth0?
If you are not sure, select No. [y/N]N
Would you like to use the FOG server for dhcp service? [Y/n] N
DHCP will not be setup but you must setup your
current DHCP server to use FOG for pxe services.
On a Linux DHCP server you must set:
next-server
On a Windows DHCP server you must set:
http://tice974.ac-reunion.fr/wiki-administrateurs/
Printed on 2016/10/01 04:57
2016/10/01 04:57
5/11
Serveur FOG : Installation
option 066 & 067
This version of FOG has internationalization support, would
you like to install the additional language packs? [Y/n] Y
#####################################################################
FOG now has everything it needs to setup your server, but please
understand that this script will overwrite any setting you may
have setup for services like DHCP, apache, pxe, tftp, and NFS.
It is not recommended that you install this on a production system
as this script modifies many of your system settings.
This script should be run by the root user on Fedora, or with sudo on
Ubuntu.
Here are the settings FOG will use:
Distro: Ubuntu
Installation Type: Normal Server
Server IP Address: 172.19.192.20
DHCP router Address: 172.19.192.2
DHCP DNS Address: 172.19.192.1
Interface: 172.19.192.3
Using FOG DHCP:
Internationalization: 1
Are you sure you wish to continue (Y/N) Y
Installation Started...
Installing required packages, if this fails
make sure you have an active internet connection.
* Preparing apt-get
* Installing package: apache2
* Installing package: php5
* Installing package: php5-gd
* Installing package: php5-cli
* Installing package: php5-mysql
* Installing package: php5-curl
* Installing package: mysql-server
We are about to install MySQL Server on
this server, if MySQL isn't installed already
you will be prompted for a root password. If
you don't leave it blank you will need to change
it in the config.php file located at:
/var/www/fog/commons/config.php
Press enter to acknowledge this message.
Wiki des administrateurs TICE en établissement de la Réunion - http://tice974.ac-reunion.fr/wiki-administrateurs/
Last update: 2015/10/02 16:26
fog:2.installation http://tice974.ac-reunion.fr/wiki-administrateurs/doku.php?id=fog:2.installation
Lecture des listes de paquets...
Construction de l'arbre des dépendances...
Lecture des informations d'état...
Les paquets supplémentaires suivants seront installés :
libdbd-mysql-perl libdbi-perl libhtml-template-perl libnet-daemon-perl
libplrpc-perl libterm-readkey-perl mysql-client-5.5 mysql-client-core-5.5
mysql-server-5.5 mysql-server-core-5.5
Paquets suggérés :
libipc-sharedcache-perl tinyca mailx
Les NOUVEAUX paquets suivants seront installés :
libdbd-mysql-perl libdbi-perl libhtml-template-perl libnet-daemon-perl
libplrpc-perl libterm-readkey-perl mysql-client-5.5 mysql-client-core-5.5
mysql-server mysql-server-5.5 mysql-server-core-5.5
mis à jour, 11 nouvellement installés, à enlever et 2 non mis à jour.
Il est nécessaire de prendre 26,3 Mo dans les archives.
Après cette opération, 93,8 Mo d'espace disque supplémentaires seront
utilisés.
Réception de : 1 http://re.archive.ubuntu.com/ubuntu/ precise/main libnetdaemon-perl all 0.48-1 [43,1 kB]
Réception de : 2 http://re.archive.ubuntu.com/ubuntu/ precise/main libplrpcperl all 0.2020-2 [36,0 kB]
Réception de : 3 http://re.archive.ubuntu.com/ubuntu/ precise/main libdbiperl amd64 1.616-1build2 [849 kB]
Réception de : 4 http://re.archive.ubuntu.com/ubuntu/ precise/main libdbdmysql-perl amd64 4.020-1build2 [106 kB]
Réception de : 5 http://re.archive.ubuntu.com/ubuntu/ precise-updates/main
mysql-client-core-5.5 amd64 5.5.34-0ubuntu0.12.04.1 [1 934 kB]
Réception de : 6 http://re.archive.ubuntu.com/ubuntu/ precise/main libtermreadkey-perl amd64 2.30-4build3 [28,6 kB]
Réception de : 7 http://re.archive.ubuntu.com/ubuntu/ precise-updates/main
mysql-client-5.5 amd64 5.5.34-0ubuntu0.12.04.1 [8 318 kB]
Réception de : 8 http://re.archive.ubuntu.com/ubuntu/ precise-updates/main
mysql-server-core-5.5 amd64 5.5.34-0ubuntu0.12.04.1 [6 085 kB]
Réception de : 9 http://re.archive.ubuntu.com/ubuntu/ precise-updates/main
mysql-server-5.5 amd64 5.5.34-0ubuntu0.12.04.1 [8 827 kB]
Réception de : 10 http://re.archive.ubuntu.com/ubuntu/ precise/main libhtmltemplate-perl all 2.10-1 [65,0 kB]
Réception de : 11 http://re.archive.ubuntu.com/ubuntu/ precise-updates/main
mysql-server all 5.5.34-0ubuntu0.12.04.1 [11,4 kB]
26,3 Mo réceptionnés en 1min 22s (320 ko/s)
Préconfiguration des paquets...
Sélection du paquet libnet-daemon-perl précédemment désélectionné.
(Lecture de la base de données... 51918 fichiers et répertoires déjà
installés.)
Dépaquetage de libnet-daemon-perl (à partir de .../libnet-daemonperl_0.48-1_all.deb) ...
Sélection du paquet libplrpc-perl précédemment désélectionné.
Dépaquetage de libplrpc-perl (à partir de .../libplrpcperl_0.2020-2_all.deb) ...
Sélection du paquet libdbi-perl précédemment désélectionné.
http://tice974.ac-reunion.fr/wiki-administrateurs/
Printed on 2016/10/01 04:57
2016/10/01 04:57
7/11
Serveur FOG : Installation
Dépaquetage de libdbi-perl (à partir de .../libdbiperl_1.616-1build2_amd64.deb) ...
Sélection du paquet libdbd-mysql-perl précédemment désélectionné.
Dépaquetage de libdbd-mysql-perl (à partir de .../libdbd-mysqlperl_4.020-1build2_amd64.deb) ...
Sélection du paquet mysql-client-core-5.5 précédemment désélectionné.
Dépaquetage de mysql-client-core-5.5 (à partir de .../mysql-clientcore-5.5_5.5.34-0ubuntu0.12.04.1_amd64.deb) ...
Sélection du paquet libterm-readkey-perl précédemment désélectionné.
Dépaquetage de libterm-readkey-perl (à partir de .../libterm-readkeyperl_2.30-4build3_amd64.deb) ...
Sélection du paquet mysql-client-5.5 précédemment désélectionné.
Dépaquetage de mysql-client-5.5 (à partir de .../mysqlclient-5.5_5.5.34-0ubuntu0.12.04.1_amd64.deb) ...
Sélection du paquet mysql-server-core-5.5 précédemment désélectionné.
Dépaquetage de mysql-server-core-5.5 (à partir de .../mysql-servercore-5.5_5.5.34-0ubuntu0.12.04.1_amd64.deb) ...
Sélection du paquet mysql-server-5.5 précédemment désélectionné.
Dépaquetage de mysql-server-5.5 (à partir de .../mysqlserver-5.5_5.5.34-0ubuntu0.12.04.1_amd64.deb) ...
Sélection du paquet libhtml-template-perl précédemment désélectionné.
Dépaquetage de libhtml-template-perl (à partir de .../libhtml-templateperl_2.10-1_all.deb) ...
Sélection du paquet mysql-server précédemment désélectionné.
Dépaquetage de mysql-server (à partir de .../mysqlserver_5.5.34-0ubuntu0.12.04.1_all.deb) ...
Traitement des actions différées (« triggers ») pour « man-db »...
Traitement des actions différées (« triggers ») pour « ureadahead »...
Paramétrage de libnet-daemon-perl (0.48-1) ...
Paramétrage de libplrpc-perl (0.2020-2) ...
Paramétrage de libdbi-perl (1.616-1build2) ...
Paramétrage de libdbd-mysql-perl (4.020-1build2) ...
Paramétrage de mysql-client-core-5.5 (5.5.34-0ubuntu0.12.04.1) ...
Paramétrage de libterm-readkey-perl (2.30-4build3) ...
Paramétrage de mysql-client-5.5 (5.5.34-0ubuntu0.12.04.1) ...
Paramétrage de mysql-server-core-5.5 (5.5.34-0ubuntu0.12.04.1) ...
Paramétrage de mysql-server-5.5 (5.5.34-0ubuntu0.12.04.1) ...
131107 15:50:41 [Warning] Using unique option prefix key_buffer instead of
key_buffer_size is deprecated and will be removed in a future release.
Please use the full name instead.
mysql start/running, process 4911
Paramétrage de libhtml-template-perl (2.10-1) ...
Paramétrage de mysql-server (5.5.34-0ubuntu0.12.04.1) ...
*
*
*
*
*
*
*
Installing
Installing
Installing
Installing
Installing
Installing
Installing
package:
package:
package:
package:
package:
package:
package:
mysql-client
tftpd-hpa
tftp-hpa
nfs-kernel-server
vsftpd
net-tools
wget
Wiki des administrateurs TICE en établissement de la Réunion - http://tice974.ac-reunion.fr/wiki-administrateurs/
Last update: 2015/10/02 16:26
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
Installing
Installing
Installing
Installing
Installing
Installing
Installing
Installing
Installing
Installing
Installing
Installing
Installing
Installing
Installing
Installing
Installing
Installing
Installing
Installing
fog:2.installation http://tice974.ac-reunion.fr/wiki-administrateurs/doku.php?id=fog:2.installation
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
xinetd
sysv-rc-conf
tar
gzip
build-essential
cpp
gcc
g++
m4
htmldoc
perl
libcrypt-passwdmd5-perl
lftp
openssh-server
php-gettext
clamav-freshclam
language-pack-it
language-pack-en
language-pack-es
language-pack-zh-hans
Confirming package installation.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
Checking
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
package:
apache2...OK
php5...OK
php5-gd...OK
php5-cli...OK
php5-mysql...OK
php5-curl...OK
mysql-server...OK
mysql-client...OK
tftpd-hpa...OK
tftp-hpa...OK
nfs-kernel-server...OK
vsftpd...OK
net-tools...OK
wget...OK
xinetd...OK
sysv-rc-conf...OK
tar...OK
gzip...OK
build-essential...OK
cpp...OK
gcc...OK
g++...OK
m4...OK
htmldoc...OK
perl...OK
libcrypt-passwdmd5-perl...OK
lftp...OK
openssh-server...OK
http://tice974.ac-reunion.fr/wiki-administrateurs/
Printed on 2016/10/01 04:57
2016/10/01 04:57
*
*
*
*
*
*
Checking
Checking
Checking
Checking
Checking
Checking
9/11
package:
package:
package:
package:
package:
package:
Serveur FOG : Installation
php-gettext...OK
clamav-freshclam...OK
language-pack-it...OK
language-pack-en...OK
language-pack-es...OK
language-pack-zh-hans...OK
Configuring services.
* Setting up fog user...OK
* Setting up and starting MySql...OK
* Backing up user reports...OK
* Setting up and starting Apache Web Server...OK
* Restoring user reports...OK
* Configuring Fresh Clam...OK
* Setting up storage...OK
* Setting up and starting NFS Server...OK
* Setting up and starting DHCP Serverinstallfog.sh: 340: installfog.sh:
cannot create : Directory nonexistent
...Skipped
* Setting up and starting TFTP and PXE Servers...OK
* Setting up and starting VSFTP Server...OK
* Setting up sudo settings...OK
* Setting up FOG Snapins...OK
* Setting up and building UDPCast...OK
* Installing init scripts...OK
* Setting up FOG Services...OK
* Starting FOG Multicast Management Server...OK
* Starting FOG Image Replicator Server...OK
* Starting FOG Task Scheduler Server...OK
* Setting up FOG Utils...OK
Would you like to notify the FOG group about this installation?
* This information is only used to help the FOG group determine
if FOG is being used. This information helps to let us know
if we should keep improving this product.
Send notification? (Y/N)Y
NOT sending notification.
Setup complete!
You still need to install/update your database schema.
This can be done by opening a web browser and going to:
http://172.19.192.3/fog/management
Default User:
Username: fog
Password: password
Wiki des administrateurs TICE en établissement de la Réunion - http://tice974.ac-reunion.fr/wiki-administrateurs/
Last update: 2015/10/02 16:26
fog:2.installation http://tice974.ac-reunion.fr/wiki-administrateurs/doku.php?id=fog:2.installation
Aller sur l'interface FOG : http://172.19.192.20/fog/
Changer le mot de passe de l'administrateur “fog” : dans User management, utilisateur fog,
nouveau mot de passe.
Mise à jour vers FOG 1.xx
Pour la procédure de Mise à Jour vers 1.x, voir
http://www.fogproject.org/wiki/index.php/Upgrade_to_1.0.0
Télécharger :
cd /opt
* wget
http://sourceforge.net/projects/freeghost/files/latest/latest_fog.tar.gz
Décompresser:
tar -xvzf latest_fog.tar.gz
Le dossier décompressé sera automatiquement renommé suivant le nom de la
version téléchargée (fog_1.xxx)
Lancer la mise à jour :
cd /opt/fog_1.xxx/bin
./installfog.sh
Confirmer upgrade using the .fogsettings
Finaliser la migration
Se connecter à l'interface Web de FOG.
Sur l'écran Database Schema Installer/Updater
upgrade/install database.
cliquer sur
Une nouvelle page apparait
cliquer sur Click here to login
La page de connexion à l'interface FOG doit apparaitre.
Renseigner impérativement les systèmes d'exploitation et types d'image dans la page Gestion
des Images pour chaque image enregistrée.
Dans scribe modifer le fichier dhcpd.conf en suivant les instructions ci-dessous.
http://tice974.ac-reunion.fr/wiki-administrateurs/
Printed on 2016/10/01 04:57
2016/10/01 04:57
11/11
Serveur FOG : Installation
Paramétrages avancés
Dans l'interface web de FOG, désactiver la recherche dns du nom d'hôte dans : Menu Infos / FOG
Settings / General Settings / FOG HOST LOOCKUP = 0
Adaptation du serveur Scribe 2.3
Le serveur Scribe ne reçoit pas le serveur FOG, c'est d'ailleurs déconseillé…
Mais le service DHCP du Scribe doit renvoyer vers le démarrage PXE. Ce paramétrage est à faire
avec votre référent DSI5 habituel avec gen_config (conseillé) ou manuellement (maintenant
inutile).
Dans ''gen_config''
Onglet Services, en mode expert :
Activer l'utilisation d'un serveur PXE/TFTP : oui
Onglet Tftp :
Adresse IP du serveur PXE/TFTP : noter l'adresse du serveur FOG,
Chemin vers le fichier de boot PXE initial, noter :
undionly.kpxe pour un FOG 1.x,
/pxelinux.0 pour un FOG 0.32.
Remarque : sur Scribe 2.2, Diagnose affiche une erreur sur la ligne PXE/TFTP.
From:
http://tice974.ac-reunion.fr/wiki-administrateurs/ - Wiki des administrateurs TICE en
établissement de la Réunion
Permanent link:
http://tice974.ac-reunion.fr/wiki-administrateurs/doku.php?id=fog:2.installation
Last update: 2015/10/02 16:26
Wiki des administrateurs TICE en établissement de la Réunion - http://tice974.ac-reunion.fr/wiki-administrateurs/