Outils pour utilisateurs

Outils du site


informatique:linux:kickstart

Ceci est une ancienne révision du document !


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.

url --url ftp://10.0.0.2/RHEL/RHEL4-U4-i386-ES/
text

install
cdrom
lang en_US.UTF-8
langsupport --default=en_US.UTF-8 en_US.UTF-8
keyboard fr-latin9
xconfig --card "VMWare" --videoram 16384 --hsync 31.5-37.9 --vsync 50-70 --resolution 800x600 --depth 16
network --device eth0 --bootproto dhcp
rootpw --iscrypted $fsdgsdfgfsdglkjm$fgsllkfgj
firewall --disabled
selinux --disabled
authconfig --enableshadow --enablemd5
timezone Europe/Paris
bootloader --location=mbr
# 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 --all
#part /boot --fstype ext3 --size=100 --asprimary
part /boot --fstype ext3 --size=100 --asprimary --ondisk=sda
part pv.3 --size=100 --grow --asprimary
volgroup rootvg --pesize=32768 pv.3
logvol / --fstype ext3 --name=lvroot --vgname=rootvg --size=2016
logvol /var --fstype ext3 --name=lvvar --vgname=rootvg --size=1024
logvol swap --fstype swap --name=lvswap --vgname=rootvg --size=256
logvol /home --fstype ext3 --name=lvhome --vgname=rootvg --size=640

%packages
grub
e2fsprogs
kernel
lvm2

%post

Liens

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