linux_wiki:os_install_pxe_boot

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
linux_wiki:os_install_pxe_boot [2016/03/18 23:15]
billdozor [OS Install: PXE Boot]
linux_wiki:os_install_pxe_boot [2016/03/29 21:47]
billdozor [OS Install: PXE Boot]
Line 5: Line 5:
 In order to install an OS via PXE boot, a TFTP and DHCP server are required.\\ 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.  Using PXE allows for clients to begin a network installation without any net-install ISO. 
 +
 +  * Reference Source: http://www.tecmint.com/install-pxe-network-boot-server-in-centos-7/
  
 **Checklist** **Checklist**
Line 58: Line 60:
  
   * Install a required package<code bash>yum install syslinux</code>   * Install a required package<code bash>yum install syslinux</code>
 +
   * Create the PXE Linux directory structure<code bash>mkdir -p /var/lib/tftpboot/pxelinux.cfg   * Create the PXE Linux directory structure<code bash>mkdir -p /var/lib/tftpboot/pxelinux.cfg
 mkdir /var/lib/tftpboot/centos7/</code> mkdir /var/lib/tftpboot/centos7/</code>
 +
   * Copy the pxelinux.0 data file<code bash>cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/</code>   * Copy the pxelinux.0 data file<code bash>cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/</code>
 +
   * Create the PXE Linux default config file (replace '<nfs-ip>' with actual NFS server IP<code bash>vim /var/lib/tftpboot/pxelinux.cfg/default   * Create the PXE Linux default config file (replace '<nfs-ip>' with actual NFS server IP<code bash>vim /var/lib/tftpboot/pxelinux.cfg/default
  
Line 73: Line 78:
   append initrd=centos7/initrd.img method=nfs:<nfs-ip>:/iso/centos7.2-dvd/   append initrd=centos7/initrd.img method=nfs:<nfs-ip>:/iso/centos7.2-dvd/
 </code> </code>
 +    * PXE Boot Menu Reference Source: https://wiki.centos.org/HowTos/PXE/PXE_Setup/Menus
 +
   * 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/</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/</code>
 +
   * Copy the files (images/pxeboot/vmlinuz and initrd.img) from the install disk to /var/lib/tftpboot/pxelinux/<code bash>mount -t iso9660 -o loop CentOS-7-x86_64-DVD-1511.iso /mnt   * Copy the files (images/pxeboot/vmlinuz and initrd.img) from the install disk to /var/lib/tftpboot/pxelinux/<code bash>mount -t iso9660 -o loop CentOS-7-x86_64-DVD-1511.iso /mnt
 cp /mnt/images/pxeboot/vmlinuz /var/lib/tftpboot/centos7/ cp /mnt/images/pxeboot/vmlinuz /var/lib/tftpboot/centos7/
 cp /mnt/images/pxeboot/initrd.img /var/lib/tftpboot/centos7/</code> cp /mnt/images/pxeboot/initrd.img /var/lib/tftpboot/centos7/</code>
 +
   * Restart dhcpd and xinetd<code bash>systemctl restart dhcpd   * Restart dhcpd and xinetd<code bash>systemctl restart dhcpd
 systemctl restart xinetd</code> systemctl restart xinetd</code>
  • linux_wiki/os_install_pxe_boot.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)