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:55] – [Step 4 - Set sebools and firewall rules] 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 130: | 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. |
< | < | ||
Line 144: | Line 149: | ||
<sxh bash; first-line: 1> | <sxh bash; first-line: 1> | ||
- | #platform=x86, AMD64, or Intel EM64T | + | #version=CentOS 7 |
- | #version=DEVEL | + | |
+ | # Action - Install OS instead of upgrade | ||
+ | install | ||
+ | |||
+ | |||
+ | # Accept Eula | ||
+ | eula --agreed | ||
# Firewall configuration | # Firewall configuration | ||
firewall --disabled | firewall --disabled | ||
- | # Install OS instead of upgrade | + | |
- | install | + | repo --name=" |
# Use FTP installation media | # Use FTP installation media | ||
url --url=" | url --url=" | ||
- | # Root password | + | |
- | rootpw --iscrypted $1$e2wrcGGX$tZPQKPsXVhNmbiGg53MN41 | + | rootpw --iscrypted $6$bDp6BGDIUOTz487Q$Kw3w/ |
# System authorization information | # System authorization information | ||
auth useshadow passalgo=sha512 | auth useshadow passalgo=sha512 | ||
+ | |||
# Use graphical install | # Use graphical install | ||
graphical | graphical | ||
firstboot disable | firstboot disable | ||
- | # System keyboard | + | |
- | keyboard | + | # Keyboard layouts |
+ | keyboard | ||
# System language | # System language | ||
- | lang en_US | + | lang en_US.UTF-8 |
- | # SELinux | + | |
- | selinux | + | # SELinux |
- | # Installation logging level | + | selinux |
- | logging level=info | + | |
# System timezone | # System timezone | ||
- | timezone Europe/Amsterdam | + | timezone Europe/Zurich --isUtc --ntpservers=0.centos.pool.ntp.org, |
+ | |||
# System bootloader configuration | # System bootloader configuration | ||
- | bootloader location=mbr | + | bootloader |
+ | |||
+ | # Partition clearing information | ||
clearpart --all --initlabel | clearpart --all --initlabel | ||
- | part swap --asprimary | + | |
- | part /boot --fstype xfs --size=300 | + | |
- | part pv.01 --size=1 --grow | + | # Disk partitioning information |
+ | part pv.01 --fstype=" | ||
+ | part /boot --fstype="xfs" --ondisk=sda | ||
+ | part /boot/efi --fstype=" | ||
volgroup root_vg01 pv.01 | volgroup root_vg01 pv.01 | ||
- | logvol / --fstype xfs --name=lv_01 --vgname=root_vg01 --size=1 --grow | + | logvol swap --fstype=" |
+ | logvol / --fstype="xfs" | ||
+ | |||
%packages | %packages | ||
- | @^minimal | + | @base |
@core | @core | ||
+ | at | ||
+ | bash-completion | ||
+ | bind-utils | ||
+ | bzip2 | ||
+ | curl | ||
+ | man-pages | ||
+ | nc | ||
+ | net-tools | ||
+ | ntp | ||
+ | ntpdate | ||
+ | unzip | ||
+ | vim-enhanced | ||
+ | wget | ||
+ | zip | ||
+ | |||
%end | %end | ||
+ | |||
%addon com_redhat_kdump --disable --reserve-mb=' | %addon com_redhat_kdump --disable --reserve-mb=' | ||
+ | |||
%end | %end | ||
</ | </ | ||
Line 224: | Line 269: | ||
</ | </ | ||
+ | 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 | ||
- | https://www.linuxtechi.com/ | + | < |
+ | # firewall-cmd --add-service=ftp --permanent | ||
+ | # firewall-cmd --add-service=dhcp --permanent | ||
+ | # firewall-cmd --add-port=69/tcp --permanent | ||
+ | # firewall-cmd --add-port=69/udp --permanent | ||
+ | # firewall-cmd --add-port=4011/udp --permanent | ||
+ | # 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:// | ||
+ | |||
+ |