===== Deploiement sous Redhat 4 avec kickstart par le réseau ===== ==== Sans boot PXE ==== - Insérer le CD de Redhat4 - Booter le serveur sur CDROM - Lancer l'une des commandes ci-dessous pour lancer l'installation * Avec un dhcp sur le réseau : **linux ks=ftp://10.0.0.2/RHEL/anaconda-ks.cfg** * Sans dhcp sur le réseau : **linux ks=ftp://10.0.0.2/RHEL/anaconda-ks.cfg ksdevice=eth0** * Si drivers externe: **linux dd ks=ftp://10.0.0.2/RHEL/anaconda-ks.cfg** * Fichier KS sur clé USB: **linux ks=hd:sdc1:/anaconda-ks.cfg** :!: Si l'installeur ne trouve pas le fichier ''anaconda-ks.cfg'' sur la clé USB. Faire ''Alt F4'' pour afficher l'écran des messages de diagnostique, retirer et remettre la clé USB. Le nom du device sera afficher à l'ecran. Pour revenir à l'écran d'installation ''Alt F1'' et indiquer le bon device. :!: Pour une installation par la réseau le CD distribution Linux avec ses RPMS doit être disponible par HTTP, FTP ou NFS. ==== Avec boot PXE ==== - Installer et configurer [[PXE]] - Installer et configurer [[dhcp]] - Création du fichier kickstart Exemple de fichier kickstart: # Kickstart file automatically generated by anaconda. install url --url http://10.0.0.2/depot/linux/rhel/el5_i386 lang fr_FR.UTF-8 keyboard fr-latin9 network --device eth0 --noipv6 --bootproto dhcp --hostname newhost rootpw --iscrypted $1$gHsf3I9X$tJ/6mDeRKRfPMmSIYXqlk0 firewall --disabled authconfig --enableshadow --enablemd5 selinux --disabled timezone --utc Europe/Paris skipx text bootloader --location=mbr --driveorder=sda # The following is the partition information you requested # Note that any partitions you deleted are not expressed # here so unless you clear all partitions first, this is # not guaranteed to work #clearpart --linux zerombr clearpart --drives=sda --all part /boot --fstype ext3 --size=128 --asprimary part / --fstype ext3 --size=1 --grow --asprimary part swap --size=256 --asprimary part /var --fstype ext3 --size=400 part /tmp --fstype ext3 --size=200 key --skip reboot %packages #### Paquetages installés # Support de la langue francaise @ french-support e2fsprogs grub # Client et Serveur SSH openssh openssh-clients openssh-server # MTA postfix # Outils de gestion des paquetages yum yum-rhn-plugin rhn-setup #Outils de monitoring strace sysstat net-snmp net-snmp-utils # Installation Client Server X xorg-x11-xauth xorg-x11-fonts-Type1 xterm # Divers screen subversion libstdc++ ntp #### Paquetages non installé -rhnsd -yum-updatesd -NetworkManager -bluez-utils -wpa_supplicant -irda-utils -coolkey -ifd-egate -ccid -pcsc-lite -ypbind -yp-tools %post ==== Liens ==== * http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s1-kickstart2-options.html