PXE Boot : Network Installation (Kick Start)2021/06/24 |
Automate Network Installation by Kick Start.
|
|
[1] | |
[2] | Configure Kick Start settings. |
# generate password # remember it # this is the one for root or other users password [root@dlp ~]# /usr/libexec/platform-python -c 'import crypt,getpass; \
Password:print(crypt.crypt(getpass.getpass(), \ crypt.mksalt(crypt.METHOD_SHA512)))' $6$WRwalxY/5EpHO0DI$qVymqI..... mkdir /var/www/html/ks
[root@dlp ~]#
vi /var/www/html/ks/centos-st8-ks.cfg # create new # graphical installation graphical # reboot after installing reboot # installation source (AppStream) repo --name="AppStream" --baseurl=http://10.0.0.30/centos-st8/AppStream # installation source (Base) url --url="http://10.0.0.30/centos-st8" # installation packages %packages @^minimal-environment kexec-tools %end # keyboard layouts keyboard --xlayouts='jp','us' # system locale lang en_US.UTF-8 # network settings network --hostname=localhost.localdomain # enable first boot setup firstboot --enable ignoredisk --only-use=sda # initialize all partition tables clearpart --none --initlabel # partitioning # for [/boot/efi], it needs only for UEFI clients part /boot --fstype="xfs" --ondisk=sda --size=1024 part /boot/efi --fstype="vfat" --ondisk=sda --size=512 part pv.278 --fstype="lvmpv" --ondisk=sda --size=30720 volgroup cs --pesize=4096 pv.278 logvol / --fstype="xfs" --grow --size=1024 --name=root --vgname=cs logvol swap --fstype="swap" --size=5120 --name=swap --vgname=cs # system timezone timezone Asia/Tokyo --isUtc # root password rootpw --iscrypted $6$WRwalxY/5EpHO0DI$qVymqI..... # for other user settings if adding user --name=cent --password=$6$WRwalxY/5EpHO0DI$qVymqI..... --iscrypted --gecos="cent" # enable Kdump %addon com_redhat_kdump --enable --reserve-mb='auto' %end chmod 644 /var/www/html/ks/centos-st8-ks.cfg |
[3] | For BIOS based clients, Configure like follows. |
[root@dlp ~]#
vi /var/lib/tftpboot/pxelinux.cfg/default # change like follows
default vesamenu.c32
prompt 1
timeout 60
display boot.msg
label linux
menu label ^Install CentOS Stream 8
menu default
kernel centos-st8/vmlinuz
append initrd=centos-st8/initrd.img ip=dhcp inst.ks=http://10.0.0.30/ks/centos-st8-ks.cfg
.....
.....
|
[4] | For UEFI based clients, Configure like follows. |
[root@dlp ~]#
vi /var/lib/tftpboot/grub.cfg # change like follows
set timeout=30
menuentry 'Install CentOS 8' {
linuxefi centos8/vmlinuz ip=dhcp inst.ks=http://10.0.0.30/ks/centos-st8-ks.cfg
initrdefi centos8/initrd.img
}
|
[5] | Power on a computer which is enabled network booting on BIOS/UEFI settings, then installation process starts and will finish automatically. Following screen is the state after finishing installation and restarting automatically. |
Sponsored Link |
|