informatique:linux:kickstart
Ceci est une ancienne révision du document !
Table des matières
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 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 F1 et indiquer le bon device.
Avec boot PXE
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.1216300643.txt.gz · Dernière modification : (modification externe)
