linux_wiki:os_install_pxe_boot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux_wiki:os_install_pxe_boot [2016/02/02 23:04]
billdozor [Create PXE Content]
linux_wiki:os_install_pxe_boot [2019/05/25 23:50]
Line 1: Line 1:
-====== OS Install: PXE Boot ====== 
- 
-**General Information** 
- 
-In order to install an OS via PXE boot, a TFTP and DHCP server are required.\\ 
-Using PXE allows for clients to begin a network installation without any net-install ISO.  
- 
-**Checklist** 
-  * Distro: Enterprise Linux 7 
-  * Installation Server Created (NFS/HTTP/FTP) that is hosting the install DVD and kickstart file 
- 
----- 
- 
-====== TFTP Server ====== 
- 
-  * Install the required packages<code bash>yum install tftp-server xinetd</code> 
-  * Allow TFTP access (set disable = no)<code bash>vim /etc/xinetd.d/tftp 
-service tftp 
-{ 
-  ....some other variables... 
-  disable = no 
-  ....some other variables... 
-}</code> 
-  * Start and Enable xinetd<code bash>systemctl start xinetd 
-systemctl enable xinetd</code> 
-  * Allow through firewall (if enabled)<code bash>firewall-cmd --permanent --add-service=tftp 
-firewall-cmd --reload</code> 
- 
----- 
- 
-====== DHCP Server ====== 
- 
-  * Install required package<code bash>yum install dhcp</code> 
-  * Edit DHCP config and customize per your network<code bash>vim /etc/dhcp/dhcpd.conf 
- 
-subnet 192.168.1.0 netmask 255.255.255.0 { 
-  option routers 192.168.1.254 ; 
-  range 192.168.1.240 192.168.1.250 ; 
-  next-server 192.168.1.150 ; 
-  filename "pxelinux/pxelinux.0" ; 
-} 
-</code> 
-    * subnet => specify the network 
-    * netmask => mask for your network 
-    * option routers => gateway for the network 
-    * range => start and ending IP to hand out via DHCP 
-    * next-server => IP of the TFTP server 
-    * filename => file that should be offered to systems doing PXE boot (relative to the TFTP server's root) 
-  * Start and enable DHCP<code bash>systemctl start dhcp 
-systemctl enable dhcp</code> 
- 
----- 
- 
-====== Create PXE Content ====== 
- 
-Now that both required services are setup, it is time to create the PXE boot content to be handed out over TFTP. 
- 
-  * Install a required package<code bash>yum install syslinux</code> 
-  * Create the PXE Linux directory structure<code bash>mkdir -p /var/lib/tftpboot/pxelinux/pxelinux.cfg</code> 
-  * Copy the pxelinux.0 data file<code bash>cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/pxelinux/</code> 
-  * Create the PXE Linux default config file<code bash>vim /var/lib/tftpboot/pxelinux/pxelinux.cfg/default 
- 
-default CentOS7 
-prompt 1 
-timeout 60 
-display boot.msg 
- 
-label CentOS7 
-  menu label ^Install CentOS 7.2 
-  menu default 
-  kernel vmlinuz 
-  append initrd=initrd.img</code> 
-  * To include a splash image when doing PXE, copy the image from the local system<code bash>cp /boot/grub/splash.xpm.gz /var/lib/tftpboot/pxelinux/</code> 
-  * Copy the files (images/pxeboot/vmlinuz and initrd.img) from the install disk to /var/lib/tftpboot/pxelinux/<code bash>TODO</code> 
-  * Restart dhcpd and xinetd<code bash>systemctl restart dhcpd 
-systemctl restart xinetd</code> 
- 
-The system is now ready to accept incoming PXE boot requests. 
- 
----- 
  
  • linux_wiki/os_install_pxe_boot.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)