Outils pour utilisateurs

Outils du site


informatique:linux:kickstart

Deploiement sous Redhat 4 avec kickstart par le réseau

Sans boot PXE

  1. Insérer le CD de Redhat4
  2. Booter le serveur sur CDROM
  3. Lancer l'une des commandes ci-dessous pour lancer l'installation
  • 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

  1. Installer et configurer PXE
  2. Installer et configurer dhcp
  3. 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

informatique/linux/kickstart.txt · Dernière modification: 2018/09/06 19:10 (modification externe)