Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
redhat:other-redhat:pxe-installation-server-redhat [2017/07/05 13:41] – [Step 4 - Mount ISO file and copy its contents to local ftp server] michael | redhat:other-redhat:pxe-installation-server-redhat [2017/09/26 21:19] (current) – [Configure PXE (Network Boot) installation Server on CentOS 7] michael | ||
---|---|---|---|
Line 3: | Line 3: | ||
Once the PXE server is configured we can install hundreds of System at the same time over the network.As it works on Client-Server architecture, | Once the PXE server is configured we can install hundreds of System at the same time over the network.As it works on Client-Server architecture, | ||
+ | |||
+ | FIXME | ||
+ | |||
+ | * **https:// | ||
+ | * https:// | ||
Line 12: | Line 17: | ||
Below are details of my Setup: | Below are details of my Setup: | ||
- | * OS(Operating System) | + | * OS (Operating System) = CentOS 7.x |
* IP Address = 192.168.1.11 | * IP Address = 192.168.1.11 | ||
* Hostname = pxe.example.com | * Hostname = pxe.example.com | ||
Line 98: | Line 103: | ||
# mkdir / | # mkdir / | ||
</ | </ | ||
+ | |||
+ | |||
+ | |||
==== Step 4 - Mount ISO file and copy its contents to local ftp server ==== | ==== Step 4 - Mount ISO file and copy its contents to local ftp server ==== | ||
Line 127: | Line 135: | ||
<WRAP center round box 100%> | <WRAP center round box 100%> | ||
< | < | ||
- | # openssl passwd -1 Pxe@123# | + | # openssl passwd -1 MY-STR0NGpW123! |
</ | </ | ||
- | $1$e2wrcGGX$tZPQKPsXVhNmbiGg53MN41 | + | $6$bDp6BGDIUOTz487Q$Kw3w/ |
</ | </ | ||
- | System default kickstart file is placed under **/root** with name **anaconda-ks.cfg**. We will be creating | + | System default kickstart file is placed under **/root** with name **anaconda-ks.cfg**. We will now creating |
- | Copy the following content into the new kickstart file. Please modify the kickstart | + | Copy the following content into the new kickstart file. Please modify the file as per your needs. |
+ | < | ||
+ | # vim / | ||
+ | </ | ||
+ | <sxh bash; first-line: 1> | ||
+ | # | ||
+ | # Action - Install OS instead of upgrade | ||
+ | install | ||
- | https:// | ||
+ | # Accept Eula | ||
+ | eula --agreed | ||
+ | |||
+ | # Firewall configuration | ||
+ | firewall --disabled | ||
+ | |||
+ | repo --name=" | ||
+ | |||
+ | # Use FTP installation media | ||
+ | url --url=" | ||
+ | |||
+ | rootpw --iscrypted $6$bDp6BGDIUOTz487Q$Kw3w/ | ||
+ | |||
+ | # System authorization information | ||
+ | auth useshadow passalgo=sha512 | ||
+ | |||
+ | # Use graphical install | ||
+ | graphical | ||
+ | firstboot disable | ||
+ | |||
+ | # Keyboard layouts | ||
+ | keyboard --vckeymap=ch-de_sundeadkeys --xlayouts=' | ||
+ | |||
+ | # System language | ||
+ | lang en_US.UTF-8 | ||
+ | |||
+ | # SELinux State | ||
+ | selinux --enabled | ||
+ | |||
+ | # System timezone | ||
+ | timezone Europe/ | ||
+ | |||
+ | |||
+ | # System bootloader configuration | ||
+ | bootloader --location=mbr --boot-drive=sda | ||
+ | |||
+ | # Partition clearing information | ||
+ | clearpart --all --initlabel | ||
+ | |||
+ | |||
+ | # Disk partitioning information | ||
+ | part pv.01 --fstype=" | ||
+ | part /boot --fstype=" | ||
+ | part /boot/efi --fstype=" | ||
+ | |||
+ | volgroup root_vg01 pv.01 | ||
+ | logvol swap --fstype=" | ||
+ | logvol / --fstype=" | ||
+ | |||
+ | |||
+ | %packages | ||
+ | @base | ||
+ | @core | ||
+ | at | ||
+ | bash-completion | ||
+ | bind-utils | ||
+ | bzip2 | ||
+ | curl | ||
+ | man-pages | ||
+ | nc | ||
+ | net-tools | ||
+ | ntp | ||
+ | ntpdate | ||
+ | unzip | ||
+ | vim-enhanced | ||
+ | wget | ||
+ | zip | ||
+ | |||
+ | %end | ||
+ | |||
+ | %addon com_redhat_kdump --disable --reserve-mb=' | ||
+ | |||
+ | %end | ||
+ | </ | ||
+ | |||
+ | Now we create a default **PXE menu** file (''/ | ||
+ | |||
+ | < | ||
+ | # vim / | ||
+ | </ | ||
+ | |||
+ | <sxh bash; first-line: 1> | ||
+ | default menu.c32 | ||
+ | prompt 0 | ||
+ | timeout 300 | ||
+ | ONTIMEOUT 1 | ||
+ | |||
+ | menu title ########## blackGATE - PXE Boot Menu ########## | ||
+ | |||
+ | label 1 | ||
+ | menu label ^1) Install CentOS 7_x64 | ||
+ | menu default | ||
+ | KERNEL / | ||
+ | APPEND initrd=/ | ||
+ | |||
+ | label 2 | ||
+ | menu label ^2) Boot from local drive | ||
+ | localboot 0 | ||
+ | </ | ||
+ | |||
+ | ==== Step 6 - Start and enable xinetd, dhcp and vsftpd service ==== | ||
+ | Use the beneath commands to start and enable xinetd, dhcp and vsftpd. | ||
+ | |||
+ | < | ||
+ | # systemctl start xinetd | ||
+ | # systemctl enable xinetd | ||
+ | |||
+ | # systemctl start dhcpd.service | ||
+ | # systemctl enable dhcpd.service | ||
+ | |||
+ | # systemctl start vsftpd | ||
+ | # systemctl enable vsftpd | ||
+ | </ | ||
+ | |||
+ | In Case SELinux is enabled, then set the following selinux rule for ftp server. | ||
+ | |||
+ | < | ||
+ | # setsebool -P allow_ftpd_full_access 1 | ||
+ | </ | ||
+ | |||
+ | At the End, open all the needed ports in the OS firewall using following firewall-cmd commands | ||
+ | |||
+ | < | ||
+ | # firewall-cmd --add-service=ftp --permanent | ||
+ | # firewall-cmd --add-service=dhcp --permanent | ||
+ | # firewall-cmd --add-port=69/ | ||
+ | # firewall-cmd --add-port=69/ | ||
+ | # firewall-cmd --add-port=4011/ | ||
+ | |||
+ | # firewall-cmd --reload | ||
+ | </ | ||
+ | |||
+ | Up to this point, PXE server installation and configuration is completed now. | ||
+ | |||
+ | ==== Step 7 - Boot the clients with pxe boot option. ==== | ||
+ | |||
+ | FIXME | ||
+ | |||
+ | BILDER VON VM BOOT EINFügen | ||
+ | |||
+ | **Alte Links:** | ||
+ | https:// | ||
https:// | https:// | ||
+ | |||
+ | ---- | ||
+ | |||
+ | **Neue Links, Besser erklährt: | ||
+ | https:// | ||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Fine-Tuneing des Kickstartfiles ===== | ||
+ | * https:// | ||
+ | |||
+ |