====== Kickstart Howto ====== ===== DHCP ===== Ajust the mac adress of the server to install [root@lnxks01 pub]# cat /etc/dhcp/dhcpd.conf # # DHCP Server Configuration file. # see /usr/share/doc/dhcp-server/dhcpd.conf.example # see dhcpd.conf(5) man page # subnet 10.0.0.0 netmask 255.255.0.0 { allow bootp; option routers 10.0.0.254; #ddns-update-style interim; #ignore client-updates; authoritative; allow booting; allow bootp; #allow unknown-clients; group { #BOOTP POWER clients filename "boot/grub2/powerpc-ieee1275/core.elf"; host client1 { hardware ethernet de:33:c6:98:22:02; fixed-address 10.0.0.3; } } } [root@lnxks01 pub]# systemctl stop dhcpd The root dir for **filename** is **/var/lib/tftpboot** The first deployment you have to use the following command to populate the folder [root@lnxks01 pub]# grub2-mknetdir -net-directory=/var/lib/tftpboot [root@lnxks01 tftpboot]# pwd /var/lib/tftpboot [root@lnxks01 tftpboot]# ls -lRt /var/lib/tftpboot/boot/ boot/: total 0 drwxr-xr-x 4 root root 59 Jan 22 2020 grub2 boot/grub2: total 16 -rw-r--r-- 1 root root 238 Oct 11 2019 grub.cfg drwxr-xr-x 2 root root 8192 Oct 7 2019 powerpc-ieee1275 drwxr-xr-x 2 root root 25 Oct 7 2019 fonts boot/grub2/powerpc-ieee1275: total 3520 -rw-r--r-- 1 root root 310788 Oct 7 2019 core.elf -rw-r--r-- 1 root root 26 Oct 7 2019 grub.cfg -rw-r--r-- 1 root root 2519 Oct 7 2019 command.lst -rw-r--r-- 1 root root 936 Oct 7 2019 crypto.lst -rw-r--r-- 1 root root 219 Oct 7 2019 fs.lst -rw-r--r-- 1 root root 3677 Oct 7 2019 moddep.lst -rw-r--r-- 1 root root 2568 Oct 7 2019 modinfo.sh -rw-r--r-- 1 root root 111 Oct 7 2019 partmap.lst ... [root@lnxks01 grub2]# ls -lRt /var/lib/tftpboot/grub2-ppc64/ /var/lib/tftpboot/grub2-ppc64/: total 75368 -r--r--r-- 1 root root 53877656 Oct 7 2019 initrd.img -r-xr-xr-x 1 root root 23291880 Oct 7 2019 vmlinuz -r--r--r-- 1 root root 441 Oct 7 2019 TRANS.TBL [root@lnxks01 grub2]# cat /var/lib/tftpboot/boot/grub2/grub.cfg set default=0 set timeout=5 echo -e "\nWelcome to the Centos 8 installer!\n\n" menuentry 'Centos 8' { linux grub2-ppc64/vmlinuz ro ip=dhcp inst.ks=ftp://10.0.0.1/pub/ks.cfg inst.repo=ftp://10.0.0.1/pub/ initrd grub2-ppc64/initrd.img } For a deployment using ftp # yum install vsftpd Open and edit the /etc/vsftpd/vsftpd.conf configuration file in a text editor. Change the line anonymous_enable=NO to anonymous_enable=YES Change the line write_enable=YES to write_enable=NO. Defaut folder for VSftp is **/var/ftp/pub/** In this folder you 'll put the kickstart config file: **ks.cfg** To bulid the kickstart file you can use examples or the kickstart generator https://access.redhat.com/labs/kickstartconfig/ [root@lnxks01 grub2]# cat /var/ftp/pub/ks.cfg #version=RHEL8 ignoredisk --only-use=mpatha,sda,sdc,sdd,sdb,sdf,sdg,sde,sdh # System bootloader configuration bootloader --append="rhgb quiet crashkernel=auto" --location=mbr --boot-drive=mpatha # Clear the Master Boot Record zerombr # Partition clearing information clearpart --none --initlabel # Reboot after installation reboot # Use graphical install graphical repo --name="appstream" --baseurl=http://10.0.0.1/Centos8/AppStream # Use network installation url --url="http://10.0.0.1/Centos8/BaseOS" vnc # Keyboard layouts # old format: keyboard us # new format: keyboard --vckeymap=us --xlayouts='us' # System language lang en_US.UTF-8 # Network information network --bootproto=dhcp --device=env2 --ipv6=auto --activate network --bootproto=dhcp --device=env3 --onboot=off --ipv6=auto network --hostname=mylnx123 # Root password rootpw --iscrypted xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # System authorization information auth --passalgo=sha512 --useshadow # SELinux configuration selinux --disabled firstboot --disable # Do not configure the X Window System skipx # System services services --enabled="chronyd" # System timezone timezone Europe/Luxembourg --isUtc # Disk partitioning information part pv.590 --fstype="lvmpv" --ondisk=mpatha --size=16392 part prepboot --fstype="prepboot" --ondisk=mpatha --size=10 part /boot --fstype="xfs" --ondisk=mpatha --size=1005 volgroup cl_mylnx123 --pesize=4096 pv.590 logvol /var --fstype="xfs" --size=3072 --name=var --vgname=cl_mylnx123 logvol / --fstype="xfs" --size=10240 --name=root --vgname=cl_mylnx123 logvol /tmp --fstype="xfs" --size=1024 --name=tmp --vgname=cl_mylnx123 logvol swap --fstype="swap" --size=2048 --name=swap --vgname=cl_mylnx123 %packages @^server-product-environment kexec-tools %end %addon com_redhat_kdump --enable --reserve-mb='auto' %end As we use in the kickstart a repository accessed using http, we 'll copy the ISO image into: **/var/www/html/Centos8** [root@lnxks01 Centos8]# ll /var/www/html/Centos8 total 8 dr-xr-xr-x 4 root root 38 Jan 23 2020 AppStream dr-xr-xr-x 5 root root 52 Jan 23 2020 BaseOS dr-xr-xr-x 3 root root 18 Jan 23 2020 boot dr-xr-xr-x 2 root root 42 Jan 23 2020 images -r--r--r-- 1 root root 87 Jan 23 2020 media.repo dr-xr-xr-x 3 root root 71 Jan 23 2020 ppc -r--r--r-- 1 root root 664 Jan 23 2020 TRANS.TBL [root@lnxks01 pub]# systemctl restart dhcpd https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/performing_an_advanced_rhel_installation/preparing-for-a-network-install_installing-rhel-as-an-experienced-user http://www.mit.edu/afs.new/athena/system/rhlinux/redhat-6.2-docs/HOWTOS/other-formats/pdf/KickStart-HOWTO.pdf http://www.minetti.org/wiki/Linux:Installation_d%27une_CentOS_avec_Kickstart https://blog.anotherhomepage.org/post/centos-7-installation-vraiment-minimale https://access.redhat.com/discussions/2623111 https://www.ibm.com/developerworks/community/blogs/mhhaque/entry/Automatically_Network_Install_RHEL_7_using_Kickstart_in_BM_Power_Systems_Using_GRUB2?lang=en modules for centos8: core.elf http://centos.quelquesmots.fr/8/BaseOS/ppc64le/kickstart/boot/grub/powerpc-ieee1275/