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

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:sdc:/anaconda-ks.cfg :!: Pour connaitre le nom du disque faire F3 et mettre la clé USB. Le nom du device sera afficher à l'ecran.

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 $1$o1IaOzfb$qQ/FLSCSCpaePggWd3VFh.
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
informatique/linux/kickstart.1216288835.txt.gz · Dernière modification: 2018/09/06 19:00 (modification externe)